[Rcpp-devel] Problems with installing RcppGSL
binbinlu at whu.edu.cn
binbinlu at whu.edu.cn
Wed Oct 14 08:18:56 CEST 2015
Hi,
Recently I am trying to use GSL for improving my code and I found RcppGSL is really great. BUT I am stuck by configuring it for a few days. What I've done is as:
1. Install Rcpp and RcppGSL;
2. Download "local320.zip" file and unzipped it as "LIB_GSL"
3. Add an environment variable LIB_GSL, and make it as "D:/LIB_GSL"
4. Edit the "Makevars.win" as follows:
PKG_CPPFLAGS=-I$(LIB_GSL)/include -I../inst/include
PKG_LIBS=-L$(LIB_GSL)/lib/x64 -lgsl -lgslcblas $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "Rcpp:::LdFlags()")
Then I started to run the example code:
> sourceCpp("bSpline.cpp")
I got the following errors:
g++ -m64 -I"D:/PROGRA~1/R/R-31~1.1/include" -DNDEBUG -ID:/LIB_GSL/include -ID:/LIB_GSL/include -I../inst/include -I"D:/PROGRA~1/R/R-31~1.1/library/Rcpp/include" -I"D:/PROGRA~1/R/R-31~1.1/library/RcppGSL/include" -I"E:/Dropbox/Paper/HIGHPE~1/packages/RcppGSL/inst/examples/bSpline" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c bSpline.cpp -o bSpline.o
g++ -m64 -shared -s -static-libgcc -o sourceCpp_1.dll tmp.def bSpline.o -LD:/LIB_GSL/lib -lgsl -lgslcblas -LD:/PROGRA~1/R/R-31~1.1/bin/x64 -lRlapack -LD:/PROGRA~1/R/R-31~1.1/bin/x64 -lRblas -lgfortran -LD:/LIB_GSL/lib -lgsl -lgslcblas -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LD:/PROGRA~1/R/R-31~1.1/bin/x64 -lR
d:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lgsl
d:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lgslcblas
d:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lgsl
d:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lgslcblas
collect2: ld returned 1 exit status
I've no idea what happened. Did I miss anything or do something wrongly? Many thanks!
Best regards,
Binbin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20151014/5d3ff18f/attachment-0001.html>
More information about the Rcpp-devel
mailing list