[R] problem installing RUcausal library

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Sun Apr 23 14:14:08 CEST 2023


Perhaps read the Posting Guide, note that there is a special mailing list for MacOSX-specific questions, and post there instead?

You don't appear to have installed gfortran. I am aware that there are specific instructions for getting that installed in MacOS that you need to find and follow [1].

[1] https://cran.r-project.org/bin/macosx/tools/

On April 23, 2023 4:41:59 AM GMT+09:00, varin sacha via R-help <r-help using r-project.org> wrote:
>Me again ! How to solve this?
>
>At the end of this page there is the installation command :
>https://gitlab.science.ru.nl/gbucur/RUcausal/-/blob/master/README.Rmd
>
>Working with a MAC, I have tried to install the RUcausal library (copy and paste the installation command).
>
>It is written that the package has been built on Linux using the GNU Compiler Collection. To install the package, open an R instance and run:
>install.packages('devtools') # required package
>devtools::install_git('https://gitlab.science.ru.nl/gbucur/RUcausal')
>
>I get this error message :
>
>  ERROR: package installation failed
>Error: Failed to install 'RUcausal' from Git:
>  ! System command 'R' failed
>0d0bz2p4xg640000gn/T/RtmpMs1teQ/Rinst6453ee77bb8/RUcausal’
>
>
>
>install.packages('devtools') # required package
>--- Please select a CRAN mirror for use in this session ---
>trying URL 'https://stat.ethz.ch/CRAN/bin/macosx/big-sur-arm64/contrib/4.2/devtools_2.4.5.tgz'
>Content type 'application/x-gzip' length 421790 bytes (411 KB)
>==================================================
>downloaded 411 KB
>
>
>The downloaded binary packages are in
>    /var/folders/t_/myv0vvms11g40d0bz2p4xg640000gn/T//Rtmp7SUtUd/downloaded_packages
>> devtools::install_git('https://gitlab.science.ru.nl/gbucur/RUcausal')
>Downloading git repo https://gitlab.science.ru.nl/gbucur/RUcausal
>'/usr/bin/git' clone --depth 1 --no-hardlinks https://gitlab.science.ru.nl/gbucur/RUcausal /var/folders/t_/myv0vvms11g40d0bz2p4xg640000gn/T//Rtmp7SUtUd/file61a2a8e336a
>── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>─ installing the package to process help pages
>  -----------------------------------ges
>─ installing *source* package ‘RUcausal’ ...
>  ** using staged installation
>  ** libs
>  clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -Wall -pedantic -c RcppExports.cpp -o RcppExports.o
>  clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -Wall -pedantic -c compute_DAG_probabilities_BGe_fast.cpp -o compute_DAG_probabilities_BGe_fast.o
>  clang++ -arch arm64 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o RUcausal.so RcppExports.o compute_DAG_probabilities_BGe_fast.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1 -L/opt/R/arm64/gfortran/lib -lgfortran -lemutls_w -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
>  ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1'
>  ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib'
>  ld: library not found for -lgfortran
>  clang: error: linker command failed with exit code 1 (use -v to see invocation)
>  make: *** [RUcausal.so] Error 1
>  ERROR: compilation failed for package ‘RUcausal’
>─ removing ‘/private/var/folders/t_/myv0vvms11g40d0bz2p4xg640000gn/T/RtmpMs1teQ/Rinst6453ee77bb8/RUcausal’
>  -----------------------------------
>  ERROR: package installation failed
>Error: Failed to install 'RUcausal' from Git:
>  ! System command 'R' failed
>0d0bz2p4xg640000gn/T/RtmpMs1teQ/Rinst6453ee77bb8/RUcausal’
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list