Failure Installing package Rcmdr in Pop OS

I have been trying to install the package Rcmdr on Pop OS, all in vain. The following is the command line progress and error. Someone kindly help:

> install.packages("Rcmdr", dependencies = TRUE)
Installing package into ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘arm’, ‘pbkrtest’, ‘nloptr’, ‘mi’, ‘RcmdrMisc’, ‘car’, ‘effects’, ‘lme4’, ‘sem’

trying URL 'https://cloud.r-project.org/src/contrib/arm_1.12-2.tar.gz'
Content type 'application/x-gzip' length 79655 bytes (77 KB)
==================================================
downloaded 77 KB

trying URL 'https://cloud.r-project.org/src/contrib/pbkrtest_0.5.1.tar.gz'
Content type 'application/x-gzip' length 246327 bytes (240 KB)
==================================================
downloaded 240 KB

trying URL 'https://cloud.r-project.org/src/contrib/nloptr_2.0.0.tar.gz'
Content type 'application/x-gzip' length 2219414 bytes (2.1 MB)
==================================================
downloaded 2.1 MB

trying URL 'https://cloud.r-project.org/src/contrib/mi_1.0.tar.gz'
Content type 'application/x-gzip' length 793313 bytes (774 KB)
==================================================
downloaded 774 KB

trying URL 'https://cloud.r-project.org/src/contrib/RcmdrMisc_2.7-2.tar.gz'
Content type 'application/x-gzip' length 38928 bytes (38 KB)
==================================================
downloaded 38 KB

trying URL 'https://cloud.r-project.org/src/contrib/car_3.0-12.tar.gz'
Content type 'application/x-gzip' length 331330 bytes (323 KB)
==================================================
downloaded 323 KB

trying URL 'https://cloud.r-project.org/src/contrib/effects_4.2-1.tar.gz'
Content type 'application/x-gzip' length 2350440 bytes (2.2 MB)
==================================================
downloaded 2.2 MB

trying URL 'https://cloud.r-project.org/src/contrib/lme4_1.1-28.tar.gz'
Content type 'application/x-gzip' length 3306775 bytes (3.2 MB)
==================================================
downloaded 3.2 MB

trying URL 'https://cloud.r-project.org/src/contrib/sem_3.1-13.tar.gz'
Content type 'application/x-gzip' length 165154 bytes (161 KB)
==================================================
downloaded 161 KB

trying URL 'https://cloud.r-project.org/src/contrib/Rcmdr_2.7-2.tar.gz'
Content type 'application/x-gzip' length 5714667 bytes (5.4 MB)
==================================================
downloaded 5.4 MB

* 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++11 accepts -g... yes
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ -std=gnu++11 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 

------------------ CMAKE NOT FOUND --------------------

CMake was not found on the PATH. Please install CMake:

 - yum install cmake          (Fedora/CentOS; inside a terminal)
 - apt install cmake          (Debian/Ubuntu; inside a terminal).
 - pacman -S cmake            (Arch Linux; inside a terminal).
 - brew install cmake         (MacOS; inside a terminal with Homebrew)
 - port install cmake         (MacOS; inside a terminal with MacPorts)

Alternatively install CMake from: <https://cmake.org/>

-------------------------------------------------------

configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -I../inst/include  -I'/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-zIXWOG/r-base-4.0.4=. -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 -I"/usr/share/R/include" -DNDEBUG -I../inst/include  -I'/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-zIXWOG/r-base-4.0.4=. -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/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-zIXWOG/r-base-4.0.4=. -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/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-zIXWOG/r-base-4.0.4=. -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
make: *** [/usr/share/R/share/make/shlib.mk:10: nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/nloptr’
Warning in install.packages :
  installation of package ‘nloptr’ had non-zero exit status
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/lme4’
Warning in install.packages :
  installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘arm’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/arm’
Warning in install.packages :
  installation of package ‘arm’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/pbkrtest’
Warning in install.packages :
  installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘effects’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/effects’
Warning in install.packages :
  installation of package ‘effects’ had non-zero exit status
ERROR: dependency ‘arm’ is not available for package ‘mi’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/mi’
Warning in install.packages :
  installation of package ‘mi’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘lme4’ are not available for package ‘car’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/car’
Warning in install.packages :
  installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘RcmdrMisc’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/RcmdrMisc’
Warning in install.packages :
  installation of package ‘RcmdrMisc’ had non-zero exit status
ERROR: dependency ‘mi’ is not available for package ‘sem’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/sem’
Warning in install.packages :
  installation of package ‘sem’ had non-zero exit status
ERROR: dependencies ‘RcmdrMisc’, ‘car’, ‘effects’, ‘lme4’ are not available for package ‘Rcmdr’
* removing ‘/home/erickoukos/R/x86_64-pc-linux-gnu-library/4.0/Rcmdr’
Warning in install.packages :
  installation of package ‘Rcmdr’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpJw9irF/downloaded_packages’
> 

Okay guys I solved my issue, sorry but if you come across such an error, just install cmake and try again, it worked for me.

- yum install cmake          (Fedora/CentOS; inside a terminal)
 - apt install cmake          (Debian/Ubuntu; inside a terminal).
 - pacman -S cmake            (Arch Linux; inside a terminal).
 - brew install cmake         (MacOS; inside a terminal with Homebrew)
 - port install cmake         (MacOS; inside a terminal with MacPorts)

Alternatively install CMake from: <https://cmake.org/>
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.