r - Rcpp, Rtools, and cygwin: failing to install Rcpp -


first try, within cygwin r 3.1.3 installed:

>path=/usr/local/bin:/usr/bin 

in r:

>install.packages("rcpp",repos="http://cran.us.r-project.org") 

yields error

[...] /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lpcre /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -llzma /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lbz2 /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lz /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -liconv /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -licuuc /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -licui18n collect2: error: ld returned 1 exit status /usr/lib/r/share/make/shlib.mk:6: recipe target 'rcpp.dll' failed make: *** [rcpp.dll] error 1 error: compilation failed package ‘rcpp’ * removing ‘/usr/lib/r/site-library/rcpp’ 

so try installing rtools 3.2. instructed cygwin install, don't install cygwin's dll included in rtools. then

>path=/cygdrive/c/rtools/bin:/cygdrive/c/rtools/gcc-4.6.3/bin:$path 

which, in r, yields silent non-zero status exit when trying installation

installing package ‘/usr/lib/r/site-library’ (as ‘lib’ unspecified) trying url 'http://cran.us.r-project.org/src/contrib/rcpp_0.11.6.tar.gz' content type 'application/x-gzip' length 2352221 bytes (2.2 mb) opened url ================================================== downloaded 2.2 mb   downloaded source packages in         ‘/tmp/rtmp71eoxd/downloaded_packages’ warning message: in install.packages("rcpp", repos = "http://cran.us.r-project.org") :   installation of package ‘rcpp’ had non-zero exit status 

verbose mode not more informative. searched long time, @ loss now. has idea? thanks

i getting frustrated dealing same errors. in cygwin installation 'select packages' window, search each of these libraries , install them. example: pcre, lzma, bz2, ... able compile after installing of these.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -