centos6 - Error installing Hmisc in R 3.3.0 on centos 6.7 -
i have installed r 3.3.0 on centos 5.2 server, , trying install packages need run shiny
app; 1 of packages hmisc
, causing error.
unfortunately, have no idea how proceed. advise please? need add additional libraries via yum install
?
many thanks
gcc: /builddir/build/build/r-3.3.0/zlib-1.2.8/target/usr/lib64/libz.a: no such file or directory
gcc: /builddir/build/build/r-3.3.0/bzip2-1.0.6/target/usr/lib64/libbz2.a: no such file or directory
gcc: /builddir/build/build/r-3.3.0/xz-5.2.2/target/usr/lib64/liblzma.a: no such file or directory
gcc: /builddir/build/build/r-3.3.0/pcre-8.38/target/usr/lib64/libpcre.a: no such file or directory
gcc: /builddir/build/build/r-3.3.0/curl-7.48.0/target/usr/lib64/libcurl.a: no such file or directory
> sessioninfo() r version 3.3.0 (2016-05-03) platform: x86_64-redhat-linux-gnu (64-bit) running under: centos release 6.7 (final) locale: [1] lc_ctype=en_us.utf-8 lc_numeric=c [3] lc_time=en_us.utf-8 lc_collate=en_us.utf-8 [5] lc_monetary=en_us.utf-8 lc_messages=en_us.utf-8 [7] lc_paper=en_us.utf-8 lc_name=c [9] lc_address=c lc_telephone=c [11] lc_measurement=en_us.utf-8 lc_identification=c attached base packages: [1] stats graphics grdevices utils datasets methods base loaded via namespace (and not attached): [1] tools_3.3.0
this worked me same issue, it's hack still worked.
wget http://zlib.net/zlib-1.2.8.tar.gz ./configure ; make ; make install mkdir -p /builddir/build/build/r-3.3.0/zlib-1.2.8/target/usr/lib64/ ln -s /usr/local/lib/libz.a /builddir/build/build/r-3.3.0/zlib-1.2.8/target/usr/lib64/libz.a wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz make ; make install mkdir -p /builddir/build/build/r-3.3.0/bzip2-1.0.6/target/usr/lib64/ ln -s /usr/local/lib/libbz2.a /builddir/build/build/r-3.3.0/bzip2-1.0.6/target/usr/lib64/libbz2.a wget http://tukaani.org/xz/xz-5.2.2.tar.gz ./configure ; make ; make install mkdir -p /builddir/build/build/r-3.3.0/xz-5.2.2/target/usr/lib64/ ln -s /usr/local/lib/liblzma.a /builddir/build/build/r-3.3.0/xz-5.2.2/target/usr/lib64/liblzma.a wget http://downloads.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.tar.gz ./configure ; make ; make install mkdir -p /builddir/build/build/r-3.3.0/pcre-8.38/target/usr/lib64/ ln -s /usr/local/lib/libpcre.a /builddir/build/build/r-3.3.0/pcre-8.38/target/usr/lib64/libpcre.a wget https://curl.haxx.se/download/curl-7.48.0.tar.gz ./configure ; make ; make install mkdir -p /builddir/build/build/r-3.3.0/curl-7.48.0/target/usr/lib64/ ln -s /usr/local/lib/libcurl.a /builddir/build/build/r-3.3.0/curl-7.48.0/target/usr/lib64/libcurl.a yum install libidn-devel.i686 libidn-devel.x86_64 libssh-devel.x86_64 libssh-devel.i686 libssh2-devel.i686 libssh2-devel.x86_64 openldap-devel.i686 openldap-devel.x86_64 r install.packages("hmisc") > library(hmisc) loading required package: lattice loading required package: survival loading required package: formula loading required package: ggplot2 attaching package: ‘hmisc’ following objects masked ‘package:base’: format.pval, round.posixt, trunc.posixt, units >
Comments
Post a Comment