Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in install terra on Ubuntu #1641

Open
ExpertS04p opened this issue Nov 6, 2024 · 1 comment
Open

error in install terra on Ubuntu #1641

ExpertS04p opened this issue Nov 6, 2024 · 1 comment

Comments

@ExpertS04p
Copy link

install.packages('terra', repos='https://rspatial.r-universe.dev')
Installing package into ‘/data/lmx/R/x86_64-conda-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://rspatial.r-universe.dev/src/contrib/terra_1.8-0.tar.gz'
Content type 'application/gzip' length 2051555 bytes (2.0 MB)
==================================================
downloaded 2.0 MB

  • installing source package ‘terra’ ...
    ** using staged installation
    configure: CC: x86_64-conda-linux-gnu-cc
    configure: CXX: x86_64-conda-linux-gnu-c++ -std=gnu++17
    checking for gdal-config... /data/lmx/.conda/envs/Rlmx/bin/gdal-config
    checking gdal-config usability... yes
    configure: GDAL: 3.9.3
    checking GDAL version >= 2.0.1... yes
    checking for gcc... x86_64-conda-linux-gnu-cc
    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 x86_64-conda-linux-gnu-cc accepts -g... yes
    checking for x86_64-conda-linux-gnu-cc 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... no
    checking GDAL: linking with --libs and --dep-libs... no
    /data/lmx/.conda/envs/Rlmx/bin/../lib/gcc/x86_64-conda-linux-gnu/11.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: /data/lmx/.conda/envs/Rlmx/lib/libgdal.so: undefined reference to sqlite3_total_changes64' collect2: error: ld returned 1 exit status /data/lmx/.conda/envs/Rlmx/bin/../lib/gcc/x86_64-conda-linux-gnu/11.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: /data/lmx/.conda/envs/Rlmx/lib/libgdal.so: undefined reference to sqlite3_total_changes64'
    collect2: error: ld returned 1 exit status
    configure: Install failure: compilation and/or linkage problems.
    configure: error: GDALAllRegister not found in libgdal.
    ERROR: configuration failed for package ‘terra’
  • removing ‘/data/lmx/R/x86_64-conda-linux-gnu-library/4.4/terra’

The downloaded source packages are in
‘/tmp/RtmpvQYvt2/downloaded_packages’
Warning message:
In install.packages("terra", repos = "https://rspatial.r-universe.dev") :
installation of package ‘terra’ had non-zero exit status

@kadyb
Copy link
Contributor

kadyb commented Nov 6, 2024

Maybe try conda install -c conda-forge r-terra in Anaconda Prompt instead as suggested in #973.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants