Errors when trying to install packages

Hi,

I am trying to install a simple package like "car".
The errors occur in the second half of the protocol below and are of the form
"ERROR: configuration failed for package ‘stringi’" with varying package names.
I do have no clue what this is about and what to do about it.
Similar error sequences occur when I tried to install other packages as well.

I do use Ubuntu 22.04.1 LTS.

Any help would be welcome! :slight_smile:

Best,
Fragensteller

> install.packages("car")
Installiere Paket nach ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2’
(da ‘lib’ nicht spezifiziert)
installiere auch Abhängigkeiten ‘fs’, ‘rematch2’, ‘stringi’, ‘digest’, ‘pkgload’, ‘waldo’, ‘ellipsis’, ‘purrr’, ‘stringr’, ‘tibble’, ‘tidyr’, ‘tidyselect’, ‘vctrs’, ‘pillar’, ‘testthat’, ‘broom’, ‘dplyr’, ‘SparseM’, ‘minqa’, ‘nloptr’, ‘Rcpp’, ‘RcppEigen’, ‘farver’, ‘lifecycle’, ‘rlang’, ‘pbkrtest’, ‘quantreg’, ‘lme4’, ‘scales’

versuche URL 'https://cloud.r-project.org/src/contrib/fs_1.6.0.tar.gz'
Content type 'application/x-gzip' length 1185399 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

versuche URL 'https://cloud.r-project.org/src/contrib/rematch2_2.1.2.tar.gz'
Content type 'application/x-gzip' length 13366 bytes (13 KB)
==================================================
downloaded 13 KB

versuche URL 'https://cloud.r-project.org/src/contrib/stringi_1.7.12.tar.gz'
Content type 'application/x-gzip' length 7602365 bytes (7.3 MB)
==================================================
downloaded 7.3 MB

versuche URL 'https://cloud.r-project.org/src/contrib/digest_0.6.31.tar.gz'
Content type 'application/x-gzip' length 163502 bytes (159 KB)
==================================================
downloaded 159 KB

versuche URL 'https://cloud.r-project.org/src/contrib/pkgload_1.3.2.tar.gz'
Content type 'application/x-gzip' length 76704 bytes (74 KB)
==================================================
downloaded 74 KB

versuche URL 'https://cloud.r-project.org/src/contrib/waldo_0.4.0.tar.gz'
Content type 'application/x-gzip' length 37556 bytes (36 KB)
==================================================
downloaded 36 KB

versuche URL 'https://cloud.r-project.org/src/contrib/ellipsis_0.3.2.tar.gz'
Content type 'application/x-gzip' length 8066 bytes
==================================================
downloaded 8066 bytes

versuche URL 'https://cloud.r-project.org/src/contrib/purrr_1.0.1.tar.gz'
Content type 'application/x-gzip' length 220628 bytes (215 KB)
==================================================
downloaded 215 KB

versuche URL 'https://cloud.r-project.org/src/contrib/stringr_1.5.0.tar.gz'
Content type 'application/x-gzip' length 175699 bytes (171 KB)
==================================================
downloaded 171 KB

versuche URL 'https://cloud.r-project.org/src/contrib/tibble_3.1.8.tar.gz'
Content type 'application/x-gzip' length 672336 bytes (656 KB)
==================================================
downloaded 656 KB

versuche URL 'https://cloud.r-project.org/src/contrib/tidyr_1.3.0.tar.gz'
Content type 'application/x-gzip' length 823546 bytes (804 KB)
==================================================
downloaded 804 KB

versuche URL 'https://cloud.r-project.org/src/contrib/tidyselect_1.2.0.tar.gz'
Content type 'application/x-gzip' length 101498 bytes (99 KB)
==================================================
downloaded 99 KB

versuche URL 'https://cloud.r-project.org/src/contrib/vctrs_0.5.2.tar.gz'
Content type 'application/x-gzip' length 967426 bytes (944 KB)
==================================================
downloaded 944 KB

versuche URL 'https://cloud.r-project.org/src/contrib/pillar_1.8.1.tar.gz'
Content type 'application/x-gzip' length 479977 bytes (468 KB)
==================================================
downloaded 468 KB

versuche URL 'https://cloud.r-project.org/src/contrib/testthat_3.1.6.tar.gz'
Content type 'application/x-gzip' length 708014 bytes (691 KB)
==================================================
downloaded 691 KB

