Skip to content

Instantly share code, notes, and snippets.

@MVesuviusC
Last active January 13, 2025 16:29
Show Gist options
  • Save MVesuviusC/8aa0cce0a01a72caeacbd048f8046d08 to your computer and use it in GitHub Desktop.
Save MVesuviusC/8aa0cce0a01a72caeacbd048f8046d08 to your computer and use it in GitHub Desktop.
Error installing R packages on Franklin cluster
install.packages("ggpubr")
.
.
.
.
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ -std=gnu++14 accepts -g... yes
checking for g++ -std=gnu++14 option to enable C++11 features... none needed
checking how to run the C++ preprocessor... g++ -std=gnu++14 -E
checking whether the compiler supports GNU C++... (cached) yes
checking whether g++ -std=gnu++14 accepts -g... (cached) yes
checking for g++ -std=gnu++14 option to enable C++11 features... (cached) none needed
checking for pkg-config... /usr/bin/pkg-config
checking if pkg-config knows NLopt... yes
checking for pkg-config checking NLopt version... insufficient: NLopt 2.7.0 or later is preferred.
checking for cmake... /usr/bin/cmake
using NLopt via local cmake build on x86_64
set CMAKE_BIN=/usr/bin/cmake3
set CC=gcc
set CFLAGS=-I/usr/local/include -fpic -g -O2 -O2 -Wall -pipe -pedantic -std=gnu99
set CXX=g++
set CXXFLAGS=-std=gnu++11 -I/usr/local/include -fpic -g -O2
set LDFLAGS=-L/usr/local/lib64
/usr/bin/cmake3: /gpfs0/export/apps/easybuild/software/XZ/5.2.5-GCCcore-9.3.0/lib/liblzma.so.5: version `XZ_5.2' not found (required by /lib64/libarchive.so.13)
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
mv: cannot stat 'nlopt/lib*': No such file or directory
cp: cannot stat 'nlopt/include/*': No such file or directory
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -I"/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/include" -DNDEBUG -I../inst/include -I'/gpfs0/home1/gdlessnicklab/mvc002/R/x86_64-pc-linux-gnu-library/4.2/testthat/include' -I/usr/local/include -fpic -g -O2 -O2 -Wall -pipe -pedantic -std=gnu99 -c init_nloptr.c -o init_nloptr.o
gcc -I"/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/include" -DNDEBUG -I../inst/include -I'/gpfs0/home1/gdlessnicklab/mvc002/R/x86_64-pc-linux-gnu-library/4.2/testthat/include' -I/usr/local/include -fpic -g -O2 -O2 -Wall -pipe -pedantic -std=gnu99 -c nloptr.c -o nloptr.o
g++ -std=gnu++11 -I"/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/include" -DNDEBUG -I../inst/include -I'/gpfs0/home1/gdlessnicklab/mvc002/R/x86_64-pc-linux-gnu-library/4.2/testthat/include' -I/usr/local/include -fpic -g -O2 -c test-C-API.cpp -o test-C-API.o
g++ -std=gnu++11 -I"/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/include" -DNDEBUG -I../inst/include -I'/gpfs0/home1/gdlessnicklab/mvc002/R/x86_64-pc-linux-gnu-library/4.2/testthat/include' -I/usr/local/include -fpic -g -O2 -c test-runner.cpp -o test-runner.o
g++ -std=gnu++11 -shared -L/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/lib -L/usr/local/lib64 -o nloptr.so init_nloptr.o nloptr.o test-C-API.o test-runner.o -L/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/lib -lRlapack -L/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/lib -lRblas -lgfortran -lm -lquadmath nlopt/lib/libnlopt.a -L/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/lib -lR
g++: error: nlopt/lib/libnlopt.a: No such file or directory
make: *** [/export/apps/opt/R/4.2.2-foss-2020a/lib64/R/share/make/shlib
to fix:
ml load CMake/3.16.4 XZ/5.2.5 NLopt/2.6.1
##### Or
Error: package or namespace load failed for ‘leidenbase’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/gpfs0/home2/gdrobertslab/mvc002/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-leidenbase/00new/leidenbase/libs/leidenbase.so':
libicui18n.so.73: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/gpfs0/home2/gdrobertslab/mvc002/R/x86_64-pc-linux-gnu-library/4.3/leidenbase’
ml ICU/66.1 # though I had to ml purge and reload R module first or it asked for a version of ICU that we didn't have
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment