R环境下,安装terra过程中报错
> install.packages("terra",configure.args=c("--with-proj-lib=/usr/lib64","--with-gdal-lib=/usr/local/lib"))
Installing package into ‘/root/R/aarch64-unknown-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://mirrors.bfsu.edu.cn/CRAN/src/contrib/terra_1.7-83.tar.gz'
Content type 'application/octet-stream' length 970353 bytes (947 KB)
==================================================
downloaded 947 KB
* installing *source* package ‘terra’ ...
** package ‘terra’ successfully unpacked and MD5 sums checked
** using staged installation
configure: WARNING: unrecognized options: --with-gdal-lib
configure: CC: gcc
configure: CXX: g++ -std=gnu++17
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.1.3
checking GDAL version >= 2.0.1... yes
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 gdal.h... yes
checking GDAL: linking with --libs only... yes
checking GDAL: /usr/local/share/gdal/pcs.csv readable... yes
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available for running:... ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of
OGRCoordinateTransformation failed.
no
configure: error: OGRCoordinateTransformation() does not return a coord.trans: PROJ not available?
ERROR: configuration failed for package ‘terra’
* removing ‘/root/R/aarch64-unknown-linux-gnu-library/4.4/terra’
The downloaded source packages are in
‘/tmp/RtmpGq6rj7/downloaded_packages’
Warning message:
In install.packages("terra", configure.args = c("--with-proj-lib=/usr/lib64", :
installation of package ‘terra’ had non-zero exit status
R环境下,安装terra过程中报错
> install.packages("terra",configure.args=c("--with-proj-lib=/usr/lib64","--with-gdal-lib=/usr/local/lib"))
Installing package into ‘/root/R/aarch64-unknown-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://mirrors.bfsu.edu.cn/CRAN/src/contrib/terra_1.7-83.tar.gz'
Content type 'application/octet-stream' length 970353 bytes (947 KB)
==================================================
downloaded 947 KB
* installing *source* package ‘terra’ ...
** package ‘terra’ successfully unpacked and MD5 sums checked
** using staged installation
configure: WARNING: unrecognized options: --with-gdal-lib
configure: CC: gcc
configure: CXX: g++ -std=gnu++17
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.1.3
checking GDAL version >= 2.0.1... yes
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 gdal.h... yes
checking GDAL: linking with --libs only... yes
checking GDAL: /usr/local/share/gdal/pcs.csv readable... yes
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available for running:... ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of
OGRCoordinateTransformation failed.
no
configure: error: OGRCoordinateTransformation() does not return a coord.trans: PROJ not available?
ERROR: configuration failed for package ‘terra’
* removing ‘/root/R/aarch64-unknown-linux-gnu-library/4.4/terra’
The downloaded source packages are in
‘/tmp/RtmpGq6rj7/downloaded_packages’
Warning message:
In install.packages("terra", configure.args = c("--with-proj-lib=/usr/lib64", :
installation of package ‘terra’ had non-zero exit status