versuche URL 'https://cloud.r-project.org/src/contrib/broom_1.0.3.tar.gz'
Content type 'application/x-gzip' length 641894 bytes (626 KB)
==================================================
downloaded 626 KB

versuche URL 'https://cloud.r-project.org/src/contrib/dplyr_1.0.10.tar.gz'
Content type 'application/x-gzip' length 884984 bytes (864 KB)
==================================================
downloaded 864 KB

versuche URL 'https://cloud.r-project.org/src/contrib/SparseM_1.81.tar.gz'
Content type 'application/x-gzip' length 735100 bytes (717 KB)
==================================================
downloaded 717 KB

versuche URL 'https://cloud.r-project.org/src/contrib/minqa_1.2.5.tar.gz'
Content type 'application/x-gzip' length 54415 bytes (53 KB)
==================================================
downloaded 53 KB

versuche URL 'https://cloud.r-project.org/src/contrib/nloptr_2.0.3.tar.gz'
Content type 'application/x-gzip' length 2219877 bytes (2.1 MB)
==================================================
downloaded 2.1 MB

versuche URL 'https://cloud.r-project.org/src/contrib/Rcpp_1.0.10.tar.gz'
Content type 'application/x-gzip' length 2936173 bytes (2.8 MB)
==================================================
downloaded 2.8 MB

versuche URL 'https://cloud.r-project.org/src/contrib/RcppEigen_0.3.3.9.3.tar.gz'
Content type 'application/x-gzip' length 1470790 bytes (1.4 MB)
==================================================
downloaded 1.4 MB

versuche URL 'https://cloud.r-project.org/src/contrib/farver_2.1.1.tar.gz'
Content type 'application/x-gzip' length 1274363 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

versuche URL 'https://cloud.r-project.org/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/x-gzip' length 106854 bytes (104 KB)
==================================================
downloaded 104 KB

versuche URL 'https://cloud.r-project.org/src/contrib/rlang_1.0.6.tar.gz'
Content type 'application/x-gzip' length 742508 bytes (725 KB)
==================================================
downloaded 725 KB

versuche URL 'https://cloud.r-project.org/src/contrib/pbkrtest_0.5.2.tar.gz'
Content type 'application/x-gzip' length 75295 bytes (73 KB)
==================================================
downloaded 73 KB

versuche URL 'https://cloud.r-project.org/src/contrib/quantreg_5.94.tar.gz'
Content type 'application/x-gzip' length 1025290 bytes (1001 KB)
==================================================
downloaded 1001 KB

versuche URL 'https://cloud.r-project.org/src/contrib/lme4_1.1-31.tar.gz'
Content type 'application/x-gzip' length 2947739 bytes (2.8 MB)
==================================================
downloaded 2.8 MB

versuche URL 'https://cloud.r-project.org/src/contrib/scales_1.2.1.tar.gz'
Content type 'application/x-gzip' length 270609 bytes (264 KB)
==================================================
downloaded 264 KB

versuche URL 'https://cloud.r-project.org/src/contrib/car_3.1-1.tar.gz'
Content type 'application/x-gzip' length 578902 bytes (565 KB)
==================================================
downloaded 565 KB

* installing *source* package ‘fs’ ...
** Paket ‘fs’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I./libuv-1.44.2/include -I. -pthread     -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c dir.cc -o dir.o
/bin/bash: Zeile 1: g++: Befehl nicht gefunden
make: *** [/usr/lib/R/etc/Makeconf:176: dir.o] Fehler 127
ERROR: compilation failed for package ‘fs’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/fs’
Warning in install.packages :
  Installation des Pakets ‘fs’ hatte Exit-Status ungleich 0
* installing *source* package ‘stringi’ ...
** Paket ‘stringi’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
checking for R_HOME... /usr/lib/R
checking for R... /usr/lib/R/bin/R
checking for endianness... little
checking for R >= 3.1.0 for C++11 use... yes
checking for R < 3.4.0 for CXX1X flag use... no
checking for cat... /usr/bin/cat
checking for local ICUDT_DIR... icu69/data
checking for gcc... gcc
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for elf.h... yes
checking whether the compiler supports GNU C++... no
checking whether g++ -std=gnu++11 accepts -g... no
checking for g++ -std=gnu++11 option to enable C++11 features... none needed
checking whether the C++ compiler supports the long long type... no
*** Trying with C++11 compiler disabled.
checking for local ICUDT_DIR... icu55/data
checking for gcc... gcc
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... (cached) none needed
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for elf.h... (cached) yes
checking whether the compiler supports GNU C++... no
checking whether g++ -std=gnu++14 accepts -g... no
checking for g++ -std=gnu++14 option to enable C++11 features... (cached) none needed
checking whether the C++ compiler supports the long long type... no

