[R] Problem installing/updating nloptr...

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Fri May 20 02:35:05 CEST 2022

I don't have Mint, but I do have Ubuntu 20.04, and it has /usr/bin/ranlib, which is supplied by the binutils Ubuntu package. Have you apt installed the r-base-dev package?

On May 19, 2022 4:50:56 PM PDT, Brian Lunergan <ff809 using ncf.ca> wrote:
>Hash: SHA512
>Evening folks:
>Running R 4.2.0 on Linux Mint 19.3. When I tried to update package
>nloptr the operation failed with this error text seeming to be key to
>the problem.
>CMake Error: The source directory
>/ranlib" 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]]
>  <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/RtmpCNCU3l/R.INSTALL21c510095118/nloptr/src/nlopt" does not
>Specify --help for usage, or press the help button on the CMake GUI.
>cp: cannot stat 'nlopt/include/*': No such file or directory
>Uninstalled the package and tried reinstalling. Same stumble so I now
>no longer have it at all, and it's needed to load Rcmdr.
>Any help sorting this out would be appreciated. Please... :-(
>- -- 
>Brian Lunergan
>Russell, Ontario
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

Sent from my phone. Please excuse my brevity.

More information about the R-help mailing list