[R] How to install this package
Christofer Bogaso
bog@@o@chr|@to|er @end|ng |rom gm@||@com
Wed Sep 25 15:23:02 CEST 2024
Hi,
I would like to install an R library from
https://cran.r-project.org/src/contrib/Archive/termstrc/
I executed below code without success.
Any help would be appreciated.
> install.packages('/Users/termstrc_1.3.tar.gz', repos = NULL, type="source")
* installing *source* package ‘termstrc’ ...
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.3)’
using SDK: ‘MacOSX15.0.sdk’
clang++ -arch arm64 -std=gnu++17
-I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
-I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp/include'
-I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2
-c objfcts.cpp -o objfcts.o
clang++ -arch arm64 -std=gnu++17 -dynamiclib
-Wl,-headerpad_max_install_names -undefined dynamic_lookup
-L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o
termstrc.so objfcts.o -F/Library/Frameworks/R.framework/.. -framework
R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/00LOCK-termstrc/00new/termstrc/libs
** R
** data
** demo
** byte-compile and prepare package for lazy loading
Error in dyn.load(dynlib <- getDynlib(dir)) :
unable to load shared object
'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rgl/libs/rgl.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rgl/libs/rgl.so,
0x0006): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: <C90BFE0D-3008-3759-8DC8-B7FD5F3D934B>
/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rgl/libs/rgl.so
Reason: tried: '/opt/X11/lib/libGLU.1.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/X11/lib/libGLU.1.dylib' (no
such file), '/opt/X11/lib/libGLU.1.dylib' (no such file),
'/Library/Frameworks/R.framework/Resources/lib/libGLU.1.dylib' (no
such file), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libGLU.1.dylib'
(no such file)
ERROR: lazy loading failed for package ‘termstrc’
* removing ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/termstrc’
Warning message:
In install.packages("/Users/termstrc_1.3.tar.gz", :
installation of package ‘/Users/termstrc_1.3.tar.gz’ had non-zero exit status
More information about the R-help
mailing list