From lizhen.peng at stonybrook.edu  Sun Nov  3 22:15:31 2013
From: lizhen.peng at stonybrook.edu (Lizkitty)
Date: Sun, 3 Nov 2013 13:15:31 -0800 (PST)
Subject: [Rd] Failed to install kernlab package
Message-ID: <1383513331455-4679652.post@n4.nabble.com>

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.



[Rd] Failed to install kernlab package
Lizkitty