I have tried this code. rgdal has been installed
but the other dependency ‘exactextractr’
has not been installed. And RStoolbox
installation was aborted.
install.packages("rgdal", repos=c('https://packagemanager.rstudio.com/all/__linux__/focal/latest', 'https://cran.rstudio.com/'))
[Show in New Window]
Installing package into ‘/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependency ‘exactextractr’
trying URL 'https://cloud.r-project.org/src/contrib/exactextractr_0.9.0.tar.gz'
Content type 'application/x-gzip' length 629871 bytes (615 KB)
==================================================
downloaded 615 KB
trying URL 'https://cloud.r-project.org/src/contrib/RStoolbox_0.3.0.tar.gz'
Content type 'application/x-gzip' length 991987 bytes (968 KB)
==================================================
downloaded 968 KB
* installing *source* package ‘exactextractr’ ...
** package ‘exactextractr’ successfully unpacked and MD5 sums checked
** using staged installation
configure: exactextractr: 0.9.0
checking for geos-config... /bin/geos-config
checking geos-config usability... yes
configure: GEOS version: 3.10.2
checking geos version at least 3.5.0... yes
checking compiling and building against geos_c... yes
configure: PKG_CXX: g++
configure: PKG_CXXFLAGS: -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include
configure: PKG_LIBS: -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -lgeos_c
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exact_extract.cpp -o exact_extract.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c raster_utils.cpp -o raster_utils.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c coverage_fraction.cpp -o coverage_fraction.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c rasterize.cpp -o rasterize.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c resample.cpp -o resample.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/area.cpp -o exactextract/src/area.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/box.cpp -o exactextract/src/box.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/cell.cpp -o exactextract/src/cell.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/coordinate.cpp -o exactextract/src/coordinate.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/floodfill.cpp -o exactextract/src/floodfill.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/geos_utils.cpp -o exactextract/src/geos_utils.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/grid.cpp -o exactextract/src/grid.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/perimeter_distance.cpp -o exactextract/src/perimeter_distance.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/raster_cell_intersection.cpp -o exactextract/src/raster_cell_intersection.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/side.cpp -o exactextract/src/side.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/traversal.cpp -o exactextract/src/traversal.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/traversal_areas.cpp -o exactextract/src/traversal_areas.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I'/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -fpic -g -O2 -fdebug-prefix-map=/build/r-base-zYgbYq/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c exactextract/src/weighted_quantiles.cpp -o exactextract/src/weighted_quantiles.o
g++ -std=gnu++14 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o exactextractr.so RcppExports.o exact_extract.o raster_utils.o coverage_fraction.o rasterize.o resample.o exactextract/src/area.o exactextract/src/box.o exactextract/src/cell.o exactextract/src/coordinate.o exactextract/src/floodfill.o exactextract/src/geos_utils.o exactextract/src/grid.o exactextract/src/perimeter_distance.o exactextract/src/raster_cell_intersection.o exactextract/src/side.o exactextract/src/traversal.o exactextract/src/traversal_areas.o exactextract/src/weighted_quantiles.o -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -lgeos_c -L/usr/lib/R/lib -lR
installing to /home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/00LOCK-exactextractr/00new/exactextractr/libs
** R
** inst
** byte-compile and prepare package for lazy loading
double free or corruption (out)
Aborted
ERROR: lazy loading failed for package ‘exactextractr’
* removing ‘/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/exactextractr’
Warning in install.packages :
installation of package ‘exactextractr’ had non-zero exit status
ERROR: dependency ‘exactextractr’ is not available for package ‘RStoolbox’
* removing ‘/home/jannatul/R/x86_64-pc-linux-gnu-library/4.2/RStoolbox’
Warning in install.packages :
installation of package ‘RStoolbox’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpZI5NSw/downloaded_packages’
I couldn't install devtools
package also. Thank you very much for helping me. I appreciated it.