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
FastPG Installation Error #1
Comments
Hello @georgersmith99, I am sorry that you are facing installation issues. Indeed the error is related to the failing installation of the Here are some potential ways to resolve this:
If you do not manage to make it work after all this, feel free to write another message and we will see what we can do to solve it. Thank you for your interest in Have a nice day! |
Thank you very much for your reply! Unfortunately I still get the same error after going through these troubleshooting methods. I am using MacOS however, so maybe it is different for that. I updated both RStudio and bioconductor and ran again but got the same result.. I appreciate all your help! |
Alright George, we will try to resolve this then. Does the following command return an error? |
Yes it returns this:
devtools::install_github("sararselitsky/FastPG", force = TRUE)
Downloading GitHub repo ***@***.***
── R CMD build ──────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/b1/pcvwjjh51f3gv8pp4jf8ktqh0000gn/T/RtmpRBeRsA/remotes19cd5432538a/sararselitsky-FastPG-44c9282/DESCRIPTION’ ...
─ preparing ‘FastPG’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted ‘LazyData’ from DESCRIPTION
─ building ‘FastPG_0.0.8.tar.gz’
* installing *source* package ‘FastPG’ ...
** using staged installation
** libs
using C compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
using C++11
using SDK: ‘MacOSX14.2.sdk’
clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppParallel/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/BH/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppParallel/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/BH/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RngStream.cpp -o RngStream.o
clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppParallel/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/BH/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c buildNextPhase.cpp -o buildNextPhase.o
In file included from buildNextPhase.cpp:42:
./defs.h:52:10: fatal error: 'omp.h' file not found
#include <omp.h>
^~~~~~~
1 error generated.
make: *** [buildNextPhase.o] Error 1
ERROR: compilation failed for package ‘FastPG’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/FastPG’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/b1/pcvwjjh51f3gv8pp4jf8ktqh0000gn/T//RtmpRBeRsA/file19cd340ab435/FastPG_0.0.8.tar.gz’ had non-zero exit status
From: Paul Régnier ***@***.***>
Date: Tuesday, 26 March 2024 at 13:37
To: PaulRegnier/PICAFlow ***@***.***>
Cc: georgersmith99 ***@***.***>, Mention ***@***.***>
Subject: Re: [PaulRegnier/PICAFlow] FastPG Installation Error (Issue #1)
Alright George, we will try to resolve this then.
Does the following command return an error? devtools::install_github("sararselitsky/FastPG", force = TRUE)
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A42WZ4B5KHVSC6T2JQ6XYZLY2FTYNAVCNFSM6AAAAABFIUK5GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGQ2TEOBRHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I just found that the FastPG GitHub page has a special installation procedure for MacOS: If you are on Mac OS X, you will need the x-code command line tools and probably need to install the OpenMP library, which Apple no longer distributes as part of x-code. One way to do that is to install the data.table package as described here: https://firas.io/post/data.table_openmp/. Afterwards, FastPG and any other programs that use OpenMP should work. |
In your error log, the line |
Paul,
Unfortunately, the link https://firas.io/post/data.table_openmp/ goes to an invalid address.
George
From: Paul Régnier ***@***.***>
Date: Tuesday, 26 March 2024 at 13:42
To: PaulRegnier/PICAFlow ***@***.***>
Cc: georgersmith99 ***@***.***>, Mention ***@***.***>
Subject: Re: [PaulRegnier/PICAFlow] FastPG Installation Error (Issue #1)
In your error log, the line ./defs.h:52:10: fatal error: 'omp.h' file not found directly refers to the OpenMP API, which seems not to be installed on your computer. Try to follow the procedure from FastPG GitHub page and let me know if it works.
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A42WZ4HC35SJFIOCXTNVUKTY2FUKNAVCNFSM6AAAAABFIUK5GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGQ3DGNJVGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
From what I found on Internet, people nowadays follow the procedure here to install OpenMP on recent Mac computers : https://stackoverflow.com/questions/76374014/use-openmp-on-m2-mac-with-r-and-data-table. Maybe you can take a look and see if it works for you? I am not very familiar with MacOS system but I will try my best to help you. |
Thank you for this, unfortunately I still cant get it to work. Outside of R and Python I am very unfamiliar with these coding languages..
From: Paul Régnier ***@***.***>
Date: Tuesday, 26 March 2024 at 14:31
To: PaulRegnier/PICAFlow ***@***.***>
Cc: georgersmith99 ***@***.***>, Mention ***@***.***>
Subject: Re: [PaulRegnier/PICAFlow] FastPG Installation Error (Issue #1)
From what I found on Internet, people nowadays follow the procedure here<https://mac.r-project.org/openmp/> to install OpenMP on recent Mac computers : https://stackoverflow.com/questions/76374014/use-openmp-on-m2-mac-with-r-and-data-table.
Maybe you can take a look and see if it works for you? I am not very familiar with MacOS system but I will try my best to help you.
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A42WZ4DUOAKR2JJ7IYCGDKLY2F2CDAVCNFSM6AAAAABFIUK5GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGU4TCNRZGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Can you tell me which version of MacOS you are using, and if your Mac has a M1/M2 processor? |
Sonoma 14.2.1 (23C71) and M2
From: Paul Régnier ***@***.***>
Date: Tuesday, 26 March 2024 at 15:43
To: PaulRegnier/PICAFlow ***@***.***>
Cc: georgersmith99 ***@***.***>, Mention ***@***.***>
Subject: Re: [PaulRegnier/PICAFlow] FastPG Installation Error (Issue #1)
Can you tell me which version of MacOS you are using, and if your Mac has a M1/M2 processor?
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A42WZ4BN7YHJ744EEQHL6V3Y2GCS3AVCNFSM6AAAAABFIUK5GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQG44DONJTGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks a lot. Apparently the Stack Overflow user TheSkyeLord managed to install OpenMP on a M1 Mac: https://stackoverflow.com/questions/71061894/how-to-install-openmp-on-mac-m1, and another user confirmed that it also worked on a M2 Mac. Apparently this problem is something recurrent on Macs because Apple uses a compiler (Xcode) which does not come anymore with OpenMP... https://discussions.apple.com/thread/254465066?sortBy=best But the installation of another compiler (such as gcc) allows to correctly install OpenMP according to this Apple website page. |
To allow you to install the package, I decided to move the |
Yes this works perfectly, thank you very much @***@***.***> for all your help, you are a star!
Cheers
George
From: Paul Régnier ***@***.***>
Date: Tuesday, 26 March 2024 at 20:18
To: PaulRegnier/PICAFlow ***@***.***>
Cc: georgersmith99 ***@***.***>, Mention ***@***.***>
Subject: Re: [PaulRegnier/PICAFlow] FastPG Installation Error (Issue #1)
To allow you to install the package, I decided to move the FastPG dependency from Imports to Suggests in the DESCRIPTION file of PICAFlow. You should now be able to correctly install it as FastPG is now facultative. But if you don't install it, please note that you won't be able to perform the FastPG clustering method during the cell clustering step. Let me know if this resolved the problem on your side!
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A42WZ4C5I6ECO2HBWRLUDMDY2HCXTAVCNFSM6AAAAABFIUK5GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGM4DMMRVGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I'm glad it works now :) May I close this issue as fixed? |
Yes of course!
Thanks a lot
George
From: Paul Régnier ***@***.***>
Date: Wednesday, 27 March 2024 at 11:06
To: PaulRegnier/PICAFlow ***@***.***>
Cc: georgersmith99 ***@***.***>, Mention ***@***.***>
Subject: Re: [PaulRegnier/PICAFlow] FastPG Installation Error (Issue #1)
I'm glad it works now :) May I close this issue as fixed?
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A42WZ4H4JTQMF5OSH3AJIXDY2KK2BAVCNFSM6AAAAABFIUK5GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRSGQ4TKOJYG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hey there!
I am attempting installation of the PICAflow software and am getting a recurring error despite performing the troubleshooting/manual installation in your website.
The error occurs at the end of the installation and is:
`In file included from buildNextPhase.cpp:42:
./defs.h:52:10: fatal error: 'omp.h' file not found
#include <omp.h>
^~~~~~~
1 error generated.
make: *** [buildNextPhase.o] Error 1
ERROR: compilation failed for package ‘FastPG’
Downloading git repo https://github.com/sararselitsky/FastPG.git`
That ultimately leads to error:
`ERROR: dependency ‘FastPG’ is not available for package ‘PICAFlow’
Warning messages:
1: In i.p(...) :
installation of package ‘/var/folders/b1/pcvwjjh51f3gv8pp4jf8ktqh0000gn/T//RtmpCIdgQS/file86ef5954f840/FastPG_0.0.8.tar.gz’ had non-zero exit status
2: In i.p(...) :
installation of package ‘/var/folders/b1/pcvwjjh51f3gv8pp4jf8ktqh0000gn/T//RtmpCIdgQS/file86ef67dd0c74/PICAFlow_1.0.tar.gz’ had non-zero exit status`
Any help would be greatly appreciated!
Cheers,
George
The text was updated successfully, but these errors were encountered: