Re: [R] problem installing RUcausal library

2023-04-23 Thread Jeff Newmiller
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 
 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
>0d0bz2p4xg64gn/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_/myv0vvms11g40d0bz2p4xg64gn/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_/myv0vvms11g40d0bz2p4xg64gn/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_/myv0vvms11g40d0bz2p4xg64gn/T/RtmpMs1teQ/Rinst6453ee77bb8/RUcausal’
>  ---
>  ERROR: package installation failed
>Error: Failed to install 'RUcausal' from Git:
>  ! System command 'R' failed
>0d0bz2p4xg64gn/T/RtmpMs1teQ/Rinst6453ee77bb8/RUcausal’
>
>__
>R-help@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.

__

Re: [R] problem installing RUcausal library

2023-04-23 Thread Ivan Krylov
В Sat, 22 Apr 2023 19:41:59 + (UTC)
varin sacha via R-help  пишет:

> Working with a MAC, I have tried to install the RUcausal library
> (copy and paste the installation command).

For Mac-related problems, try r-sig-...@r-project.org.

> 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

It may be that you need a working Fortran compiler too (see
 on how to obtain it). I could be
mistaken about it, though.

-- 
Best regards,
Ivan

__
R-help@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.


[R] problem installing RUcausal library

2023-04-22 Thread varin sacha via R-help
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
0d0bz2p4xg64gn/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_/myv0vvms11g40d0bz2p4xg64gn/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_/myv0vvms11g40d0bz2p4xg64gn/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_/myv0vvms11g40d0bz2p4xg64gn/T/RtmpMs1teQ/Rinst6453ee77bb8/RUcausal’
  ---
  ERROR: package installation failed
Error: Failed to install 'RUcausal' from Git:
  ! System command 'R' failed
0d0bz2p4xg64gn/T/RtmpMs1teQ/Rinst6453ee77bb8/RUcausal’

__
R-help@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.