[Rd] Compiling error with glmnet and nloptr

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Mar 10 16:19:05 CET 2022

Dear jing hua zhao,

You appear to have issues with a particular (pair or single) package; it is
usually better to contact the author / maintainers of the package.  I help a
little with nloptr which had its share of similar issues after its recent as
it (conditionall, if no libnlopr is found) will require cmake, and in a
fairly recentish flavor.  That can pose issues on systems such as yours which
identifies itself per the error message as Scientific Linux 


which is actually dead:  https://en.wikipedia.org/wiki/Scientific_Linux

Stepping back, there is a bit of a disconnect between working on old OS
releases -- sometimes not by choice as your institution, employer, $whoever
... may make you do that -- yet requiring / desiring / attempting to use
bleeding-edge newest versions of R or packages.  That can have friction as
new versions can at times require new tools. The developers try to not
require it, but sometimes it happens, and usually for a reason (as
e.g. nloptr need libnlopt which itself relies on cmake).

So if you can, please considering upgrading to a more current and supported
operating system. For issues specific with a package (as opposed to R and in
particular development on R) the repository may be a better place than this

Cheers,  Dirk

https://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org

More information about the R-devel mailing list