-----BEGIN PGP SIGNED MESSAGE----- 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 "/tmp/RtmpCNCU3l/R.INSTALL21c510095118/nloptr/src/CMAKE_RANLIB=/usr/bin /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]] 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 exist. 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 Canada -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEQnNPvUcw8TGKI+uNUQG1sc4S+04FAmKG1+AACgkQUQG1sc4S +06RxQgAo4Hq7rB99Gpvhv9RvzgvhoxVUXsFYuEmFMzysCIwFzfBVS+ZVgydSoRW FfAxZYLruYOU2+i+9PGD/J3cW9sMaXw7NJQRUhYINTc1Q4vrSQZBmvRxwil8tPBq z+KB5yxuEVMsyfhSRFjWdRGaBEnxVeRBlPnvWHRYgUYKFqrsosvwY1hdnlIwRMh9 /J9qfsi98mbSZB2HZd1OaCACxP+fAM0+jQuMJhTSNvvt4l3O583J6ewbvJE53YFT 2+gU9JJI7yn6rIamX2iHGKaueF9N+HPHMMnLfuO6lsmeE6OfzqyiFzy13Rr3H6yF ptDrR2NTURpt5LyipIlK7vamJnt6pA==QWJP -----END PGP SIGNATURE-----
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 at ncf.ca> wrote:>-----BEGIN PGP SIGNED MESSAGE----- >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 >"/tmp/RtmpCNCU3l/R.INSTALL21c510095118/nloptr/src/CMAKE_RANLIB=/usr/bin >/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]] >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 >exist. >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 >Canada > >-----BEGIN PGP SIGNATURE----- > >iQEzBAEBCgAdFiEEQnNPvUcw8TGKI+uNUQG1sc4S+04FAmKG1+AACgkQUQG1sc4S >+06RxQgAo4Hq7rB99Gpvhv9RvzgvhoxVUXsFYuEmFMzysCIwFzfBVS+ZVgydSoRW >FfAxZYLruYOU2+i+9PGD/J3cW9sMaXw7NJQRUhYINTc1Q4vrSQZBmvRxwil8tPBq >z+KB5yxuEVMsyfhSRFjWdRGaBEnxVeRBlPnvWHRYgUYKFqrsosvwY1hdnlIwRMh9 >/J9qfsi98mbSZB2HZd1OaCACxP+fAM0+jQuMJhTSNvvt4l3O583J6ewbvJE53YFT >2+gU9JJI7yn6rIamX2iHGKaueF9N+HPHMMnLfuO6lsmeE6OfzqyiFzy13Rr3H6yF >ptDrR2NTURpt5LyipIlK7vamJnt6pA=>=QWJP >-----END PGP SIGNATURE----- > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.
On Thu, 19 May 2022 19:50:56 -0400 Brian Lunergan <ff809 at ncf.ca> wrote:> CMake Error: The source directory > "/tmp/RtmpCNCU3l/R.INSTALL21c510095118/nloptr/src/CMAKE_RANLIB=/usr/bin > /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]]The package's ./configure script got confused in a pretty spectacular way. Unfortunately, Linux Mint 19.3 is based on Ubuntu 18.04, which only has NLopt 2.4.2, insufficient for the latest version of nloptr (it wants 2.7.0 or newer), so in order to install the latest version of the package, you do need this step to succeed.> Uninstalled the package and tried reinstalling. Same stumble so I now > no longer have it at all, and it's needed to load Rcmdr.Do you need the new version? Installing one of the older versions from cran.r-project.org/src/contrib/Archive/nloptr should be a safe bet. You can also use `sudo apt install libnlopt-dev` to skip the NLopt build step once you find an old enough version of nloptr that's okay with NLopt 2.4.2. I'm not sure how this error could have happened, but if you send the full installation log to <github.com/astamm/nloptr/issues>, they may be able to figure it out. -- Best regards, Ivan