Skip to content

install with R 3.2  #24

@kmezhoud

Description

@kmezhoud

Hi,
I am trying to install RcppEigen from Rstudio or R server with few RAM 512.
Thanks

Sys.info()
                                      sysname 
                                      "Linux" 
                                      release 
                          "3.13.0-57-generic" 
                                      version 
"#95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015" 
                                     nodename 
                           "CancerPortal.org" 
                                      machine 
                                     "x86_64" 
                                        login 
                                   "kmezhoud" 
                                         user 
                                   "kmezhoud" 
                               effective_user 
                                   "kmezhoud"  

I found some trouble with "Setting LC_CTYPE failed, using "C"". I set

sudo defaults write org.R-project.R force.LANG en_US.UTF-8

kmezhoud@CancerPortal:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

From git

install_github("RcppCore/RcppEigen")
Downloading GitHub repo RcppCore/RcppEigen@master
Installing RcppEigen
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD  \
  INSTALL '/tmp/Rtmpe7EGOC/devtools49ce5d7ba19/RcppCore-RcppEigen-2104c36'  \
  --library='/home/kmezhoud/R/x86_64-pc-linux-gnu-library/3.2'  \
  --install-tests 

During startup - Warning message:
Setting LC_CTYPE failed, using "C" 
* installing *source* package 'RcppEigen' ...
** libs
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppEigen.cpp -o RcppEigen.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c fastLm.cpp -o fastLm.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make: *** [fastLm.o] Error 4
ERROR: compilation failed for package 'RcppEigen'
* removing '/home/kmezhoud/R/x86_64-pc-linux-gnu-library/3.2/RcppEigen'
Error: Command failed (1)

From cran

> install.packages("RcppEigen")
Installing package into ‘/home/kmezhoud/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
--2015-11-01 07:02:58--  https://cran.rstudio.com/src/contrib/RcppEigen_0.3.2.5.1.tar.gz
Resolving cran.rstudio.com (cran.rstudio.com)... 54.230.184.187
Connecting to cran.rstudio.com (cran.rstudio.com)|54.230.184.187|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1235892 (1.2M) [application/x-gzip]
Saving to: ‘/tmp/RtmpRJfZ0o/downloaded_packages/RcppEigen_0.3.2.5.1.tar.gz’

     0K .......... .......... .......... .......... ..........  4% 4.28M 0s
    50K .......... .......... .......... .......... ..........  8% 4.02M 0s
   100K .......... .......... .......... .......... .......... 12% 4.38M 0s
   150K .......... .......... .......... .......... .......... 16% 4.29M 0s
   200K .......... .......... .......... .......... .......... 20% 4.89M 0s
   250K .......... .......... .......... .......... .......... 24% 5.00M 0s
   300K .......... .......... .......... .......... .......... 28% 30.2M 0s
   350K .......... .......... .......... .......... .......... 33% 3.97M 0s
   400K .......... .......... .......... .......... .......... 37% 28.0M 0s
   450K .......... .......... .......... .......... .......... 41% 4.92M 0s
   500K .......... .......... .......... .......... .......... 45% 5.47M 0s
   550K .......... .......... .......... .......... .......... 49% 14.4M 0s
   600K .......... .......... .......... .......... .......... 53% 29.9M 0s
   650K .......... .......... .......... .......... .......... 57% 4.38M 0s
   700K .......... .......... .......... .......... .......... 62% 46.1M 0s
   750K .......... .......... .......... .......... .......... 66%  130M 0s
   800K .......... .......... .......... .......... .......... 70% 5.19M 0s
   850K .......... .......... .......... .......... .......... 74% 45.9M 0s
   900K .......... .......... .......... .......... .......... 78% 5.23M 0s
   950K .......... .......... .......... .......... .......... 82% 36.7M 0s
  1000K .......... .......... .......... .......... .......... 86% 73.1M 0s
  1050K .......... .......... .......... .......... .......... 91%  138M 0s
  1100K .......... .......... .......... .......... .......... 95% 4.54M 0s
  1150K .......... .......... .......... .......... .......... 99% 43.9M 0s
  1200K ......                                                100%  111M=0.2s

2015-11-01 07:02:58 (7.75 MB/s) - ‘/tmp/RtmpRJfZ0o/downloaded_packages/RcppEigen_0.3.2.5.1.tar.gz’ saved [1235892/1235892]

* installing *source* package ‘RcppEigen’ ...
** package ‘RcppEigen’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppEigen.cpp -o RcppEigen.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c fastLm.cpp -o fastLm.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make: *** [fastLm.o] Error 4
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/home/kmezhoud/R/x86_64-pc-linux-gnu-library/3.2/RcppEigen’
Warning in install.packages :
  installation of package ‘RcppEigen’ had non-zero exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions