Postgres database crash when installing plpython

前端 未结 2 642
故里飘歌
故里飘歌 2021-01-13 08:38

I\'m trying to install plpython in my Postgres 9.1 but it crashes the server:

postgres@dataserver1:~> /opt/postgres/9.1/bin/psql -d mydb
psql.bin (9.1.4)
         


        
2条回答
  •  无人及你
    2021-01-13 09:02

    Postgres 9.0 with Python 2.7 installed on WIN 8.1 64-bit. FYI: Here is how I managed to solve the ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plpython.dll" when running CREATE LANGUAGE plpythonu; in pgAdmin

    • After installing Postgresql 9.0 from EnterpriseDB the path C:\Program Files\PostgreSQL\9.0\lib should contain the file "plppython.dll"
    • Checking this file with a program such as dependency walker reveals that it is missing a python26.dll
    • If you look in you C:\windows\system32 catalog you should find a file python27.dll
    • Create a copy of python27.dll -> python26.dll
    • Make sure you C:\windows\system32 is in your PATH variable
    • Run CREATE LANGUAGE plpythonu; im pgAdmin

提交回复
热议问题