-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nloptr 2.0.0: Fails to install from source on Ubuntu 18.04.6 #100
Comments
Install libnlopt directly (in a current enough version) and |
Thanks. Yes, I understood that as a workaround, but wanted to share that the everything-from-source version is not working. |
Yes, @astamm is learning step by step that simply saying 'hey my package requires Also, "everything from source" is working to the satisfaction of CRAN, so (in shorthand notation) "is working". Your choice of combining a four-year old OS release with a new / current CRAN package simply puts up new challenges for you that we do not promise to have cleared. (I understand where you come from with ancient HPC setups etc; @astamm as a CNRS employee is probably sympathetic but "we all" just have to draw some lines somewhere.) |
Thanks for sharing the issue. |
@eddelbuettel, please - it's counterproductive to talk down to users running on older Linux distros (still in LTS), especially since there are lots of users in such a situation. Such comments risk preventing others from reporting similar problems they experience in the future. I personally have the skill and the options run with modern versions, and I do, but that's not the issue, or why I reported this here. I reported this here because I know there are 1,000's of users out there on these distros, and they might be struggling at this very moment, and if they don't have the experience or the skills, these error messages can be major blockers. It's also clear that the maintainer is not on this platform, because then they'd noticed. So, I am just trying to help all sides here. By reporting this problem here, others might pitch in, e.g. by identifying a better lower bound of CMake than 2.7.0 that @astamm can specify in the DESCRIPTION. That alone, might spare lots of hours across the world. I could have chosen not to spend 15 minutes troubleshooting and writing this up to share my experience here. |
Thanks, @astamm. All your alternatives sounds good to me. |
I am very grateful indeed @HenrikBengtsson. I am indeed more of a Mac user and I admit I had not thought of people using too old versions of |
@astamm To be perfectly honest one thing that would really help is to not rely on |
Always happy with honesty :-) That could be a way too as we discussed indeed. I kind of like the idea of |
No need to explain It's complicated. For my $dayjob package I now have to rely on C++17. Which is, quite frankly, awesome for being able to use regexps and file system modules and whatnot but a pain for code builds. We also depend on a much newer |
@HenrikBengtsson I re-read what I wrote. There is not talking down here anywhere. All I continue to say is 'works at CRAN, we offer help here as volunteers'. If you use a non-CRAN platform, the excitement and adventure is all yours. I look forward to many more such reports. |
TL;DR: I think the requirement should be It looks like cmake gained support for However, trying with cmake 3.13.0-3.14.5 gives: > install.packages("nloptr")
...
[ 96%] Linking CXX static library libnlopt.a
[100%] Built target nlopt
CMake Error: The source directory "/home/hb/repositories/other/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
configure: creating ./config.status
config.status: creating src/Makevars
...
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (nloptr) So, still an error, but Using cmake 3.15.0, or newer, works! (*) Building from source (obviously) requires |
Thanks @HenrikBengtsson. I will add this to the |
Hi. FYI, installing nloptr 2.0.0 and its dependencies from source appears to fail on an up-to-date Ubuntu 18.04.6 system.
This might be because cmake 3.10.2, which is (>= 2.7.0), does not support option
-j
.Details:
PS. I can probably figure this out myself. Just sharing as an FYI.
The text was updated successfully, but these errors were encountered: