Aujourd'hui est un grand jour : j'ai enfin une station de travail Linux avec un noyau suffisamment récent pour installer R sans problème (avant je l'utilise sur mon PC de bureau).
Je découvre l'utilisation de la ligne de commande (à mon sens moins pratique que sous windows) et j'ai un problème pour installer des nouveaux packages.
install.packages("lme4") me donne (je coupe là où il n'y a pas d'erreur)
* Installing *source* package 'Matrix' ...
** libs
gcc -std=gnu99 -I/usr/lib64/R/include -I./UFconfig -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c CHMfactor.c -o CHMfactor.o
[...]
gcc -std=gnu99 -I/usr/lib64/R/include -I./UFconfig -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c sparseQR.c -o sparseQR.o
make[1]: entrant dans le répertoire « /tmp/R.INSTALL.H8Y3hF/Matrix/src/SPQR »
( cd Lib ; make clean )
[...]
make[1]: entrant dans le répertoire « /tmp/R.INSTALL.H8Y3hF/Matrix/src/SPQR »
( cd Lib ; make lib )
make[2]: entrant dans le répertoire « /tmp/R.INSTALL.H8Y3hF/Matrix/src/SPQR/Lib »
g++ -I/usr/lib64/R/include -I../../UFconfig -I../../CHOLMOD/Include -I../Include -DNPARTITION -I/usr/local/include -fpic -g -O2 -c ../Source/spqr_rmap.cpp
make[2]: g++ : commande introuvable
make[2]: *** [spqr_rmap.o] Erreur 127
make[2]: quittant le répertoire « /tmp/R.INSTALL.H8Y3hF/Matrix/src/SPQR/Lib »
make[1]: *** [library] Erreur 2
make[1]: quittant le répertoire « /tmp/R.INSTALL.H8Y3hF/Matrix/src/SPQR »
make: *** [sublibs] Erreur 1
ERROR: compilation failed for package 'Matrix'
** Removing '/home/chapuis/R/x86_64-unknown-linux-gnu-library/2.8/Matrix'
* Installing *source* package 'lme4' ...
** libs
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -I"/usr/lib64/R/library/stats/include" -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c init.c -o init.o
init.c:3:20: error: Matrix.h: Aucun fichier ou dossier de ce type
In file included from init.c:4:
Syms.h:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘lme4_ASym’
init.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘c’
init.c: In function ‘R_init_lme4’:
init.c:55: warning: implicit declaration of function ‘M_R_cholmod_start’
init.c:55: error: ‘c’ undeclared (first use in this function)
init.c:55: error: (Each undeclared identifier is reported only once
init.c:55: error: for each function it appears in.)
init.c:58: error: ‘lme4_ASym’ undeclared (first use in this function)
init.c:59: error: ‘lme4_CmSym’ undeclared (first use in this function)
init.c:60: error: ‘lme4_CxSym’ undeclared (first use in this function)
init.c:61: error: ‘lme4_DimSym’ undeclared (first use in this function)
init.c:62: error: ‘lme4_GpSym’ undeclared (first use in this function)
init.c:63: error: ‘lme4_LSym’ undeclared (first use in this function)
init.c:64: error: ‘lme4_RXSym’ undeclared (first use in this function)
init.c:65: error: ‘lme4_RZXSym’ undeclared (first use in this function)
init.c:66: error: ‘lme4_STSym’ undeclared (first use in this function)
init.c:67: error: ‘lme4_VSym’ undeclared (first use in this function)
init.c:68: error: ‘lme4_XSym’ undeclared (first use in this function)
init.c:69: error: ‘lme4_XstSym’ undeclared (first use in this function)
init.c:70: error: ‘lme4_ZtSym’ undeclared (first use in this function)
init.c:71: error: ‘lme4_devianceSym’ undeclared (first use in this function)
init.c:72: error: ‘lme4_dimsSym’ undeclared (first use in this function)
init.c:73: error: ‘lme4_envSym’ undeclared (first use in this function)
init.c:74: error: ‘lme4_etaSym’ undeclared (first use in this function)
init.c:75: error: ‘lme4_fixefSym’ undeclared (first use in this function)
init.c:76: error: ‘lme4_flistSym’ undeclared (first use in this function)
init.c:77: error: ‘lme4_ghwSym’ undeclared (first use in this function)
init.c:78: error: ‘lme4_ghxSym’ undeclared (first use in this function)
init.c:79: error: ‘lme4_gradientSym’ undeclared (first use in this function)
init.c:80: error: ‘lme4_iSym’ undeclared (first use in this function)
init.c:81: error: ‘lme4_ncSym’ undeclared (first use in this function)
init.c:82: error: ‘lme4_nlmodelSym’ undeclared (first use in this function)
init.c:83: error: ‘lme4_muEtaSym’ undeclared (first use in this function)
init.c:84: error: ‘lme4_muSym’ undeclared (first use in this function)
init.c:85: error: ‘lme4_offsetSym’ undeclared (first use in this function)
init.c:86: error: ‘lme4_pSym’ undeclared (first use in this function)
init.c:87: error: ‘lme4_permSym’ undeclared (first use in this function)
init.c:88: error: ‘lme4_pWtSym’ undeclared (first use in this function)
init.c:89: error: ‘lme4_ranefSym’ undeclared (first use in this function)
init.c:90: error: ‘lme4_residSym’ undeclared (first use in this function)
init.c:91: error: ‘lme4_sigmaSym’ undeclared (first use in this function)
init.c:92: error: ‘lme4_sqrtrWtSym’ undeclared (first use in this function)
init.c:93: error: ‘lme4_sqrtXWtSym’ undeclared (first use in this function)
init.c:94: error: ‘lme4_uSym’ undeclared (first use in this function)
init.c:95: error: ‘lme4_varSym’ undeclared (first use in this function)
init.c:96: error: ‘lme4_xSym’ undeclared (first use in this function)
init.c:97: error: ‘lme4_ySym’ undeclared (first use in this function)
init.c: In function ‘R_unload_lme4’:
init.c:104: warning: implicit declaration of function ‘M_cholmod_finish’
init.c:104: error: ‘c’ undeclared (first use in this function)
make: *** [init.o] Erreur 1
ERROR: compilation failed for package 'lme4'
** Removing '/home/chapuis/R/x86_64-unknown-linux-gnu-library/2.8/lme4'
Les packages téléchargés sont dans
/tmp/RtmpNBZN3b/downloaded_packages
Warning messages:
1: In install.packages("lme4") :
l'installation du package 'Matrix' a eu un statut de sortie non nul
2: In install.packages("lme4") :
l'installation du package 'lme4' a eu un statut de sortie non nul
>
J'ai bien l'impression qu'il me manque g++.
J'ai progressé car au départ c'était gcc mais maintenant il est installé .
Mais je suis toutefois toujours bloqué. Car auparavant en tapant gcc on me disait comment l'installer.
Quelqu'un aurait-il une solution ?
Merci.