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

Unable to install npci package #3

Open
neko2048 opened this issue Oct 18, 2021 · 6 comments
Open

Unable to install npci package #3

neko2048 opened this issue Oct 18, 2021 · 6 comments

Comments

@neko2048
Copy link

neko2048 commented Oct 18, 2021

Hi, there!

First, thanks for sharing the package for us!
I would have this package to have several simulations for IHDP. But when I was trying to install this package, it gave me the error message below:

* installing *source* package ‘npci’ ...
** using staged installation
** libs
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o npci.so npci.o -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
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 '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [npci.so] Error 1
ERROR: compilation failed for package ‘npci’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/npci’

I have tried many ways like searching the problem, changing R version to 3.1.1, and even switching from Windows to MacOS to solve this issue but all failed.
Would you have any suggestion for this?

Thanks a lot!

@BasVolkers
Copy link

I had the same issue!

Changing the content of src/MakeVars to the following fixed it for me:

PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

@vdorie
Copy link
Owner

vdorie commented Mar 17, 2022

Thanks for pointing this out, and sorry that I missed this earlier. I'm a little baffled that anyone is using this repo since I've never published anything on it or made an official release.

I've corrected the Makefile to point to the correct library. If this doesn't fix it, make sure that gfortran is installed.

@Zyx6666
Copy link

Zyx6666 commented Nov 1, 2023

Why when I use install.packages("npci") to install npci package, it reports: Warning in install.packages:
package ‘npci’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

@vdorie
Copy link
Owner

vdorie commented Nov 1, 2023 via email

@Zyx6666
Copy link

Zyx6666 commented Nov 1, 2023

Thank you very much. At your prompt, I successfully installed it.

@qiaokeli1124
Copy link

Thank you very much. At your prompt, I successfully installed it.

hi,Could you kindly share the steps you took to install it?

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

5 participants