How to install plv8 in postgresql 12 on Windows10? - postgresql

I have followed instruction given in How to install PLV8 on Windows? and Can't create extensions plv8 postgresql questions, but I am getting below error:
ERROR: could not load library "C:/Program Files/PostgreSQL/12/lib/plv8.dll": The specified procedure could not be found.
SQL state: 58P01

Related

hello i was trying to install postgis to one of my database with the following command CREATE EXTENSION postgis;

CREATE EXTENSION postgis; but it returned an error of ERROR: could not open extension control file "/Library/PostgreSQL/13/share/postgresql/extension/postgis.control": No such file or directory
i'm on mac OS
Postgresql 14 and PGadmin 4 and have installed Postgis with Brew
please help me out guys

Installing pgrouting on macos

I am struggling getting the pgrouting extension to Postgresql to work. I am running PG 13 and attempting to install pgrouting 3.3.0. The hos OS is Mac Monterey 12.0.1 (M1).
I have built pgrouting from source and all seems to go well. I had though to copy the extension control file manually and the so file. When I try to install the extension in PB ('create extension pgrouting cascade') I get:
ERROR: could not load library "/Applications/Postgres.app/Contents/Versions/13/lib/postgresql/libpgrouting-3.3.so": dlopen(/Applications/Postgres.app/Contents/Versions/13/lib/postgresql/libpgrouting-3.3.so, 0x000A): tried: '/Applications/Postgres.app/Contents/Versions/13/lib/postgresql/libpgrouting-3.3.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libpgrouting-3.3.so' (no such file)
SQL state: 58P01
Any clue to what is wrong?

PostgreSQL: /opt/PostgreSQL/9.6/lib/postgresql/plperl.so: undefined symbol: Perl_save_strlen

I am trying to create plperl extension in PostgreSQL 9.6 (EDB single click executable file)
postgres=# create extension plperl;
ERROR: could not load library "/opt/PostgreSQL/9.6/lib/postgresql/plperl.so": /opt/PostgreSQL/9.6/lib/postgresql/plperl.so: undefined symbol: Perl_save_strlen
Perl version I am using.
-bash-4.2$ perl --version
This is perl 5, version 20, subversion 2 (v5.20.2) built for
x86_64-linux
I have checked the library file plperl.so using the ldd but it got executed successfully.
I have searched a lot and not able to find what is "Perl_save_strlen" and to which module it belongs in Perl.

Incompatible postgis 2.1 for postgresql 9.3.3 homebrew os x 10.10

I have upgraded from OS X 10.9 to 10.10 Yosemite. I was running postgresql 9.3.3 with postgis 2.1. I did not do a pgdump before upgrading to OS X 10.10 (I know, I know, kill me...) but I have the original data directory. I did a brew install postgresql and got 9.4.4. So I installed Postgresql 9.3.9 (the only 9.3 version I could find) with Homebrew. Also brew install postgis. I then got a version 2.1 Postgis for Postgresql 9.4.4. I tried to install postgis20 but that does not work with my database.
When I start Postgresql 9.3.3 I can see all my databases but when I browse I get the error:
ERROR: could not access file "$libdir/postgis-2.1": No such file or directory
I tried to link to posts-2.1 in the $libdir directory but then I get this message:
ERROR: incompatible library "/usr/local/Cellar/postgresql93/9.3.9/lib/postgis-2.1.so": version mismatch
DETAIL: Server is version 9.3, library is version 9.4.
So obviously I need a postgis-2.1 for Postgresql 9.3 but I don't know how to fix that.
If I try to run a pg_dumpall I get this error (obvious I guess):
➜ ./pg_dumpall >> old_backup.sql
pg_dump: Dumping the contents of table "darwin_test" failed: PQgetResult() failed.
pg_dump: Error message from server: ERROR: could not load library "/usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so, 10): Symbol not found: _json_tokener_errors
Referenced from: /usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so
Expected in: /usr/local/lib/libjson-c.2.dylib
in /usr/local/Cellar/postgresql/9.3.3/lib/postgis-2.1.so
So how do I get postgis-2.1 to work again with postgresql 9.3.3?
In homebrew I only find a postgis-2.1 for postgresql94.
Use brew edit postgis to change the postgresql references to postgresql93 in the install script and then run brew install postgis. You might also have to link/unlink postgresql using brew link postgresql93 or brew unlink postgresql.

Building pgadmin3-1.20.0 in CentOS 7 with PostgreSQL-9.4

I want to build pgadmin3-1.20.0 in CentOS 7, so I enter:
./configure
But I got this error:
configure: error: Could not find your PostgreSQL installation. You might need to use the --with-pgsql=DIR configure option
And when I use following command:
./configure --with-pgsql=/usr/pgsql-9.4/
this error will be raised:
configure: error: you must specify a valid PostgreSQL 8.4+ installation with --with-pgsql=DIR
Pgsql is up and has not any problem. How can I fix this error.
have you tried to install the libraries that are specified in this other post?
https://serverfault.com/questions/453430/install-pgadmin-in-debian-server