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

pre-combiled Mac binaries produce pj_obj_create: Cannot find proj.db message #50

Open
adokter opened this issue May 22, 2023 · 3 comments
Assignees

Comments

@adokter
Copy link
Owner

adokter commented May 22, 2023

The pre-compiled binary for Intel Macs on CRAN causes the following message repeatedly:

pj_obj_create: Cannot find proj.db
@adokter adokter changed the title pre-combiled Mac binaries gives pj_obj_create: Cannot find proj.db message pre-combiled Mac binaries produce pj_obj_create: Cannot find proj.db message May 22, 2023
@adokter
Copy link
Owner Author

adokter commented May 22, 2023

I presume that this has something to do with the CRAN system build not including a proj.db file in the binary, @andershenja is proj.db a hard requirement for RAVE, can we suppress this message?

@iskandari
Copy link
Collaborator

iskandari commented Jun 22, 2023

Same behavior on ARM-based Mac M2. This only occurs when you install the vol2birdR binary from CRAN but not when installing from source locally.

@adokter
Copy link
Owner Author

adokter commented Jul 6, 2023

Setting PROJ_LIB silences this message, see https://gis.stackexchange.com/questions/326968/ogr2ogr-error-1-proj-pj-obj-create-cannot-find-proj-db#327266

Sys.setenv(PROJ_LIB = "local directory containing proj.db")

In case of my homebrew install:

Sys.setenv(PROJ_LIB = "/usr/local/Cellar/proj/9.2.0_1/share/proj")

However this remains a hurdle for people installing a binary from CRAN. It seems sf/terra packages have a more seamless solution implemented r-spatial/sf#1933

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

3 participants