-
Notifications
You must be signed in to change notification settings - Fork 301
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
package or namespace load failed for 'sf' in dyn.load #1158
Comments
Read the README about multiple installations of external libraries. You have multiple versions of GDAL on your system. |
I read this post, but I don't understand what I should do to fix this problem.
I should just remove one of them? |
OK I delete all files created during installation proj and gdal from /usr/local/bin,etc,include,lib,lib64,share and I run installation again. It help me. Instalation package SF on Centos 7 is very difficult, because proj and gdal are very old in repositories and You must install them from sources. Then You must edit /etc/ld.so.conf file and create PKG_CONFIG_PATH environment variable before instalation starts. Then, in R, You must specify paths to specific files from proj instalation folder, for eg.: |
@boboshaq Im attempting to install sf on Centos 7 and running into problems. I've overcome most but am left with:
Did you find a way to get around this one?! |
Hi,
I assume that You have package ZLIB in version 1.2.9 in your system :) |
hey, thanks for this! I ended up creating a symlink to the new ZLIB library
as detailed in this post:
https://stackoverflow.com/questions/48306849/lib-x86-64-linux-gnu-libz-so-1-version-zlib-1-2-9-not-found
…On Tue, Feb 25, 2020 at 4:05 PM boboshaq ***@***.***> wrote:
Hi,
It was a long time ago, so I don't remember exactly how I was doing it. I
may tell you steps that I take.
1. install proj from sources
2. install gdal
3. edit /etc/ld.so.conf and put there path to libraries from proj (eg
/../../proj/6.2.0/lib)
4. run command ldconfig or logout and login to get those settings
visible
5. set environment variable PKG_CONFIG_PATH with path to file: proj.pc
with should be in proj instalation home folder in /lib/pkgconfig (eg export
PKG_CONFIG_PATH=/../../proj/6.2.0/lib/pkgconfig) - pkgconfig should been
installed in system
6. open R and run install.packages command with options:
--with-proj-include --with-proj-lib --with-proj-api=no (eg
install.packages("sf", configure.args =
"--with-proj-include=/path/to/proj/6.2.0/include
--with-proj-lib=/path/to/proj/6.2.0/lib --with-proj-api=no"))
I assume that You have package ZLIB in version 1.2.9 in your system :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1158?email_source=notifications&email_token=AHRKVKLNV2M3HYO6NBLXLOTREU6WHA5CNFSM4I3FU56KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4RMIQ#issuecomment-590943778>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHRKVKN2Q7CU6UHLSRGS7HDREU6WHANCNFSM4I3FU56A>
.
|
Hi,
when I try install sf package I get error:
I have Centos 7.7 with gdal-2.4.2, proj-6.2.0, pkgconfig-0.27.1, R-3.6.0.
What can I do, to install package "sf" successfully ?
The text was updated successfully, but these errors were encountered: