Skip to content
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

cannot install the recent version 2.0.0 #99

Closed
waynelapierre opened this issue Jan 26, 2022 · 2 comments
Closed

cannot install the recent version 2.0.0 #99

waynelapierre opened this issue Jan 26, 2022 · 2 comments

Comments

@waynelapierre
Copy link

error message:

/usr/bin/ld: cannot find -lnlopt
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/make/shlib.mk:10: nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’

session info:

R version 4.1.2 (2021-11-01)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora Linux 35 (Workstation Edition)

Matrix products: default
BLAS/LAPACK: /usr/lib64/libflexiblas.so.3.1

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

loaded via a namespace (and not attached):
[1] compiler_4.1.2 tools_4.1.2   
@astamm
Copy link
Owner

astamm commented Jan 26, 2022

I would need more details of the install process to understand what is going on. I see you're running under Fedora. In this case, v2.0.0 should look first for an existing NLopt build on your system of recent enough version (>= 2.7.0) and use it if found. In case it cannot find such a build, it should build NLopt from included sources using cmake. In this case, it will attempt to find cmake binary on your PATH and, if it cannot find it, it should prompt you to install it suggesting a variety of options. I don't see this message in the error you shared here. Can you please detail?

@waynelapierre
Copy link
Author

You are right. After installing cmake, the problem is gone. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants