On Fri, 4 Mar 2022 08:23:43 -0500 Brian Lunergan <ff...@ncf.ca> wrote:
> Running R 4.1.2 on Linux Mint 19.3. > 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 Typically, when an R package wraps a third-party library, you need a development version of it installed in order to install that package from source. If you're running R from the Linux Mint repos, try to install r-cran-nloptr from Linux Mint repositories. If you don't, or have some trouble installing the package, install the libnlopt-dev Linux Mint package before trying to install the nloptr R package. -- Best regards, Ivan ______________________________________________ R-help@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.