Seite 1 von 1

qwraps2-Paket kann nicht installiert werden

Verfasst: Do Mär 04, 2021 1:42 pm
von newbie55
Hallo,
ich bin R-Neuling und nutze die R version 4.0.4 (2021-02-15) unter Linux Mint 19.3 Tricia Cinnamon 64-bit.
Beim Versuch das qwraps2-Paket zu installieren bekomme ich folgende Ausgabe:

Code: Alles auswählen

> install.packages("qwraps2")
Installing package into ‘/home/lena/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependency ‘RcppArmadillo’

versuche URL 'https://cloud.r-project.org/src/contrib/RcppArmadillo_0.10.2.1.0.tar.gz'
Content type 'application/x-gzip' length 1660746 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

versuche URL 'https://cloud.r-project.org/src/contrib/qwraps2_0.5.1.tar.gz'
Content type 'application/x-gzip' length 535326 bytes (522 KB)
==================================================
downloaded 522 KB

* installing *source* package ‘RcppArmadillo’ ...
** Paket ‘RcppArmadillo’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -std=gnu++11 accepts -g... yes
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ -std=gnu++11 accepts -g... (cached) yes
checking whether we have a suitable tempdir... /tmp
checking whether R CMD SHLIB can already compile programs using OpenMP... yes
checking LAPACK_LIBS... system LAPACK found
configure: creating ./config.status
config.status: creating inst/include/RcppArmadilloConfigGenerated.h
config.status: creating src/Makevars
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/home/lena/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include'   -I../inst/include  -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-EkOYxp/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppArmadillo.cpp -o RcppArmadillo.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/home/lena/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include'   -I../inst/include  -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-EkOYxp/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/home/lena/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include'   -I../inst/include  -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-EkOYxp/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c fastLm.cpp -o fastLm.o
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RcppArmadillo.so RcppArmadillo.o RcppExports.o fastLm.o -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld: -llapack kann nicht gefunden werden
/usr/bin/ld: -lblas kann nicht gefunden werden
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:10: recipe for target 'RcppArmadillo.so' failed
make: *** [RcppArmadillo.so] Error 1
ERROR: compilation failed for package ‘RcppArmadillo’
* removing ‘/home/lena/R/x86_64-pc-linux-gnu-library/4.0/RcppArmadillo’
Warning in install.packages :
  installation of package ‘RcppArmadillo’ had non-zero exit status
ERROR: dependency ‘RcppArmadillo’ is not available for package ‘qwraps2’
* removing ‘/home/lena/R/x86_64-pc-linux-gnu-library/4.0/qwraps2’
Warning in install.packages :
  installation of package ‘qwraps2’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpRpZqWK/downloaded_packages’
Ich würde mich freuen wenn mir jemensch weiterhelfen kann.

Re: qwraps2-Paket kann nicht installiert werden

Verfasst: Do Mär 04, 2021 9:42 pm
von EDi
Ist denn Lapack & Blas auf deiner Kiste installiert?

Ich kenne mich mit Mint nicht aus, aber meine das auch apt als Paket manager genutzt wird (wie z.b. auch Ubuntu). Dann man mach in einer shell:

Code: Alles auswählen

sudo apt-get install  build-essential libblas-dev liblapack-dev gfortran
Sollte auch grafisch gehen (Synaptic? Ewigkeiten nicht mehr genutzt...)

Re: qwraps2-Paket kann nicht installiert werden

Verfasst: Fr Mär 05, 2021 8:35 am
von newbie55
Super, das hat geholfen, jetzt läuft es! Herzlichen Dank!!

Re: qwraps2-Paket kann nicht installiert werden

Verfasst: Fr Mär 05, 2021 2:47 pm
von EDi
Super freut mich (Linux Nutzer gibt es ja nicht sooviele hier).