*** *********************************************************************
*** stringi cannot be built with these settings in place.
*** See the INSTALL file for the solutions to the most common problems.
*** Moreover, explore the list of open and closed issues at
*** https://github.com/gagolews/stringi/issues/
*** *********************************************************************

ERROR: configuration failed for package ‘stringi’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/stringi’
Warning in install.packages :
  Installation des Pakets ‘stringi’ hatte Exit-Status ungleich 0
* installing *source* package ‘digest’ ...
** Paket ‘digest’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c SpookyV2.cpp -o SpookyV2.o
/bin/bash: Zeile 1: g++: Befehl nicht gefunden
make: *** [/usr/lib/R/etc/Makeconf:178: SpookyV2.o] Fehler 127
ERROR: compilation failed for package ‘digest’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/digest’
Warning in install.packages :
  Installation des Pakets ‘digest’ hatte Exit-Status ungleich 0
* installing *source* package ‘SparseM’ ...
** Paket ‘SparseM’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c bckslv.f -o bckslv.o
/bin/bash: Zeile 1: gfortran: Befehl nicht gefunden
make: *** [/usr/lib/R/etc/Makeconf:192: bckslv.o] Fehler 127
ERROR: compilation failed for package ‘SparseM’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/SparseM’
Warning in install.packages :
  Installation des Pakets ‘SparseM’ hatte Exit-Status ungleich 0
* installing *source* package ‘Rcpp’ ...
** Paket ‘Rcpp’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I../inst/include/     -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c api.cpp -o api.o
/bin/bash: Zeile 1: g++: Befehl nicht gefunden
make: *** [/usr/lib/R/etc/Makeconf:178: api.o] Fehler 127
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/Rcpp’
Warning in install.packages :
  Installation des Pakets ‘Rcpp’ hatte Exit-Status ungleich 0
* installing *source* package ‘farver’ ...
** Paket ‘farver’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c ColorSpace.cpp -o ColorSpace.o
/bin/bash: Zeile 1: g++: Befehl nicht gefunden
make: *** [/usr/lib/R/etc/Makeconf:178: ColorSpace.o] Fehler 127
ERROR: compilation failed for package ‘farver’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/farver’
Warning in install.packages :
  Installation des Pakets ‘farver’ hatte Exit-Status ungleich 0
* installing *source* package ‘rlang’ ...
** Paket ‘rlang’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
gcc -I"/usr/share/R/include" -DNDEBUG -I./rlang/    -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c capture.c -o capture.o
gcc -I"/usr/share/R/include" -DNDEBUG -I./rlang/    -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c internal.c -o internal.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./rlang/     -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c rlang-rcc.cpp -o rlang-rcc.o
/bin/bash: Zeile 1: g++: Befehl nicht gefunden
make: *** [/usr/lib/R/etc/Makeconf:178: rlang-rcc.o] Fehler 127
ERROR: compilation failed for package ‘rlang’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/rlang’
Warning in install.packages :
  Installation des Pakets ‘rlang’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘fs’, ‘rlang’ are not available for package ‘pkgload’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/pkgload’
Warning in install.packages :
  Installation des Pakets ‘pkgload’ hatte Exit-Status ungleich 0
ERROR: dependency ‘rlang’ is not available for package ‘ellipsis’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/ellipsis’
Warning in install.packages :
  Installation des Pakets ‘ellipsis’ hatte Exit-Status ungleich 0
ERROR: dependency ‘Rcpp’ is not available for package ‘minqa’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/minqa’
Warning in install.packages :
  Installation des Pakets ‘minqa’ hatte Exit-Status ungleich 0
ERROR: dependency ‘Rcpp’ is not available for package ‘RcppEigen’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/RcppEigen’
Warning in install.packages :
  Installation des Pakets ‘RcppEigen’ hatte Exit-Status ungleich 0
ERROR: dependency ‘rlang’ is not available for package ‘lifecycle’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/lifecycle’
Warning in install.packages :
  Installation des Pakets ‘lifecycle’ hatte Exit-Status ungleich 0
