could not load library “/usr/pgsql-10/lib/postgis-2.5.so”: /usr/pgsql-10/lib/postgis-2.5.so: undefined...
I have installed postgresql 10 on centos 7.4 and installed postgis2.5 few months back. The installation was successful and Iam able to use postgis. All of a sudden Iam getting the following error.
test=# create extension postgis ;
ERROR: could not load library "/usr/pgsql-10/lib/postgis-2.5.so": /usr/pgsql-10/lib/postgis-2.5.so: undefined symbol: GEOSFrechetDistanceDensify
And ldd on postgis-2.5.so is as follows
lib]# ldd postgis-2.5.so
linux-vdso.so.1 => (0x00007ffcc03ef000)
libgeos_c.so.1 => /usr/geos36/lib64/libgeos_c.so.1 (0x00007f7a7d766000)
libproj.so.12 => /usr/proj49/lib/libproj.so.12 (0x00007f7a7d4fd000)
libjson-c.so.2 => /lib64/libjson-c.so.2 (0x00007f7a7d2f2000)
libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f7a7cf88000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7a7cc86000)
libSFCGAL.so.1 => /lib64/libSFCGAL.so.1 (0x00007f7a7c1b7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7a7bdea000)
libgeos-3.6.3.so => /usr/geos36/lib64/libgeos-3.6.3.so (0x00007f7a7ba3c000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7a7b735000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7a7b51f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7a7b303000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7a7b0ff000)
libz.so.1 => /lib64/libz.so.1 (0x00007f7a7aee9000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f7a7acc3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7a7dc56000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007f7a7aa9b000)
libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007f7a7a862000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007f7a7a607000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f7a7a38f000)
libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007f7a7a17e000)
libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007f7a79f67000)
libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007f7a79d63000)
libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007f7a79af7000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007f7a798ef000)
The function GEOSFrechetDistanceDensify seems to be added in version 3.7 of Geos as in link below & I have geos 3.6. Is this the reason for this error?.
https://trac.osgeo.org/geos/browser/git/NEWS?rev=3.7.0
Please help me to get the issue resolved.
postgis postgresql-10
add a comment |
I have installed postgresql 10 on centos 7.4 and installed postgis2.5 few months back. The installation was successful and Iam able to use postgis. All of a sudden Iam getting the following error.
test=# create extension postgis ;
ERROR: could not load library "/usr/pgsql-10/lib/postgis-2.5.so": /usr/pgsql-10/lib/postgis-2.5.so: undefined symbol: GEOSFrechetDistanceDensify
And ldd on postgis-2.5.so is as follows
lib]# ldd postgis-2.5.so
linux-vdso.so.1 => (0x00007ffcc03ef000)
libgeos_c.so.1 => /usr/geos36/lib64/libgeos_c.so.1 (0x00007f7a7d766000)
libproj.so.12 => /usr/proj49/lib/libproj.so.12 (0x00007f7a7d4fd000)
libjson-c.so.2 => /lib64/libjson-c.so.2 (0x00007f7a7d2f2000)
libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f7a7cf88000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7a7cc86000)
libSFCGAL.so.1 => /lib64/libSFCGAL.so.1 (0x00007f7a7c1b7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7a7bdea000)
libgeos-3.6.3.so => /usr/geos36/lib64/libgeos-3.6.3.so (0x00007f7a7ba3c000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7a7b735000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7a7b51f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7a7b303000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7a7b0ff000)
libz.so.1 => /lib64/libz.so.1 (0x00007f7a7aee9000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f7a7acc3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7a7dc56000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007f7a7aa9b000)
libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007f7a7a862000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007f7a7a607000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f7a7a38f000)
libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007f7a7a17e000)
libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007f7a79f67000)
libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007f7a79d63000)
libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007f7a79af7000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007f7a798ef000)
The function GEOSFrechetDistanceDensify seems to be added in version 3.7 of Geos as in link below & I have geos 3.6. Is this the reason for this error?.
https://trac.osgeo.org/geos/browser/git/NEWS?rev=3.7.0
Please help me to get the issue resolved.
postgis postgresql-10
" installed postgis2.5 few months back." how did you install it? Same for postgreSQL. What did change before the error started? Did you upgrade anything?
– Patrick Mevzek
Dec 3 '18 at 23:38
I referred to the following link. postgresonline.com/journal/archives/… And post-gis has got auto updated.
– vdharan
Dec 4 '18 at 6:41
Yum log -Nov 29 21:24:44 Installed: geos37-3.7.0-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-2.5.1-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-client-2.5.1-1.rhel7.x86_64
– vdharan
Dec 4 '18 at 7:22
I reinstalled postgis2.4 from source and got the issue resolved.
– vdharan
Dec 4 '18 at 10:58
add a comment |
I have installed postgresql 10 on centos 7.4 and installed postgis2.5 few months back. The installation was successful and Iam able to use postgis. All of a sudden Iam getting the following error.
test=# create extension postgis ;
ERROR: could not load library "/usr/pgsql-10/lib/postgis-2.5.so": /usr/pgsql-10/lib/postgis-2.5.so: undefined symbol: GEOSFrechetDistanceDensify
And ldd on postgis-2.5.so is as follows
lib]# ldd postgis-2.5.so
linux-vdso.so.1 => (0x00007ffcc03ef000)
libgeos_c.so.1 => /usr/geos36/lib64/libgeos_c.so.1 (0x00007f7a7d766000)
libproj.so.12 => /usr/proj49/lib/libproj.so.12 (0x00007f7a7d4fd000)
libjson-c.so.2 => /lib64/libjson-c.so.2 (0x00007f7a7d2f2000)
libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f7a7cf88000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7a7cc86000)
libSFCGAL.so.1 => /lib64/libSFCGAL.so.1 (0x00007f7a7c1b7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7a7bdea000)
libgeos-3.6.3.so => /usr/geos36/lib64/libgeos-3.6.3.so (0x00007f7a7ba3c000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7a7b735000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7a7b51f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7a7b303000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7a7b0ff000)
libz.so.1 => /lib64/libz.so.1 (0x00007f7a7aee9000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f7a7acc3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7a7dc56000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007f7a7aa9b000)
libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007f7a7a862000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007f7a7a607000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f7a7a38f000)
libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007f7a7a17e000)
libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007f7a79f67000)
libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007f7a79d63000)
libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007f7a79af7000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007f7a798ef000)
The function GEOSFrechetDistanceDensify seems to be added in version 3.7 of Geos as in link below & I have geos 3.6. Is this the reason for this error?.
https://trac.osgeo.org/geos/browser/git/NEWS?rev=3.7.0
Please help me to get the issue resolved.
postgis postgresql-10
I have installed postgresql 10 on centos 7.4 and installed postgis2.5 few months back. The installation was successful and Iam able to use postgis. All of a sudden Iam getting the following error.
test=# create extension postgis ;
ERROR: could not load library "/usr/pgsql-10/lib/postgis-2.5.so": /usr/pgsql-10/lib/postgis-2.5.so: undefined symbol: GEOSFrechetDistanceDensify
And ldd on postgis-2.5.so is as follows
lib]# ldd postgis-2.5.so
linux-vdso.so.1 => (0x00007ffcc03ef000)
libgeos_c.so.1 => /usr/geos36/lib64/libgeos_c.so.1 (0x00007f7a7d766000)
libproj.so.12 => /usr/proj49/lib/libproj.so.12 (0x00007f7a7d4fd000)
libjson-c.so.2 => /lib64/libjson-c.so.2 (0x00007f7a7d2f2000)
libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f7a7cf88000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7a7cc86000)
libSFCGAL.so.1 => /lib64/libSFCGAL.so.1 (0x00007f7a7c1b7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7a7bdea000)
libgeos-3.6.3.so => /usr/geos36/lib64/libgeos-3.6.3.so (0x00007f7a7ba3c000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7a7b735000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7a7b51f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7a7b303000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7a7b0ff000)
libz.so.1 => /lib64/libz.so.1 (0x00007f7a7aee9000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f7a7acc3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7a7dc56000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007f7a7aa9b000)
libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007f7a7a862000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007f7a7a607000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f7a7a38f000)
libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007f7a7a17e000)
libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007f7a79f67000)
libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007f7a79d63000)
libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007f7a79af7000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007f7a798ef000)
The function GEOSFrechetDistanceDensify seems to be added in version 3.7 of Geos as in link below & I have geos 3.6. Is this the reason for this error?.
https://trac.osgeo.org/geos/browser/git/NEWS?rev=3.7.0
Please help me to get the issue resolved.
postgis postgresql-10
postgis postgresql-10
asked Dec 3 '18 at 8:22
vdharanvdharan
61
61
" installed postgis2.5 few months back." how did you install it? Same for postgreSQL. What did change before the error started? Did you upgrade anything?
– Patrick Mevzek
Dec 3 '18 at 23:38
I referred to the following link. postgresonline.com/journal/archives/… And post-gis has got auto updated.
– vdharan
Dec 4 '18 at 6:41
Yum log -Nov 29 21:24:44 Installed: geos37-3.7.0-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-2.5.1-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-client-2.5.1-1.rhel7.x86_64
– vdharan
Dec 4 '18 at 7:22
I reinstalled postgis2.4 from source and got the issue resolved.
– vdharan
Dec 4 '18 at 10:58
add a comment |
" installed postgis2.5 few months back." how did you install it? Same for postgreSQL. What did change before the error started? Did you upgrade anything?
– Patrick Mevzek
Dec 3 '18 at 23:38
I referred to the following link. postgresonline.com/journal/archives/… And post-gis has got auto updated.
– vdharan
Dec 4 '18 at 6:41
Yum log -Nov 29 21:24:44 Installed: geos37-3.7.0-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-2.5.1-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-client-2.5.1-1.rhel7.x86_64
– vdharan
Dec 4 '18 at 7:22
I reinstalled postgis2.4 from source and got the issue resolved.
– vdharan
Dec 4 '18 at 10:58
" installed postgis2.5 few months back." how did you install it? Same for postgreSQL. What did change before the error started? Did you upgrade anything?
– Patrick Mevzek
Dec 3 '18 at 23:38
" installed postgis2.5 few months back." how did you install it? Same for postgreSQL. What did change before the error started? Did you upgrade anything?
– Patrick Mevzek
Dec 3 '18 at 23:38
I referred to the following link. postgresonline.com/journal/archives/… And post-gis has got auto updated.
– vdharan
Dec 4 '18 at 6:41
I referred to the following link. postgresonline.com/journal/archives/… And post-gis has got auto updated.
– vdharan
Dec 4 '18 at 6:41
Yum log -Nov 29 21:24:44 Installed: geos37-3.7.0-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-2.5.1-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-client-2.5.1-1.rhel7.x86_64
– vdharan
Dec 4 '18 at 7:22
Yum log -Nov 29 21:24:44 Installed: geos37-3.7.0-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-2.5.1-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-client-2.5.1-1.rhel7.x86_64
– vdharan
Dec 4 '18 at 7:22
I reinstalled postgis2.4 from source and got the issue resolved.
– vdharan
Dec 4 '18 at 10:58
I reinstalled postgis2.4 from source and got the issue resolved.
– vdharan
Dec 4 '18 at 10:58
add a comment |
1 Answer
1
active
oldest
votes
Had the same problem on CentOS after an update. I had 3.6 AND 3.7 installed.
$yum list installed | grep geos
geos36.x86_64 3.6.3-1.rhel7 @pgdg10
geos37.x86_64 3.7.0-1.rhel7 @pgdg10
I had to remove the 3.6:
$yum remove geos36
And restart PostgreSQL
$systemctl restart postgresql-10
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f223977%2fcould-not-load-library-usr-pgsql-10-lib-postgis-2-5-so-usr-pgsql-10-lib-pos%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Had the same problem on CentOS after an update. I had 3.6 AND 3.7 installed.
$yum list installed | grep geos
geos36.x86_64 3.6.3-1.rhel7 @pgdg10
geos37.x86_64 3.7.0-1.rhel7 @pgdg10
I had to remove the 3.6:
$yum remove geos36
And restart PostgreSQL
$systemctl restart postgresql-10
New contributor
add a comment |
Had the same problem on CentOS after an update. I had 3.6 AND 3.7 installed.
$yum list installed | grep geos
geos36.x86_64 3.6.3-1.rhel7 @pgdg10
geos37.x86_64 3.7.0-1.rhel7 @pgdg10
I had to remove the 3.6:
$yum remove geos36
And restart PostgreSQL
$systemctl restart postgresql-10
New contributor
add a comment |
Had the same problem on CentOS after an update. I had 3.6 AND 3.7 installed.
$yum list installed | grep geos
geos36.x86_64 3.6.3-1.rhel7 @pgdg10
geos37.x86_64 3.7.0-1.rhel7 @pgdg10
I had to remove the 3.6:
$yum remove geos36
And restart PostgreSQL
$systemctl restart postgresql-10
New contributor
Had the same problem on CentOS after an update. I had 3.6 AND 3.7 installed.
$yum list installed | grep geos
geos36.x86_64 3.6.3-1.rhel7 @pgdg10
geos37.x86_64 3.7.0-1.rhel7 @pgdg10
I had to remove the 3.6:
$yum remove geos36
And restart PostgreSQL
$systemctl restart postgresql-10
New contributor
New contributor
answered 3 hours ago
yvesbyvesb
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f223977%2fcould-not-load-library-usr-pgsql-10-lib-postgis-2-5-so-usr-pgsql-10-lib-pos%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
" installed postgis2.5 few months back." how did you install it? Same for postgreSQL. What did change before the error started? Did you upgrade anything?
– Patrick Mevzek
Dec 3 '18 at 23:38
I referred to the following link. postgresonline.com/journal/archives/… And post-gis has got auto updated.
– vdharan
Dec 4 '18 at 6:41
Yum log -Nov 29 21:24:44 Installed: geos37-3.7.0-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-2.5.1-1.rhel7.x86_64 Nov 29 21:24:45 Updated: postgis25_10-client-2.5.1-1.rhel7.x86_64
– vdharan
Dec 4 '18 at 7:22
I reinstalled postgis2.4 from source and got the issue resolved.
– vdharan
Dec 4 '18 at 10:58