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

lp_etaPFI.h not found in pak installation #560

Closed
hh1985 opened this issue Nov 20, 2023 · 2 comments
Closed

lp_etaPFI.h not found in pak installation #560

hh1985 opened this issue Nov 20, 2023 · 2 comments

Comments

@hh1985
Copy link

hh1985 commented Nov 20, 2023

I tried to install pak through install.packages("pak"), but got following error

lp_lib.c:65:12: fatal error: 'lp_etaPFI.h' file not found
  #include "lp_etaPFI.h"
           ^~~~~~~~~~~~~
1 error generated.
make[1]: *** [/usr/lib/R/etc/Makeconf:191: lp_lib.o] Error 1
make[1]: Leaving directory '/tmp/RtmpmZDbPz/R.INSTALL1bde3230e38c77/pak/src/library/lpSolve/src'
ERROR: compilation failed for package ‘lpSolve’

I manually installed lpSolve, but the error remained.

@gaborcsardi
Copy link
Member

The simplest is to install a binary package from our repo, see https://pak.r-lib.org/#arrow_down-installation

Or, if CRAN builds binaries for your platform, you can install those. They are potentially not the latest pak versions.

If you insist on building pak from source, then you'll need to tell us more about your setup, e.g. what you have in your ~/.R/Makevars file, what's your platform, and also show the full compilation output.

@hh1985
Copy link
Author

hh1985 commented Nov 20, 2023

I successfully installed the binary package. No need to deal with the source version.

@hh1985 hh1985 closed this as completed Nov 20, 2023
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