ERROR: dependency ‘SparseM’ is not available for package ‘quantreg’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/quantreg’
Warning in install.packages :
  Installation des Pakets ‘quantreg’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lifecycle’, ‘rlang’ are not available for package ‘vctrs’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/vctrs’
Warning in install.packages :
  Installation des Pakets ‘vctrs’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘farver’, ‘lifecycle’, ‘rlang’ are not available for package ‘scales’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/scales’
Warning in install.packages :
  Installation des Pakets ‘scales’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lifecycle’, ‘rlang’, ‘vctrs’ are not available for package ‘purrr’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/purrr’
Warning in install.packages :
  Installation des Pakets ‘purrr’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lifecycle’, ‘rlang’, ‘stringi’, ‘vctrs’ are not available for package ‘stringr’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/stringr’
Warning in install.packages :
  Installation des Pakets ‘stringr’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lifecycle’, ‘rlang’, ‘vctrs’ are not available for package ‘tidyselect’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/tidyselect’
Warning in install.packages :
  Installation des Pakets ‘tidyselect’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lifecycle’, ‘rlang’, ‘vctrs’ are not available for package ‘pillar’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/pillar’
Warning in install.packages :
  Installation des Pakets ‘pillar’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lifecycle’, ‘pillar’, ‘rlang’, ‘vctrs’ are not available for package ‘tibble’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/tibble’
Warning in install.packages :
  Installation des Pakets ‘tibble’ hatte Exit-Status ungleich 0
ERROR: dependency ‘tibble’ is not available for package ‘rematch2’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/rematch2’
Warning in install.packages :
  Installation des Pakets ‘rematch2’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lifecycle’, ‘rlang’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘pillar’ are not available for package ‘dplyr’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/dplyr’
Warning in install.packages :
  Installation des Pakets ‘dplyr’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘rematch2’, ‘rlang’, ‘tibble’ are not available for package ‘waldo’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/waldo’
Warning in install.packages :
  Installation des Pakets ‘waldo’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘dplyr’, ‘lifecycle’, ‘purrr’, ‘rlang’, ‘stringr’, ‘tibble’, ‘tidyselect’, ‘vctrs’ are not available for package ‘tidyr’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/tidyr’
Warning in install.packages :
  Installation des Pakets ‘tidyr’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘digest’, ‘ellipsis’, ‘lifecycle’, ‘pkgload’, ‘rlang’, ‘waldo’ are not available for package ‘testthat’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/testthat’
Warning in install.packages :
  Installation des Pakets ‘testthat’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘dplyr’, ‘ellipsis’, ‘purrr’, ‘rlang’, ‘stringr’, ‘tibble’, ‘tidyr’ are not available for package ‘broom’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/broom’
Warning in install.packages :
  Installation des Pakets ‘broom’ hatte Exit-Status ungleich 0
ERROR: dependency ‘testthat’ is not available for package ‘nloptr’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/nloptr’
Warning in install.packages :
  Installation des Pakets ‘nloptr’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘minqa’, ‘nloptr’, ‘Rcpp’, ‘RcppEigen’ are not available for package ‘lme4’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/lme4’
Warning in install.packages :
  Installation des Pakets ‘lme4’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘lme4’, ‘broom’, ‘dplyr’ are not available for package ‘pbkrtest’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/pbkrtest’
Warning in install.packages :
  Installation des Pakets ‘pbkrtest’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘pbkrtest’, ‘quantreg’, ‘lme4’, ‘scales’ are not available for package ‘car’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/car’
Warning in install.packages :
  Installation des Pakets ‘car’ hatte Exit-Status ungleich 0

Die heruntergeladenen Quellpakete sind in 
	‘/tmp/RtmptkF25x/downloaded_packages’

You will either need to check out the underlying build tools for it or install the packages using install.packages(..., type="binary") as a first start. You may end up having to install at least some build tools because there is no C++ compiler in place.

Thanks for your reply!

How can I do that?

Which packages?

What does that mean?

You are missing the g++ system library which is required to compile packages from source and CRAN mirrors do not offer precompiled binaries for Linux. You can install it by running this command on a system terminal (not the R console).

sudo apt install g++

Another possibility is to set your package repository to the Public Posit Package Manager or the r2u project since those offer precompiled binaries for Ubuntu, but it is better to installing g++ anyways.

2 Likes

... means whatever packages you are trying to install.

Thank you! Yes, g++ was missing, as was cmake and gfortran.
Now the installation seems to get along better, but still does not end successfully:

