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

ERROR on package install in MacOS 12.3.1 #116

Closed
janikmiet opened this issue May 12, 2022 · 2 comments
Closed

ERROR on package install in MacOS 12.3.1 #116

janikmiet opened this issue May 12, 2022 · 2 comments

Comments

@janikmiet
Copy link

janikmiet commented May 12, 2022

I have CMAKE installed but cannot install the package.

CMake Error: Error processing file: /private/var/folders/vj/7vyqwvq510722f81159tbcjc0000gn/T/Rtmpsm8cTN/R.INSTALLfd77502f60d1/nloptr/src/nlopthomeslice-build/cmake_install.cmake
cp: nlopt/include/*: No such file or directory

.....

ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-Lnlopt/lib'
ld: library not found for -lnlopt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/nloptr’
Warning in install.packages :
  installation of package ‘nloptr’ had non-zero exit status


@astamm
Copy link
Owner

astamm commented May 16, 2022

Thanks for reaching out. A little more context would be helpful. It seems you're running on macOS. Do you have a system version of nlopt already installed ? Which version ? What is the version of cmake you are using ? What is the full log of the install process ? In particular, what do the lines written by pkg-config say?

@janikmiet
Copy link
Author

Thank you for the answer. It seemed that system version of nlopt wasn't installed. Now I managed to finish package installation.

Initially the problem is trying to push Shiny image to ShinyApps.io and the application depends on nloptrpackage (more specifically ggpubr package depends on nloptr). Now I managed to install the package on local environment, but not yet to the Shinyapps.io (missing CMAKE on Shinyapps.io). But I quess this is not problem of the nloptr package itself, so I can close this issue.

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