473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

could not access file "$libdir/plpython" when restoring

Hi all,

I'm restoring a database from 7.3.4 FC1 to 7.4.2 FC2:

[cpn@s1 bak]$ pg_restore -d KakaoStats KakaoStats.dump
pg_restore: [compressão de arquivo (banco de dados)]
could not execute query: ERROR: could not access file
"$libdir/plpython": No such file or directory

The dump was generated with the command:

[cpn@s00 bak]$ pg_dump -Fc KakaoStats >
KakaoStats.dump

What value should $libdir contain? How to make it
permantent?

Tried createlang:

[cpn@s1 bak]$ createlang --echo plpythonu KakaoStats
SELECT oid FROM pg_language WHERE lanname =
'plpythonu';
SELECT oid FROM pg_proc WHERE proname =
'plpython_call_handler' AND prorettype = (SELECT oid
FROM pg_type WHERE typname = 'language_handler') AND
pronargs = 0;
CREATE FUNCTION "plpython_call_handler" () RETURNS
language_handler AS '$libdir/plpython' LANGUAGE C;
CREATE LANGUAGE "plpythonu" HANDLER
"plpython_call_handler";
createlang: instalação da linguagem falhou: ERROR:
could not access file "$libdir/plpython": No such file
or directory

Regards,
Clodoaldo Pinto

__________________________________________________ _____
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #1
3 7542
Seems your FC2 box did not have the python language support compiled
into the version of postgresql that was installed on that box or
possibly not installed in the template1 database so it would be
available to any other database created in your FC2.

I do believe python is included in the rpm versions of postgresql that
are put on the mirrors. Did you compile it from source? If so
recompile and add the python option.

On Mon, 2004-07-05 at 20:33, Clodoaldo Pinto Neto wrote:
Hi all,

I'm restoring a database from 7.3.4 FC1 to 7.4.2 FC2:

[cpn@s1 bak]$ pg_restore -d KakaoStats KakaoStats.dump
pg_restore: [compressão de arquivo (banco de dados)]
could not execute query: ERROR: could not access file
"$libdir/plpython": No such file or directory

The dump was generated with the command:

[cpn@s00 bak]$ pg_dump -Fc KakaoStats >
KakaoStats.dump

What value should $libdir contain? How to make it
permantent?

Tried createlang:

[cpn@s1 bak]$ createlang --echo plpythonu KakaoStats
SELECT oid FROM pg_language WHERE lanname =
'plpythonu';
SELECT oid FROM pg_proc WHERE proname =
'plpython_call_handler' AND prorettype = (SELECT oid
FROM pg_type WHERE typname = 'language_handler') AND
pronargs = 0;
CREATE FUNCTION "plpython_call_handler" () RETURNS
language_handler AS '$libdir/plpython' LANGUAGE C;
CREATE LANGUAGE "plpythonu" HANDLER
"plpython_call_handler";
createlang: instalação da linguagem falhou: ERROR:
could not access file "$libdir/plpython": No such file
or directory

Regards,
Clodoaldo Pinto

__________________________________________________ _____
Yahoo! Mail agora com 100MB, anti-spam e antivÃ*rus grátis!
http://br.info.mail.yahoo.com/

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #2
The postgresql was installed by anaconda installer
during the box setup.

Tried to install to template1 as postgres with no
success:

bash-2.05b$ createlang plpythonu template1
createlang: instalação da linguagem falhou: ERROR:
could not access file "$libdir/plpython": No such file
or directory
Seems your FC2 box did not have the python language
support compiled
into the version of postgresql that was installed on
that box or
possibly not installed in the template1 database so
it would be
available to any other database created in your FC2.
I do believe python is included in the rpm versions
of postgresql that
are put on the mirrors. Did you compile it from
source? If so
recompile and add the python option.

On Mon, 2004-07-05 at 20:33, Clodoaldo Pinto Neto
wrote:
Hi all,

I'm restoring a database from 7.3.4 FC1 to 7.4.2

FC2:

[cpn@s1 bak]$ pg_restore -d KakaoStats

KakaoStats.dump
pg_restore: [compressão de arquivo (banco de

dados)]
could not execute query: ERROR: could not access

file
"$libdir/plpython": No such file or directory

The dump was generated with the command:

[cpn@s00 bak]$ pg_dump -Fc KakaoStats >
KakaoStats.dump

What value should $libdir contain? How to make it
permantent?

Tried createlang:

[cpn@s1 bak]$ createlang --echo plpythonu

KakaoStats
SELECT oid FROM pg_language WHERE lanname =
'plpythonu';
SELECT oid FROM pg_proc WHERE proname =
'plpython_call_handler' AND prorettype = (SELECT

oid
FROM pg_type WHERE typname = 'language_handler')

AND
pronargs = 0;
CREATE FUNCTION "plpython_call_handler" () RETURNS
language_handler AS '$libdir/plpython' LANGUAGE C;
CREATE LANGUAGE "plpythonu" HANDLER
"plpython_call_handler";
createlang: instalação da linguagem falhou:

ERROR:
could not access file "$libdir/plpython": No such

file
or directory

Regards,
Clodoaldo Pinto


__________________________________________________ _____
Yahoo! Mail agora com 100MB, anti-spam e

antivÃ*rus grátis!
http://br.info.mail.yahoo.com/

---------------------------(end of

broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


__________________________________________________ _____
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #3
=?iso-8859-1?q?Clodoaldo=20Pinto=20Neto?= <cl*************@yahoo.com.br> writes:
The postgresql was installed by anaconda installer
during the box setup.


Perhaps you forgot to include the postgresql-pl package? IIRC that
is where most of the plXXX.so files are distributed.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Derek Scollon | last post by:
Hope someone can point me in the right direction to fix this one... I'm currently running Apache 2.0.40 and PHP 4.2.2 on a RedHat9 server. I'm needing to update to PHP5 but don't want to change...
0
by: Chris Albertson | last post by:
I do the following as the user "postgres" alberts=# CREATE FUNCTION foobar(CSTRING) alberts-# RETURNS opaque alberts-# AS '$libdir/mystuff' , 'foobar' alberts-# LANGUAGE 'c' alberts-#...
0
by: Rich Cullingford | last post by:
Hello, I've been trying to automate the installation of a PG 7.3.3 database on a new machine, starting with a tarball containing the 'binaries' for the system (i.e., everything but PGDATA). (The...
1
by: Nigel J. Andrews | last post by:
The subject says it really. Is there a way to query the value of $libdir, and I don't mean the dynamic_library_path GUC? I ask because, I have scripts to create databases and I've come to make...
2
by: Tim Farrell | last post by:
I use PostgreSQL as a default database in our solution and with the 7.2 version I was able to tar up the area pointed to by the --prefix build argument and untar to an arbitrary path as part of my...
2
by: Bob Powell | last post by:
Hello everyone: I am attempting to upgrade from 7.2 to 7.4 Postgresql. I have successfully installed 7.4 and am attempting to use the pgdump from 7.2 for 7.4. I'm having only one slight error...
0
by: Gerardo Herzig | last post by:
Hi all. Im having some "problems" with a small concurrent plpython function. Based on a small example about concurrent programming, there is some code which works fine under python: #!...
0
by: Gerardo Herzig | last post by:
Hi all. Im having a hard time trying to compile the plpython package. This is the error make gives me: gherzig@vdb:/usr/local/src/postgresql-8.2.5/src/pl/plpythonmake gcc -O2 -Wall...
5
by: mechphisto | last post by:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do that, I have to recompile PHP with the libmcrypt switches in the ./ configure. So I downloaded the latest PHP source files, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.