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

Issue with installation #131

Closed
adahal123 opened this issue Nov 4, 2024 · 5 comments
Closed

Issue with installation #131

adahal123 opened this issue Nov 4, 2024 · 5 comments

Comments

@adahal123
Copy link

See below*

devtools::install_github("stefpeschel/NetCoMi",

  •                      dependencies = c("Depends", "Imports", "LinkingTo"),
    
  •                      repos = c("https://cloud.r-project.org/",
    
  •                                BiocManager::repositories()))
    

Downloading GitHub repo stefpeschel/NetCoMi@HEAD
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for
details.
Replacement repositories:
CRAN: https://cran.rstudio.com/
Error: Failed to install 'NetCoMi' from GitHub:
Unknown remote type: bioc
Invalid bioc repo: [email protected]

If I try to install the dependencies:

devtools::install_github("zdk123/SpiecEasi")

Downloading GitHub repo zdk123/SpiecEasi@HEAD
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/2s/bs5ct1_d2w3f1m_n8lqc0tw40000gq/T/Rtmp2nDddh/remotes2a20788a45a8/zdk123-SpiecEasi-5f396da/DESCRIPTION’ (429ms)
─ preparing ‘SpiecEasi’:
✔ checking DESCRIPTION meta-information
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts (452ms)
─ checking for empty or unneeded directories
Removed empty directory ‘SpiecEasi/inst’
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘SpiecEasi_1.1.3.tar.gz’

Installing package into ‘/Users/dahsx6/Library/R/x86_64/4.4/library’
(as ‘lib’ is unspecified)

  • installing source package ‘SpiecEasi’ ...
    ** using staged installation
    ** libs
    using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.3.9.4)’
    using C++11
    using SDK: ‘MacOSX14.4.sdk’
    clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/dahsx6/Library/R/x86_64/4.4/library/Rcpp/include' -I'/Users/dahsx6/Library/R/x86_64/4.4/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c ADMM.cpp -o ADMM.o
    clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/dahsx6/Library/R/x86_64/4.4/library/Rcpp/include' -I'/Users/dahsx6/Library/R/x86_64/4.4/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
    clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/dahsx6/Library/R/x86_64/4.4/library/Rcpp/include' -I'/Users/dahsx6/Library/R/x86_64/4.4/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c matops.cpp -o matops.o
    clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/dahsx6/Library/R/x86_64/4.4/library/Rcpp/include' -I'/Users/dahsx6/Library/R/x86_64/4.4/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c sqrtNewton.cpp -o sqrtNewton.o
    clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/dahsx6/Library/R/x86_64/4.4/library/Rcpp/include' -I'/Users/dahsx6/Library/R/x86_64/4.4/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c svthresh.cpp -o svthresh.o
    clang++ -arch x86_64 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o SpiecEasi.so ADMM.o RcppExports.o matops.o sqrtNewton.o svthresh.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0 -L/opt/gfortran/lib -lgfortran -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
    ld: warning: search path '/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0' not found
    ld: warning: search path '/opt/gfortran/lib' not found
    ld: library 'gfortran' not found
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [SpiecEasi.so] Error 1
    ERROR: compilation failed for package ‘SpiecEasi’
  • removing ‘/Users/dahsx6/Library/R/x86_64/4.4/library/SpiecEasi’
    Warning message:
    In i.p(...) :
    installation of package ‘/var/folders/2s/bs5ct1_d2w3f1m_n8lqc0tw40000gq/T//Rtmp2nDddh/file2a203de3566b/SpiecEasi_1.1.3.tar.gz’ had non-zero exit status

Tried a bunch of different things, can't seem to figure out what to do.

@elmonten
Copy link

elmonten commented Nov 5, 2024

I'm getting the same issue... :S

@stefpeschel
Copy link
Owner

Hi!
This issue seems to cover your problem with the SpiecEasi package.
I'm working on a solution for the bioc packages. However, it would be good if you were able to install SpiecEasi as a first step.

@stefpeschel
Copy link
Owner

I added a new branch "fix_installation" with changes in the DESCRIPTION file.
Could you please try if you're able to install NetCoMi from this branch using the following command?

devtools::install_github("stefpeschel/NetCoMi", 
                         ref = "fix_installation",
                         repos = c("https://cloud.r-project.org/",
                                   BiocManager::repositories()))

I did some test runs on my Windows PC with an empty library, but I cannot test on a Mac.

@adahal123
Copy link
Author

Thanks @stefpeschel! Worked great.

For SpiecEasi, I just went to my Mac terminal and tried this:

check if it exists

ls $HOME/.R

create folder

mkdir -p $HOME/.R

save command into new file Makevars

echo "FLIBS=-L/opt/local/lib/gcc48/" > $HOME/.R/Makevars

as suggested by: zdk123/SpiecEasi#217 (comment)

And then ran this new code you suggested. Woohoo! Excited to start playing around with my data.

@stefpeschel
Copy link
Owner

Thanks for the feedback! Glad to hear it works.
I will merge the branch into main then.

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

No branches or pull requests

3 participants