2021年3月22日星期一

cannot find -lgsl, cannot find -lgslcblas

I am trying to install a R package on windows 10 using "R CMD INSTALL Rpkg" and I am getting the following error:

C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgsl  C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgslcblas  collect2.exe: error: ld returned 1 exit status  no DLL was created  

I installed R in C:\R_soft\R\R-4.0.4, RStudio in C:\R_soft\RStudio, and Rtools in C:\rtools40. Location of gsl library is C:\R_soft\R\local323. I referred https://cran.r-project.org/web/packages/dynr/vignettes/InstallationForUsers.pdf to install gsl and setup the environmental paths. The package I am trying to install was written in C++.

> Sys.which("make")                                "C:\\rtools40\\usr\\bin\\make.exe"    > Sys.which("gcc")   "C:\\rtools40\\mingw64\\bin\\gcc.exe"  

I am still new to R language. Any help would be highly appreciated.

https://stackoverflow.com/questions/66756295/cannot-find-lgsl-cannot-find-lgslcblas March 23, 2021 at 10:08AM

没有评论:

发表评论