-
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
v2.0.0 installation fails on macOS #107
Comments
Thanks for reporting that. Might it be possible that you have a file |
Also, it seems you already have |
Thanks for the help!
I checked and I don't see anything that could interfere with the installation. The problem also occurred when running the installation through However, removing my previous |
We might need to dig into this. @eddelbuettel: is the current strategy in |
We made a decision to fail when the version is too low: Lines 54 to 63 in 69bfb77
We then still force a build. Turns out that those can turn sour. Maybe that can be improved by reordering |
Actually, I think the issue comes from here: Lines 38 to 52 in 69bfb77
It seems we update PKG_CPPFLAGS and PKG_LIBS variables regardless of whether the system nlopt is recent enough.I think moving the if statement which tests minimal version within the if statement that tests whether nlopt already exists should do the trick.
|
Something like that should do the trick:
|
(Next time, could you make it easier and show a diff?) Is the change you are proposing the inner else? Whichmessages but does not error, so inexperienced users may again be lost in front of too much output if it fails later? PS And I missed that you were posting two tickets at once. Yes -- the propagation of what was found may be related, that is a good catch as we didn't really consider that case. PPS Yep, agree. Combining tests for 'does it exist and is it new enough' should help! |
We might also remove the setting of |
Agreed on the |
I get the following error when trying to install nloptr 2.0.0 from source (both on R 4.1.2 and R-devel):
You can find the full output in attachment: nloptr.txt
Session info
The text was updated successfully, but these errors were encountered: