carlos-alberto-silva / rGEDI

rGEDI: An R Package for NASA's Global Ecosystem Dynamics Investigation (GEDI) Data Visualization and Processing.
164 stars 66 forks source link

Issues with install: Library not loaded: @rpath/libz.1.dylib #4

Closed philippgaertner closed 4 years ago

philippgaertner commented 4 years ago

I have issues to install rGEDI, and get the following error message.

` R inst preparing package for lazy loading help * installing help indices building package indices installing vignettes testing if installed package can be loaded Error: package or namespace load failed for ‘rGEDI’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Users/gaertner/Library/R/3.4/library/rGEDI/libs/rGEDI.so': dlopen(/Users/gaertner/Library/R/3.4/library/rGEDI/libs/rGEDI.so, 6): Library not loaded: @rpath/libz.1.dylib Referenced from: /Users/gaertner/Library/R/3.4/library/rGEDI/libs/rGEDI.so Reason: image not found Error: loading failed Execution halted ERROR: loading failed

I am running things on:

carlos-alberto-silva commented 4 years ago

Please try to install it using one of the releases listed herein: https://github.com/carlos-alberto-silva/rGEDI/releases

caiohamamura commented 4 years ago

We didn't test installing in R 3.4, only 3.5+, maybe that's an issue. You can try the binary package for OSX: https://github.com/carlos-alberto-silva/rGEDI/releases/download/v0.0.1/rGEDI_0.0.1_osx_x64.tgz.

Something like:

install.packages("https://github.com/carlos-alberto-silva/rGEDI/releases/download/v0.0.1/rGEDI_0.0.1_osx_x64.tgz", repos=NULL, type = "binary")
thais-lima commented 4 years ago

I was unable to install it in R 3.5.1. I got a series of errors. But now, in the current 3.6.3 version, it was correctly installed.

carlos-alberto-silva commented 4 years ago

Great! Thanks for reporting it

philippgaertner commented 4 years ago

I installed R 3.6.3

and now I get the following error message:

install.packages("~/Downloads/rGEDI_0.0.1_osx_x64.tgz", repos = NULL, type = .Platform$pkgType)> library(rGEDI)Error: package or namespace load failed for ‘rGEDI’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rGEDI/libs/rGEDI.so': dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rGEDI/libs/rGEDI.so, 6): Library not loaded: /usr/local/opt/szip/lib/libsz.2.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rGEDI/libs/rGEDI.so Reason: image not found

Philipp Gärtner

Phone: +49 157 - 510 40 833 Email: g CHantke@wg-vorwaerts.deaertner.p@gmail.com Web: philippgaertner.github.io

https://twitter.com/gartn001 http://www.linkedin.com/in/philippgaertner http://orcid.org/0000-0002-5746-096X https://www.researchgate.net/profile/Philipp_Gaertner/contributions

On Tue, 17 Mar 2020 at 15:23, Caio Hamamura notifications@github.com wrote:

We didn't test installing in R 3.4, only 3.5+, maybe that's an issue. You can try the binary package for OSX:

https://github.com/carlos-alberto-silva/rGEDI/releases/download/v0.0.1/rGEDI_0.0.1_osx_x64.tgz .

Something like:

install.packages("https://github.com/carlos-alberto-silva/rGEDI/releases/download/v0.0.1/rGEDI_0.0.1_osx_x64.tgz", repos=NULL, type = "binary")

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/carlos-alberto-silva/rGEDI/issues/4#issuecomment-600099078, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBVQVPA4WOHH3N4DXSJOG3RH6BW3ANCNFSM4LNJXYNQ .

caiohamamura commented 4 years ago

Oh, now it's a matter of installing the platform dependencies, I thought that ./configure script would have warned about those.

brew install libgeotiff gsl hdf5 udunits

caiohamamura commented 4 years ago

Actually your system is complaining about szip:

brew install szip

caiohamamura commented 4 years ago

I installed R 3.6.3 - R version 3.6.3 (2020-02-29) -- "Holding the Windsock" - Platform: x86_64-apple-darwin15.6.0 (64-bit) and now I get the following error message: install.packages("~/Downloads/rGEDI_0.0.1_osx_x64.tgz", repos = NULL, type = .Platform$pkgType)> library(rGEDI)Error: package or namespace load failed for ‘rGEDI’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rGEDI/libs/rGEDI.so': dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rGEDI/libs/rGEDI.so, 6): Library not loaded: /usr/local/opt/szip/lib/libsz.2.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rGEDI/libs/rGEDI.so Reason: image not found Philipp Gärtner Phone: +49 157 - 510 40 833 Email: g CHantke@wg-vorwaerts.deaertner.p@gmail.com Web: philippgaertner.github.io https://twitter.com/gartn001 http://www.linkedin.com/in/philippgaertner http://orcid.org/0000-0002-5746-096X https://www.researchgate.net/profile/Philipp_Gaertner/contributions On Tue, 17 Mar 2020 at 15:23, Caio Hamamura @.***> wrote: We didn't test installing in R 3.4, only 3.5+, maybe that's an issue. You can try the binary package for OSX: https://github.com/carlos-alberto-silva/rGEDI/releases/download/v0.0.1/rGEDI_0.0.1_osx_x64.tgz . Something like: install.packages("https://github.com/carlos-alberto-silva/rGEDI/releases/download/v0.0.1/rGEDI_0.0.1_osx_x64.tgz", repos=NULL, type = "binary") — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBVQVPA4WOHH3N4DXSJOG3RH6BW3ANCNFSM4LNJXYNQ .

Thanks @philippgaertner for reporting this issue, I've solved it by adding libz and szip to the configure script (92232b4e363f9c2df3ca4c6933bda76f48c484a1).