version 4.2.2 Patched (2022-11-10 r83330) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

(...)

> install.packages("car")
Installiere Paket nach ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2’
(da ‘lib’ nicht spezifiziert)
installiere auch Abhängigkeiten ‘nloptr’, ‘pbkrtest’, ‘quantreg’, ‘lme4’

versuche URL 'https://cloud.r-project.org/src/contrib/nloptr_2.0.3.tar.gz'
Content type 'application/x-gzip' length 2219877 bytes (2.1 MB)
==================================================
downloaded 2.1 MB

versuche URL 'https://cloud.r-project.org/src/contrib/pbkrtest_0.5.2.tar.gz'
Content type 'application/x-gzip' length 75295 bytes (73 KB)
==================================================
downloaded 73 KB

versuche URL 'https://cloud.r-project.org/src/contrib/quantreg_5.94.tar.gz'
Content type 'application/x-gzip' length 1025290 bytes (1001 KB)
==================================================
downloaded 1001 KB

versuche URL 'https://cloud.r-project.org/src/contrib/lme4_1.1-31.tar.gz'
Content type 'application/x-gzip' length 2947739 bytes (2.8 MB)
==================================================
downloaded 2.8 MB

versuche URL 'https://cloud.r-project.org/src/contrib/car_3.1-1.tar.gz'
Content type 'application/x-gzip' length 578902 bytes (565 KB)
==================================================
downloaded 565 KB

