-
Notifications
You must be signed in to change notification settings - Fork 4
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
rcppziggurat installation fails on linux #12
Comments
"A Linux machine" is adorably non-descriptive. Does it have a know distro? Can you name it? The posted error message makes no sense. What exactly did you invoke? Also, know that you need GSL as some of the examples / illustrations use the GSL RNG for comparison. We could lift that. The actual RNG ... is just a header file. So share some more details and I can probably help you. |
R version 3.5.1 (2018-07-02) the msg came after I did install GSL using |
Let's bacl off for a second. I wrote RcppZiggurat on Ubuntu and still use it there. The error message edd@rob:~$ Rscript -e 'install.packages("RcppZiggurat", repos="https://cran.us.r-project.org")'
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.us.r-project.org/src/contrib/RcppZiggurat_0.1.5.tar.gz'
Content type 'application/x-gzip' length 405259 bytes (395 KB)
==================================================
downloaded 395 KB
* installing *source* package ‘RcppZiggurat’ ...
** package ‘RcppZiggurat’ successfully unpacked and MD5 sums checked
** libs
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I. -I../inst/include -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppGSL/include" -fpic -g -O3 -Wall -pipe -DBOOST_NO_AUTO_PTR -march=native -c RcppExports.cpp -o RcppExports.o
ccache gcc -I"/usr/share/R/include" -DNDEBUG -I. -I../inst/include -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppGSL/include" -fpic -g -O3 -Wall -pipe -DBOOST_NO_AUTO_PTR -std=gnu99 -march=native -c init.c -o init.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I. -I../inst/include -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppGSL/include" -fpic -g -O3 -Wall -pipe -DBOOST_NO_AUTO_PTR -march=native -c ziggurat.cpp -o ziggurat.o
ccache g++ -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RcppZiggurat.so RcppExports.o init.o ziggurat.o -L/usr/lib/x86_64-linux-gnu -lgsl -lgslcblas -lm -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/RcppZiggurat/libs
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (RcppZiggurat)
The downloaded source packages are in
‘/tmp/RtmpIdHk0t/downloaded_packages’
edd@rob:~$ I use (For reference, I also keep |
looks different for me: still that g++ business - any guesses?
|
What does |
Based on this line the package init (needed for the GSL linking) went sour:
Do you have a non-standard In any event, it's "all you": package has a perfect record at CRAN. |
In particular, the file ## Use the R_HOME indirection to support installations of multiple R version
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "RcppGSL:::LdFlags()"` For some reason this does not work for you. Maybe you can work out why and fix it. |
/usr/bin/g++ I'm sure Rprofile is harmless r-base-dev is installed. now that g++ keeps coming up, I feel like have experienced this before - guess I'll reinstall all R related stuff. thanks for your suggestions, I'll do some more research! |
It's that one line about calling I get |
me too: |
Beats me. At this point unpack the source tarball, replace that line in |
Any luck? Any objection to closing this as it does not seem to be a reproducible issue? |
I didn't have time yet, but I'll try as soon as I can. Thanks again! |
I had the same issue, and my Rprofile does load some |
I had the same error, the vanilla solution worked for me. Thank you! |
trying to install rcppziggurat on a linux machine, I get following error:
somehow and somewhere in the process, an information-string about the R-version seems to be passed on to the installation routine...
The text was updated successfully, but these errors were encountered: