Closed renkun-ken closed 6 years ago
You ignore the README.md
and other sources, as well as the configure log which you just quoted without reading. See the money lines:
checking for nlopt.h... no configure: Need to configure and build NLopt
You need sudo apt install libnlopt-dev
after which this installs in seconds -- as eg my Travis builds for the new RcppNLoptExample do (and "seconds" means the 'install nloptr' part).
Edit: Typo fixed: libnlopt-dev
Thanks, @eddelbuettel. Installing libnlopt-dev
(from your travis config) solves the problem. It would be better to make it explicit in README.md
.
Sorry, typo. Now fixed. Whose README.md? Jelmer has been fighting^Hexplaining this for years, switching between schemes. I am not sure why his fallback scheme failed; I prefer the external library anyway. And on some platforms (Debian, Ubuntu, ...) these are easy to have. But as I recall this also installed cleanly at work under CentOS using the fallback scheme...
@eddelbuettel I mean jyypma/nloptr/README.md
. If external library is not mentioned, user probably expect that the installer does everything required.
Under Ubuntu 18.04 + R 3.5.1,
nloptr
cannot fully compile but the package installation still continues as successful?