Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify local build on MacOS #5

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Simplify local build on MacOS #5

merged 1 commit into from
Oct 10, 2024

Conversation

JCGoran
Copy link
Owner

@JCGoran JCGoran commented Sep 2, 2024

pip install . should just work now, provided the user follows the README exactly.
Also updated instructions for specifying wheel version of COFFE when using cibuildwheel.

`pip install .` should just work now, provided the user follows the
README exactly.
Also updated instructions for specifying wheel version of COFFE when
using `cibuildwheel`.
@fsorrenti
Copy link
Collaborator

I still get error:

(base) 12:13:38 [email protected] coffe master bash scripts/install_other.sh class cuba
++ uname -m

  • CLASS_INSTALL_DIR=/opt/class_public_arm64
    ++ uname -m
  • CUBA_INSTALL_DIR=/opt/cuba_arm64
    +++ dirname scripts/install_other.sh
    ++ cd scripts
    ++ pwd -P
  • script_dir=/Users/francescosorrenti/Library/CloudStorage/OneDrive-unige.ch/university_student/coffe/scripts
  • for arg in '$@'
  • case "${arg}" in
  • install_class
  • '[' -e /opt/class_public_arm64/lib/libclass.a ']'
  • current_dir=/Users/francescosorrenti/Library/CloudStorage/OneDrive-unige.ch/university_student/coffe/scripts/../external/class_public/
  • cd /Users/francescosorrenti/Library/CloudStorage/OneDrive-unige.ch/university_student/coffe/scripts/../external/class_public/
  • export MACOSX_DEPLOYMENT_TARGET=11.0
  • MACOSX_DEPLOYMENT_TARGET=11.0
  • git clean -xdf .
  • make libclass.a
    make: *** No rule to make target `libclass.a'. Stop.

@JCGoran JCGoran merged commit 6885e7c into master Oct 10, 2024
4 checks passed
@JCGoran JCGoran deleted the fix/docs branch October 10, 2024 14:37
@JCGoran
Copy link
Owner Author

JCGoran commented Oct 10, 2024

Should be fixed now (see new instructions), git's default of not cloning submodules was the issue.

@fsorrenti
Copy link
Collaborator

Better, bur there is another error:

arm64-apple-darwin20.0.0-ar: creating archive libclass.a
a - build/growTable.o
a - build/dei_rkck.o
a - build/sparse.o
a - build/evolver_rkck.o
a - build/evolver_ndf15.o
a - build/arrays.o
a - build/parser.o
a - build/quadrature.o
a - build/hyperspherical.o
a - build/common.o
a - build/trigonometric_integrals.o
a - build/input.o
a - build/background.o
a - build/thermodynamics.o
a - build/perturbations.o
a - build/primordial.o
a - build/nonlinear.o
a - build/transfer.o
a - build/spectra.o
a - build/lensing.o
a - build/hyrectools.o
a - build/helium.o
a - build/hydrogen.o
a - build/history.o

  • mkdir -p /opt/class_public_arm64/lib /opt/class_public_arm64/include
    mkdir: /opt/class_public_arm64: Permission denied
    mkdir: /opt/class_public_arm64: Permission denied

For contest, I reinstalled and gitcloned everything again but I got this

@JCGoran
Copy link
Owner Author

JCGoran commented Oct 13, 2024

2 options to resolve this:

  1. Use sudo in front of whatever command you are running
  2. set the environmental variable CLASS_INSTALL_DIR and CUBA_INSTALL_DIR to some dirs that don't require elevated permissions via export CLASS_INSTALL_DIR=/some/other/dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants