drieslab / Giotto

Spatial omics analysis toolbox
https://drieslab.github.io/Giotto_website/
Other
260 stars 98 forks source link

stop_task_build(state, worker)`: ! Failed to build source package terra. #1005

Closed 13954380607 closed 2 months ago

13954380607 commented 2 months ago

pak::pkg_install("drieslab/Giotto")

→ Will install 73 packages. → All 73 packages (88.32 MB) are cached.

jiajic commented 2 months ago

Hi, could you tell us what system you're installing on?

13954380607 commented 2 months ago

On hpc

jiajic commented 2 months ago

Can you make sure if you have these requirements already satisfied on the HPC? GDAL (>= 2.2.3), GEOS (>= 3.4.0), PROJ (>= 4.9.3), sqlite3. More info at terra's github

13954380607 commented 2 months ago

Yes, I think I have all of this and when I directly downloaded package terra, it gave me: ERROR 1: PROJ: proj_create_from_database: Open of /home/dl2373/.conda/envs/r_env/share/proj failed ERROR 1: PROJ: proj_create_from_database: Open of /home/dl2373/.conda/envs/r_env/share/proj failed ERROR 1: PROJ: proj_create: unrecognized format / unknown name ERROR 1: PROJ: proj_create: unrecognized format / unknown name no configure: error: OGRCoordinateTransformation() does not return a coord.trans: PROJ not available? ERROR: configuration failed for package ‘terra’

JunxiangXu commented 2 months ago

If you are using a shared cluster, you probably need to load these dependencies separately. Trying to build terra using any of the dependencies from a specific conda environment will make it hard to manage in the future. If you have sudo access to the HPC, you can probably build terra using the dependencies with

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install libgdal-dev libgeos-dev libproj-dev

For more information please refer to: https://github.com/rspatial/terra

jiajic commented 2 months ago

Guessing this is resolved now.