[R] Problem installing Rcmdr on version 4.1.2...

John Fox j|ox @end|ng |rom mcm@@ter@c@
Sat Mar 5 03:09:58 CET 2022


Dear Brian,

You've already gotten better assistance from others than I could 
provide, but I can elucidate the nature of the dependency: The Rcmdr 
package imports the lme4 package which depends on the nloptr package.

lme4 is a sufficiently important package that it's general failure on 
common Linux distributions would attract rapid attention, and so I 
suspect that the problem isn't general.

I hope that this is of some help,
  John

-- 
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/

On 2022-03-04 8:23 a.m., Brian Lunergan wrote:
> Hi folks:
> 
> Running R 4.1.2 on Linux Mint 19.3. Tried to install Rcmdr, but when it
> tried to install nloptr I got the following as it seemed to trip over
> Cmake. Bit lengthy but here's what was spit out.
> 
> * installing *source* package ‘nloptr’ ...
> ** package ‘nloptr’ successfully unpacked and MD5 sums checked
> ** using staged installation
> checking whether the C++ compiler works... yes
> checking for C++ compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ -std=gnu++14 accepts -g... yes
> checking how to run the C++ preprocessor... g++ -std=gnu++14 -E
> checking whether we are using the GNU C++ compiler... (cached) yes
> checking whether g++ -std=gnu++14 accepts -g... (cached) yes
> checking for pkg-config... /usr/bin/pkg-config
> checking if pkg-config knows NLopt... no
> using NLopt via local cmake build on x86_64
> set CMAKE_BIN=/usr/bin/cmake
> set CC=gcc -std=gnu99 -std=gnu11
> set CFLAGS= -fpic -g -O2
> -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -g
> set CXX=g++
> set CXXFLAGS=-std=gnu++11 -fpic -g -O2
> -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -g
> set LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
> CMake Error: The source directory
> "/tmp/RtmpP4rvt0/R.INSTALL360c3be2694c/nloptr/src/nlopt-build" does not
> exist.
> Specify --help for usage, or press the help button on the CMake GUI.
> Unknown argument -j
> Unknown argument 2
> Usage: cmake --build <dir> [options] [-- [native-options]]
> Options:
>    <dir>          = Project binary directory to be built.
>    --target <tgt> = Build <tgt> instead of default targets.
>                     May only be specified once.
>    --config <cfg> = For multi-configuration tools, choose <cfg>.
>    --clean-first  = Build target 'clean' first, then build.
>                     (To clean only, use --target 'clean'.)
>    --use-stderr   = Ignored.  Behavior is default in CMake >= 3.0.
>    --             = Pass remaining options to the native tool.
> CMake Error: The source directory
> "/tmp/RtmpP4rvt0/R.INSTALL360c3be2694c/nloptr/src/nlopt" does not exist.
> Specify --help for usage, or press the help button on the CMake GUI.
> cp: cannot stat 'nlopt/include/*': No such file or directory
> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG
> -I../inst/include
> -I'/home/brian/R/x86_64-pc-linux-gnu-library/4.1/testthat/include'
> -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -g  -c init_nloptr.c -o init_nloptr.o
> gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG
> -I../inst/include
> -I'/home/brian/R/x86_64-pc-linux-gnu-library/4.1/testthat/include'
> -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -g  -c nloptr.c -o nloptr.o
> g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include
> -I'/home/brian/R/x86_64-pc-linux-gnu-library/4.1/testthat/include'
> -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -g  -c test-C-API.cpp -o test-C-API.o
> g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include
> -I'/home/brian/R/x86_64-pc-linux-gnu-library/4.1/testthat/include'
> -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-J7pprH/r-base-4.1.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -g  -c test-runner.cpp -o test-runner.o
> g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions
> -Wl,-z,relro -o nloptr.so init_nloptr.o nloptr.o test-C-API.o
> test-runner.o -llapack -lblas -lgfortran -lm -lquadmath -Lnlopt/lib
> -lnlopt -L/usr/lib/R/lib -lR
> /usr/bin/ld: cannot find -lnlopt
> collect2: error: ld returned 1 exit status
> /usr/share/R/share/make/shlib.mk:10: recipe for target 'nloptr.so' failed
> make: *** [nloptr.so] Error 1
> ERROR: compilation failed for package ‘nloptr’
> * removing ‘/home/brian/R/x86_64-pc-linux-gnu-library/4.1/nloptr’
> 
> I have cmake on mint in the current edition, but when I try to install
> it in R it fires as not available for 4.1.2. Is there a version out
> there that will work with 4.1.2? Where would I find it and how would I
> install it? Any help/advice would be greatly appreciated.
> 
> Regards...
> 
> 
> ______________________________________________
> 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.



More information about the R-help mailing list