Skip to content
Prev 390925 / 398506 Next

Problem installing Rcmdr on version 4.1.2...

On 3/4/22 06:59, Brian Lunergan wrote:
That's not the typical way to install an R package from source.
Is there anything in your setup that would explain why nloptr is looking 
for an ancient version of R? I'm wondering if that binary package was 
created years ago and hasn't been replaced since nloptr was reconfigured 
to do the work of installing nlopt?

I'm also failing to install nloptr 2.0.0 using R 4.1.2 in an Ubuntu 
18.04 machine. The first reported error was not having Cmake, but 
installing Cmake then leads to failure both from the R console and from 
a terminal session with:

R CMD INSTALL ~/Downloads/nloptr_2.0.0.tar.gz

It fails at:

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 -Wno-ignored-attributes
set LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
CMake Error: The source directory 
"/tmp/RtmpzB1FjU/R.INSTALL289c4748c404/nloptr/src/nlopt-build" does not 
exist.

 ?My understanding is that the right place to post such difficulties is 
on R-SIG-debian, or at the Issues page: 
https://github.com/astamm/nloptr/issues/85