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

Installation of ozmaps fails. #16

Open
ibuiltthis opened this issue Nov 3, 2022 · 3 comments
Open

Installation of ozmaps fails. #16

ibuiltthis opened this issue Nov 3, 2022 · 3 comments

Comments

@ibuiltthis
Copy link

Any help appreciated.

I am unable install ozmaps.

  • Installing on docker image rocker/tidyverse:4.2.2
  • package sf installed successfully
  • sf.so appears to be in the sf/libs/ directory
root@f5f120fe8689:/rocker_scripts# ls /usr/local/lib/R/site-library/sf/libs/ -al
total 15024
drwxrwxr-x  2 root staff     4096 Nov  3 01:04 .
drwxrwxr-x 19 root staff     4096 Nov  3 01:04 ..
-rwxrwxr-x  1 root staff 15372624 Nov  3 01:04 sf.so
  • error message
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://packagemanager.rstudio.com/cran/__linux__/jammy/latest/src/contrib/ozmaps_0.4.5.tar.gz'
Content type 'binary/octet-stream' length 4207353 bytes (4.0 MB)
==================================================
downloaded 4.0 MB
* installing *source* package ‘ozmaps’ ...
** package ‘ozmaps’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/usr/local/lib/R/site-library/sf/libs/sf.so':
  libproj.so.22: cannot open shared object file: No such file or directory
Calls: <Anonymous> ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted
ERROR: lazy loading failed for package ‘ozmaps’
* removing ‘/usr/local/lib/R/site-library/ozmaps’

The downloaded source packages are in
	‘/tmp/RtmpJRnvRx/downloaded_packages’
Warning message:
In install.packages("ozmaps") :
  installation of package ‘ozmaps’ had non-zero exit status
@mdsumner
Copy link
Owner

mdsumner commented Nov 3, 2022

it's that sf won't load - try installing sf first

@mdsumner
Copy link
Owner

mdsumner commented Nov 3, 2022

I can't help with the sf thing, you need 'library(sf)' on its own to work first.

@ibuiltthis
Copy link
Author

it seems like sf fails to install without errors or warnings. It is possible to make it work by installing the correct packages or for anyone reading this in the future use rocker/geospatial

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