ERROR: could not load library "/usr/pgsql-9.6/lib/rtpostgis-2.4.so": libicui18n.so.58: cannot open shared object file: No such file or directory - postgresql

I am not sure if this is the right forum for askign this quesiton but saw some similar question around , so posting it here.
I am having trouble in enabling POSTGIS extension in PostgreSQL9.6
when i try to enable POSTGIS:
CREATE EXTENSION postgis;
I get below error:
ERROR: could not load library "/usr/pgsql-9.6/lib/rtpostgis-2.4.so":
libicui18n.so.58: cannot open shared object file: No such file or
directory SQL state: XX000
File reported is avaialble under /usr/lib as i verified using find / -name libicui18n.so.58, the out is as following:
/usr/lib/libicui18n.so.58
I have build the POSTGIS from source , OS is SLES12 SP2.

I found the solution by trial and error but manage to resolve this issue.
Looks like POSTGIS installation was looking for LD_LIBRARY_PATH , I resolved it by making sure that my environment LD_LIBRARY_PATH is set and also includes /usr/lib in it.
In-case someone else hit the same issue or similar.

Related

error: PostgreSQL/15/lib/timescaledb-2.9.3.dll Unable to load library The specified module could not be found

i have problem when i install timescaledb.
i installed postgresql-15.2-1-windows-x64, timescaledb-postgresql-15_latest-windows-amd64.
i followed install manual.
but i have error message which is '오류: "C:/Program Files/PostgreSQL/15/lib/timescaledb-2.9.3.dll" 라이브러리를 불러 올 수 없음: The specified module could not be found.' when i write 'CREATE EXTENSION IF NOT EXISTS timescaledb;' on postgres cmd.
how can i fix it?
i tried that move files(ssleay32.dll , libeay32.dll) to C:\Program Files\PostgreSQL\15\bin folder.
but i have same problem.
Please, check if the configuration parameter shared_preload_libraries is in the postgresql.conf file and it matches the TimescaleDB .dll folder.
If the dll is not located there, you may need to move the library to the correct directory or update the configuration file to reflect the correct path.
Have you checked any different errors in the server logs?
Also, the troubleshooting doc can be useful: https://wiki.postgresql.org/wiki/Extension_build_troubleshooting
and a recent question on timescaledb forum: https://www.timescale.com/forum/t/how-to-install-timescale-db-on-window/1274

error while creating Postgres extension www_fdw

I want to use www_fdw extension of PostgreSQL in order to read data from web services. I used this command to create extension:
CREATE EXTENSION IF NOT EXISTS www_fdw CASCADE
but it gives me following error:
could not open extension control file "C:/Program Files
(x86)/PostgreSQL/9.6/share/extension/www_fdw.control": No such file or
directory
I am working in Windows.
Any idea whats the reason for error?
The problem was solved when I installed mingw64 and msys. I compiled postgresql server in my machine and I used the:
build packages for www_fdw:
http://www.postgresonline.com/journal/archives/361-Foreign-Data-Wrappers-for-PostgreSQL-9.5-windows.html
and copied the related folders in the related directories (bin, lib, share) in postgresql folder.
Thanks a-horse-with-no-name!

php_warning on installing ext

I want to intstall the ext "my_redirects". On my local machine it does what it should. But now, on the live site, i got this error:
1: PHP Warning: file_get_contents(/kunden/homepages/28/d574274134/htdocs/update7/typo3/sysext/core/Resources/Private/Sql/Cache/Backend/Typo3DatabaseBackendCache.sql): failed to open stream: No such file or directory in /homepages/28/d574274134/htdocs/update7/typo3_src-7.6.14/typo3/sysext/core/Classes/Cache/Backend/Typo3DatabaseBackend.php line 441
I got a hint to delete the typo3temp/autoload/ files. Then the installation works, but if i after that go into the install tool, i get this error again. Can someone give a hint?
This file is part of the core and must exist. Look into the src-tar/zip file. Maybe the file wasn't transferred to the server.
I don't think it's an autoload issue, because the .sql file is missing, not the PHP class.
Please verify that the sql file does exist. If it's missing, check the hash of your downloaded TYPO3 core. Make sure you compare the correct path on the server.
But I guess you got an access restriction. Maybe bad ownhership of that .sql file? Perhaps you ran into some security problems with file_get_contents() and at least sql files? So please also check your security settings.

Odbc_fdw.control is missing

I am using cartoDB and Postgres 9.3 including PostGIS. When I try to create development user in cartoDB I get this error:
'CREATE EXTENSION IF NOT EXISTS odbc_fdw SCHEMA public;'
ERROR: could not open extension control file "/usr/share/postgresql/9.3/extension/odbc_fdw.control": No such file or directory
Also, when I try to run odbc_fdw extension inside Postgres I get the same error.
Any idea how to fix it?
You have to install the files odbc_fdw--0.0.1.sql and odbc_fdw.control in the extension subdirectory of the PostgreSQL share directory.
You can find the PostgreSQL share directory with pg_config --sharedir.
In your case the files have to be installed in /usr/share/postgresql/9.3/extension.

PostgreSQL error when trying to create an extension on windows

I already download postgis-2.1.5-5 from http://winnie.postgis.net/download/windows/pg94/buildbot
But, when I run CREATE EXTENSION sfcgal; I get this error:
ERROR: could not open extension control file "C:/Program Files/PostgreSQL/9.4/share/extension/sfcgal.control": No such file or directory SQL state: 58P01
How can I fix it?
As noted in the documentation, you should first install PostGIS, then execute postgis/sfcgal.sql to make available all sfcgal functions in postgresql.
Read the README.txt file at the root directory of the zip you've downloaded, it describes everything that should be done in order to be able to CREATE EXTENSION postgis under windows.