-
Notifications
You must be signed in to change notification settings - Fork 17
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
Can't install BPCells on MacOS #24
Comments
It looks like you have already identified the directories containing the hdf5 headers (
Then with those changes and conda deactivated, try installing BPCells. If that continues to not work, there's a newly added debugging tool to help get more error diagnostics from the installation process. On the terminal, run |
To help make these problems less common I just tried making a fix in 5d9e78c, which will also try to use If (p.s. if you still are ending up with issues, could you let me know your MacOS version and the compiler version you're using?) |
Thank you for your reply, I spotted some mistakes I made and tried again, though without sucess When trying to manually modify .R/Makevars with a text editor I realized that the file simply didn't exist. So I:
-Confirmed the location of clang and clang++
Created /Users/dariorocha/ .R/Makevars.rtf using a text editor
-ran this on the terminal -then tried to install BPCells again
-moved on to check h5cc
clang version is
System info is:
|
It looks like the debug log didn't quite come through properly. When you run
Hopefully some of that is useful. If not, please retry the |
Alright, another attempt: -deleted the " .R/" directory and created it again without the initial blank space, then created the Makevars file and edited it, also adding the .txt extension, following this post: -My Makevars looks like this now
-Opened the terminal, -Checked pkg config
-Rechecked that hdf5 is installed with homebrew
-Checked that pkg config is installed
-There is no pkgconfig directory in /opt/homebrew/Cellar/hdf5/1.14.0/lib
-Following chatbot instructions
-Then copied and pasted this in the file
-and save the file by pressing Ctrl+X, then Y, and finally Enter. -now I can successfully run the command pkg-config hdf5 --cflags --libs
So, within the terminal and with the base environment deactivated, I run R and try to install BPCells Install log (EDIT by bnprks to make into collapsible section)
|
Thanks for the debug log, that gave a lot of useful information. It looks like your main problem is having a mixup between software for the x86_64 architecture, and software for the arm_64 architecture. x86_64 is emulated through Rosetta2 on ARM macs, while arm_64 is what the computer runs natively. Depending on whether your version of R is running as x86_64 or arm_64, you will need to match your compilers and libraries to that architecture. As I don't own one of these Macs personally, I don't have many useful tips on how to accomplish that, but it is definitely the source of the error in the log you just sent. This issue has a bit of useful discussion about having mismatched x86_64/arm_64 when installing BPCells: #6. In that case, switching to running R natively in the arm_64 architecture helped solve the problem. If using x86_64 is important to you for some reason, then it appears my advice to use homebrew hdf5 over conda hdf5 is probably bad, though I've also noticed mac users having trouble with trying to install with hdf5 through conda Some of my observations:
|
Sorry for the long logs, I was unaware of the collapsible section Thank you for pointing out it was about the architecture. I decided to go from a clean slate, uninstalled R and Rstudio, then from the terminal deactivated the 'base' conda environment, installed R with homebrew, installed Rstudio with homebrew, created the .R directory
installed BPCells from Rstudio Thank you so much for your time |
Great, I'm glad you've gotten it installed finally! I'd suggest walking through this tutorial if you want to check everything is working. |
Just confirming comment above works for me too (as would @bnprks comment on May 4, 2023) with: |
The Error:
First I installed Macports and HDF5 with
sudo port install hdf5
having the base MacOS environment activated (as default in the terminal)
The error persisted
Then I installed HDF5 using homebrew having the base MacOS environment activated (as default in the terminal) following this post. The error persisted.
Then I installed HDF5 with conda having the base env activated
% conda install -c anaconda hdf5
But the error persisted
I've tried, in R
To no avail
What else could I try?
Thank you in advance for your time
The text was updated successfully, but these errors were encountered: