[Rd] Failed to install kernlab package
Lizkitty
lizhen.peng at stonybrook.edu
Sun Nov 3 22:15:31 CET 2013
Hi everyone,
I am trying to install kernlab package, but failed many times by now on
CentOS 6 operating system. FYI, I have no problem with this package
installation on windows platform.
Here is the error message:
trying URL 'http://cran.wustl.edu/src/contrib/kernlab_0.9-18.tar.gz'
Content type 'application/x-gzip' length 1069148 bytes (1.0 Mb)
opened URL
==================================================
downloaded 1.0 Mb
* installing *source* package âkernlabâ ...
** package âkernlabâ successfully unpacked and MD5 sums checked
** libs
g++ -I/n/sw/R-3.0.1_gcc-4.7.2/lib64/R/include -DNDEBUG -I/usr/local/include
-fpic -g -O2 -c brweight.cpp -o brweight.o
In file included from
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bits/localefwd.h:42:0,
from
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/ios:42,
from
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/ostream:40,
from
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/iostream:40,
from errorcode.h:43,
from brweight.h:43,
from brweight.cpp:42:
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23:
error: âuselocaleâ was not declared in this scope
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:45:
error: invalid type in declaration before â;â token
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:
In function âint std::__convert_from_v(__locale_struct* const&, char*, int,
const char*, ...)â:
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:76:53:
error: â__gnu_cxx::__uselocaleâ cannot be used as a function
/n/sw/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:101:33:
error: â__gnu_cxx::__uselocaleâ cannot be used as a function
make: *** [brweight.o] Error 1
ERROR: compilation failed for package âkernlabâ
* removing â/n/home09/wang/R/x86_64-unknown-linux-gnu-library/3.0/kernlabâ
The downloaded source packages are in
â/scratch/tmp/Rtmpt52VjR/downloaded_packagesâ
Warning message:
In install.packages("kernlab") :
installation of package âkernlabâ had non-zero exit status
I found out online that many others also failed installing kernlab on linux,
but no explicit unique solutions for this problem.
What I have tried so far are:
1) change cran mirrors
2) using command line directly: R CMD INSTALL kernlab_0.9-18.tar.gz, after
downloading the package
3) reset working directory
Unfortunately, none of these solved my problem...
Any suggestions are highly appreciated!
--
View this message in context: http://r.789695.n4.nabble.com/Failed-to-install-kernlab-package-tp4679652.html
Sent from the R devel mailing list archive at Nabble.com.
More information about the R-devel
mailing list