* installing *source* package ‘nloptr’ ...
** Paket ‘nloptr’ 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 the compiler supports GNU C++... yes
checking whether g++ -std=gnu++14 accepts -g... yes
checking for g++ -std=gnu++14 option to enable C++11 features... none needed
checking how to run the C++ preprocessor... g++ -std=gnu++14 -E
checking whether the compiler supports GNU C++... (cached) yes
checking whether g++ -std=gnu++14 accepts -g... (cached) yes
checking for g++ -std=gnu++14 option to enable C++11 features... (cached) none needed
checking for pkg-config... no
checking for cmake... /usr/bin/cmake
using NLopt via local cmake build on x86_64 
set CMAKE_BIN=/usr/bin/cmake
set CC=gcc
set CFLAGS= -fpic -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
set CXX=g++
set CXXFLAGS=-std=gnu++11 -fpic -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
set LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- NLopt version 2.7.1
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for qsort_r
-- Looking for qsort_r - found
-- Looking for time
-- Looking for time - found
-- Looking for copysign
-- Looking for copysign - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Looking for sqrt in m
-- Looking for sqrt in m - found
-- Looking for fpclassify
-- Looking for fpclassify - TRUE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE - Success
-- Performing Test HAVE_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE - Failed
-- Looking for __cplusplus
-- Looking for __cplusplus - found
-- Performing Test SUPPORTS_STDCXX11
-- Performing Test SUPPORTS_STDCXX11 - Success
-- Performing Test HAS_FPIC
-- Performing Test HAS_FPIC - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt-build
[  1%] Generating nlopt.hpp
[  3%] Generating nlopt.f
[  3%] Built target generate-fortran
[  3%] Built target generate-cpp
[  5%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/direct_wrap.c.o
[  7%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/DIRect.c.o
[  9%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/DIRserial.c.o
[ 11%] Building C object CMakeFiles/nlopt.dir/src/algs/direct/DIRsubrout.c.o
[ 13%] Building C object CMakeFiles/nlopt.dir/src/algs/cdirect/cdirect.c.o
[ 15%] Building C object CMakeFiles/nlopt.dir/src/algs/cdirect/hybrid.c.o
[ 17%] Building C object CMakeFiles/nlopt.dir/src/algs/praxis/praxis.c.o
[ 19%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/plis.c.o
[ 21%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/plip.c.o
[ 23%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/pnet.c.o
[ 25%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/mssubs.c.o
[ 27%] Building C object CMakeFiles/nlopt.dir/src/algs/luksan/pssubs.c.o
[ 29%] Building C object CMakeFiles/nlopt.dir/src/algs/crs/crs.c.o
[ 31%] Building C object CMakeFiles/nlopt.dir/src/algs/mlsl/mlsl.c.o
[ 33%] Building C object CMakeFiles/nlopt.dir/src/algs/mma/mma.c.o
[ 35%] Building C object CMakeFiles/nlopt.dir/src/algs/mma/ccsa_quadratic.c.o
[ 37%] Building C object CMakeFiles/nlopt.dir/src/algs/cobyla/cobyla.c.o
[ 39%] Building C object CMakeFiles/nlopt.dir/src/algs/newuoa/newuoa.c.o
[ 41%] Building C object CMakeFiles/nlopt.dir/src/algs/neldermead/nldrmd.c.o
[ 43%] Building C object CMakeFiles/nlopt.dir/src/algs/neldermead/sbplx.c.o
[ 45%] Building C object CMakeFiles/nlopt.dir/src/algs/auglag/auglag.c.o
[ 47%] Building C object CMakeFiles/nlopt.dir/src/algs/bobyqa/bobyqa.c.o
[ 49%] Building C object CMakeFiles/nlopt.dir/src/algs/isres/isres.c.o
[ 50%] Building C object CMakeFiles/nlopt.dir/src/algs/slsqp/slsqp.c.o
[ 52%] Building C object CMakeFiles/nlopt.dir/src/algs/esch/esch.c.o
[ 54%] Building C object CMakeFiles/nlopt.dir/src/api/general.c.o
[ 56%] Building C object CMakeFiles/nlopt.dir/src/api/options.c.o
[ 58%] Building C object CMakeFiles/nlopt.dir/src/api/optimize.c.o
[ 60%] Building C object CMakeFiles/nlopt.dir/src/api/deprecated.c.o
[ 62%] Building C object CMakeFiles/nlopt.dir/src/api/f77api.c.o
[ 64%] Building C object CMakeFiles/nlopt.dir/src/util/mt19937ar.c.o
[ 66%] Building C object CMakeFiles/nlopt.dir/src/util/sobolseq.c.o
[ 68%] Building C object CMakeFiles/nlopt.dir/src/util/timer.c.o
[ 70%] Building C object CMakeFiles/nlopt.dir/src/util/stop.c.o
[ 72%] Building C object CMakeFiles/nlopt.dir/src/util/redblack.c.o
[ 74%] Building C object CMakeFiles/nlopt.dir/src/util/qsort_r.c.o
[ 76%] Building C object CMakeFiles/nlopt.dir/src/util/rescale.c.o
[ 78%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/global.cc.o
[ 80%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/linalg.cc.o
[ 82%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/local.cc.o
[ 84%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/stogo.cc.o
[ 86%] Building CXX object CMakeFiles/nlopt.dir/src/algs/stogo/tools.cc.o
[ 88%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/evolvent.cc.o
[ 90%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/solver.cc.o
[ 92%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/local_optimizer.cc.o
[ 94%] Building CXX object CMakeFiles/nlopt.dir/src/algs/ags/ags.cc.o
[ 96%] Linking CXX static library libnlopt.a
[100%] Built target nlopt
[  1%] Built target generate-cpp
[  3%] Built target generate-fortran
Consolidate compiler generated dependencies of target nlopt
[100%] Built target nlopt
Install the project...
-- Install configuration: "Release"
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/lib/pkgconfig/nlopt.pc
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/include/nlopt.h
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/include/nlopt.hpp
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/include/nlopt.f
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/lib/libnlopt.a
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/lib/cmake/nlopt/NLoptLibraryDepends.cmake
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/lib/cmake/nlopt/NLoptLibraryDepends-release.cmake
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/lib/cmake/nlopt/NLoptConfig.cmake
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/lib/cmake/nlopt/NLoptConfigVersion.cmake
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/share/man/man3/nlopt.3
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/share/man/man3/nlopt_minimize.3
-- Installing: /tmp/Rtmp2pkXeA/R.INSTALL22565c467a9b/nloptr/src/nlopt/share/man/man3/nlopt_minimize_constrained.3
mv: cannot move 'nlopt/lib' to a subdirectory of itself, 'nlopt/lib/lib'
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -I"/usr/share/R/include" -DNDEBUG -I../inst/include  -I'/home/michael/R/x86_64-pc-linux-gnu-library/4.2/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c init_nloptr.c -o init_nloptr.o
gcc -I"/usr/share/R/include" -DNDEBUG -I../inst/include  -I'/home/michael/R/x86_64-pc-linux-gnu-library/4.2/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c nloptr.c -o nloptr.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include  -I'/home/michael/R/x86_64-pc-linux-gnu-library/4.2/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c test-C-API.cpp -o test-C-API.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include  -I'/home/michael/R/x86_64-pc-linux-gnu-library/4.2/testthat/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c test-runner.cpp -o test-runner.o
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o nloptr.so init_nloptr.o nloptr.o test-C-API.o test-runner.o -llapack -lblas -lgfortran -lm -lquadmath nlopt/lib/libnlopt.a -L/usr/lib/R/lib -lR
/usr/bin/ld: -llapack kann nicht gefunden werden: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: -lblas kann nicht gefunden werden: Datei oder Verzeichnis nicht gefunden
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/share/make/shlib.mk:10: nloptr.so] Fehler 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/nloptr’
Warning in install.packages :
  Installation des Pakets ‘nloptr’ hatte Exit-Status ungleich 0
* installing *source* package ‘quantreg’ ...
** Paket ‘quantreg’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c akj.f -o akj.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c boot.f -o boot.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c bound.f -o bound.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c boundc.f -o boundc.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c brute.f -o brute.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c chlfct.f -o chlfct.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c cholesky.f -o cholesky.o
cholesky.f:2946:72:

 2946 |                          IF  ( NODE )  400, 900, 500
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
cholesky.f:2980:72:

 2980 |                  IF  ( RNODE )  1100, 1800, 1200
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
cholesky.f:3297:72:

 3297 |                      IF  ( ENODE )  400, 800, 500
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
cholesky.f:3354:72:

 3354 |                              IF  ( NODE )  1000, 2100, 1100
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
cholesky.f:3428:72:

 3428 |                                          IF  ( NODE )  1700, 2000, 1800
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c combos.f -o combos.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c crqf.f -o crqf.o
crqf.f:98:72:

   98 |         DO 5 J=1,N
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 5 at (1)
crqf.f:99:72:

   99 |    5    WA(I,J) = X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 5 at (1)
crqf.f:140:72:

  140 |   25      WA(L,J) = X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 25 at (1)
crqf.f:149:72:

  149 |   50  SOL(J+1,1) = WF(J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 50 at (1)
crqf.f:165:72:

  165 |   60    XH(K,J) = X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 60 at (1)
crqf.f:180:72:

  180 |   80  S = S - WF(J)*X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 80 at (1)
crqf.f:181:72:

  181 |   90  WE(I) = S
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 90 at (1)
crqf.f:192:72:

  192 |  210  S = DMIN1(WD(J),S)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 210 at (1)
crqf.f:205:72:

  205 |  240    SOL(J+1,LSOL) = WF(J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 240 at (1)
crqf.f:226:72:

  226 |  250  WD(I) = ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 250 at (1)
crqf.f:228:72:

  228 |  260  WD(H(J)) = ONE
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 260 at (1)
crqf.f:236:72:

  236 |  270  S = S + X(I,J)*XH(J,KM)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 270 at (1)
crqf.f:258:72:

  258 |         DO 310 J = 1,N
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 310 at (1)
crqf.f:259:72:

  259 |  310    XH(K,J) = X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 310 at (1)
crqf.f:273:72:

  273 |  330  S = S + XH(K,J)*Y(H(J))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 330 at (1)
crqf.f:274:72:

  274 |  340  WF(K) = S
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 340 at (1)
crqf.f:278:72:

  278 |  350  S = S - WF(J)*X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 350 at (1)
crqf.f:279:72:

  279 |  360  WE(I) = S
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 360 at (1)
crqf.f:287:72:

  287 |  370    SOL(J+1,LSOL) = WF(J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 370 at (1)
crqf.f:330:72:

  330 | 396       B2 = B2 + X(I,J) * SOL(J+1,LSOL - 1)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 396 at (1)
crqf.f:369:72:

  369 |  506  WF(J) = ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 506 at (1)
crqf.f:376:72:

  376 |  510      WA(L1,J) = X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 510 at (1)
crqf.f:379:72:

  379 |  514      WF(J) = WF(J) + X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 514 at (1)
crqf.f:389:72:

  389 |  520      WF(J) = WF(J) + (ONE - W) * X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 520 at (1)
crqf.f:394:72:

  394 |  534  WA(MAL,J) = WF(J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 534 at (1)
crqf.f:413:72:

  413 |  540        XH(K,J) = X(I,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 540 at (1)
crqf.f:429:72:

  429 |  610  WD(I) = SOL(N+2,I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 610 at (1)
crqf.f:441:72:

  441 |  650  WF(J) = S/V
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 650 at (1)
crqf.f:445:72:

  445 |  660    S = S + WF(J) * SOL(J+1,I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 660 at (1)
crqf.f:446:72:

  446 |  670  SOL(N+2,I) = S
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 670 at (1)
crqf.f:487:72:

  487 |   60    A = A + X(I,K)*XH(K,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 60 at (1)
crqf.f:488:72:

  488 |   70  WA(I,J) = A
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 70 at (1)
crqf.f:497:72:

  497 |   90  IFLAG(I) = 0
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 90 at (1)
crqf.f:499:72:

  499 |   95  IFLAG(H(J)) = 1
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 95 at (1)
crqf.f:544:72:

  544 |  130  IFLAG(J) = IFLAG(J+M)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 130 at (1)
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c crqfnb.f -o crqfnb.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c dsel05.f -o dsel05.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c etime.f -o etime.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c extract.f -o extract.o
gcc -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c frand.c -o frand.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c grexp.f -o grexp.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c idmin.f -o idmin.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c iswap.f -o iswap.o
iswap.f:40:72:

   40 |       IF (INCX-1) 5,20,60
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c kuantile.f -o kuantile.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c kuantiles.f -o kuantiles.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c linpack.f -o linpack.o
gcc -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c mcmb.c -o mcmb.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c penalty.f -o penalty.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c pfnb.f -o pfnb.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c powell.f -o powell.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c profnb.f -o profnb.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c pwxy.f -o pwxy.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c qfnb.f -o qfnb.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c qselect.f -o qselect.o
gcc -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c quantreg_init.c -o quantreg_init.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rls.f -o rls.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rq0.f -o rq0.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rq1.f -o rq1.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rqbr.f -o rqbr.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rqfn.f -o rqfn.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rqfnb.f -o rqfnb.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rqfnc.f -o rqfnc.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c rqs.f -o rqs.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c sakj.f -o sakj.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c sparskit2.f -o sparskit2.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c srqfn.f -o srqfn.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c srqfnc.f -o srqfnc.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-Faorqz/r-base-4.2.2.20221110=. -fstack-protector-strong  -c srtpai.f -o srtpai.o
srtpai.f:19:72:

   19 |  10     P(1, I) = I
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
gcc -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o quantreg.so akj.o boot.o bound.o boundc.o brute.o chlfct.o cholesky.o combos.o crqf.o crqfnb.o dsel05.o etime.o extract.o frand.o grexp.o idmin.o iswap.o kuantile.o kuantiles.o linpack.o mcmb.o penalty.o pfnb.o powell.o profnb.o pwxy.o qfnb.o qselect.o quantreg_init.o rls.o rq0.o rq1.o rqbr.o rqfn.o rqfnb.o rqfnc.o rqs.o sakj.o sparskit2.o srqfn.o srqfnc.o srtpai.o -llapack -lblas -lgfortran -lm -lquadmath -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld: -llapack kann nicht gefunden werden: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: -lblas kann nicht gefunden werden: Datei oder Verzeichnis nicht gefunden
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/share/make/shlib.mk:10: quantreg.so] Fehler 1
ERROR: compilation failed for package ‘quantreg’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/quantreg’
Warning in install.packages :
  Installation des Pakets ‘quantreg’ hatte Exit-Status ungleich 0
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/lme4’
Warning in install.packages :
  Installation des Pakets ‘lme4’ hatte Exit-Status ungleich 0
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/pbkrtest’
Warning in install.packages :
  Installation des Pakets ‘pbkrtest’ hatte Exit-Status ungleich 0
ERROR: dependencies ‘pbkrtest’, ‘quantreg’, ‘lme4’ are not available for package ‘car’
* removing ‘/home/michael/R/x86_64-pc-linux-gnu-library/4.2/car’
Warning in install.packages :
  Installation des Pakets ‘car’ hatte Exit-Status ungleich 0

Die heruntergeladenen Quellpakete sind in 
	‘/tmp/Rtmp7ttHXX/downloaded_packages’

How can I do that?

You are also missing BLAS and LAPACK. I usually install these libraries for that:

  • libopenblas-base
  • libopenblas-dev
  • liblapack-dev
  • liblapack3

Each one has its own method, check their documentation for details

https://packagemanager.rstudio.com/client/#/repos/2/overview

1 Like

Works at last! Those packages were the missing bits. Thank you! :slight_smile:

My mistake! Post can be deleted.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.