hi people
i am trying to connect to ppstgresql on a debian system using perl . i
am getting the following error .can any one please suggest what has to
be done
install_driver(pg) failed: Can't locate DBD/pg.pm in @INC (@INC
contains: /etc/perl /usr/local/lib/perl/5.8.3
/usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
(eval 1) line 3.
Perhaps the DBD::pg perl module hasn't been fully installed,
or perhaps the capitalisation of 'pg' isn't right.
Available drivers: ExampleP, Pg, Proxy, Sponge, mysql.
at psqldb.pl line 10
thanks
jay
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org 6 4832
On Sun, 2004-06-27 at 21:05, Jay wrote: hi people i am trying to connect to ppstgresql on a debian system using perl . i am getting the following error .can any one please suggest what has to be done
install_driver(pg) failed: Can't locate DBD/pg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at (eval 1) line 3. Perhaps the DBD::pg perl module hasn't been fully installed, or perhaps the capitalisation of 'pg' isn't right. Available drivers: ExampleP, Pg, Proxy, Sponge, mysql. at psqldb.pl line 10
thanks jay
I have not done much perl programming but it looks like you need to
install the CPAN DBD package.
--
Scot L. Harris <we***@cfl.rr.com>
---------------------------(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
On Sun, 2004-06-27 at 21:19, Jay wrote: i did a apt-get install on my machine .my mysql connectivity works fine though .
Even so the error message is saying it can't locate DBD/pg.pm followed
by the include list as well as hinting that the DBD::pg package, which
provides the perl interface to postgresql, has not been fully installed.
If I was in your place I would run the perl CPAN stuff and reinstall the
DBD::pg package then verify that the pg.pm file is on the system and in
one of the include directories.
"Scot L. Harris" <we***@cfl.rr.com> wrote: On Sun, 2004-06-27 at 21:05, Jay wrote: hi people i am trying to connect to ppstgresql on a debian system using perl . i am getting the following error .can any one please suggest what has to be done
install_driver(pg) failed: Can't locate DBD/pg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at (eval 1) line 3. Perhaps the DBD::pg perl module hasn't been fully installed, or perhaps the capitalisation of 'pg' isn't right. Available drivers: ExampleP, Pg, Proxy, Sponge, mysql. at psqldb.pl line 10
thanks jay
have not done much perl programming but it looks like you need to nstall the CPAN DBD package.
- Scot L. Harris <we***@cfl.rr.com>
--
Scot L. Harris <we***@cfl.rr.com>
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
On Sun, 2004-06-27 at 21:56, Jay wrote: i finally got that working . thanks for ur suggestion . i downloaded the DBD/pg.pm from cpan and it works fine now . it would be great it u could help me with a bit of perl also. i am getting an error when i am trying to execute the program DBD::Pg::st execute failed: ERROR: syntax error at or near "(" at character 81 at psqldb.pl line 14. there is nothing at line 14 character 81 thanks kay
Like I said in my initial message I have not done much perl
programming.
Without source code it is impossible for anyone to debug your script for
you. But note that it says you have a syntax error at or NEAR "(" on
line 14. You need to review all the code in that area of your script.
You probably have a typo that can easily be corrected.
If you have additional perl programming questions you may want to post
on a perl mailing list.
"Scot L. Harris" <we***@cfl.rr.com> wrote: On Sun, 2004-06-27 at 21:05, Jay wrote: hi people i am trying to connect to ppstgresql on a debian system using perl . i am getting the following error .can any one please suggest what has to be done
install_driver(pg) failed: Can't locate DBD/pg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3
have not done much perl programming but it looks like you need to nstall the CPAN DBD package.
--
Scot L. Harris we***@cfl.rr.com
What is food to one, is to others bitter poison.
-- Titus Lucretius Carus
---------------------------(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
On Sun, Jun 27, 2004 at 07:05:13PM -0600, Jay wrote: Perhaps the DBD::pg perl module hasn't been fully installed, or perhaps the capitalisation of 'pg' isn't right. Available drivers: ExampleP, Pg, Proxy, Sponge, mysql. at psqldb.pl line 10
So, did you try using the Pg driver rather than pg ? It seems in this
case capitalisation matters ...
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"En las profundidades de nuestro inconsciente hay una obsesiva necesidad
de un universo lógico y coherente. Pero el universo real se halla siempre
un paso más allá de la lógica" (Irulan)
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Alvaro Herrera wrote: On Sun, Jun 27, 2004 at 07:05:13PM -0600, Jay wrote:
Perhaps the DBD::pg perl module hasn't been fully installed, or perhaps the capitalisation of 'pg' isn't right. Available drivers: ExampleP, Pg, Proxy, Sponge, mysql. at psqldb.pl line 10
So, did you try using the Pg driver rather than pg ? It seems in this case capitalisation matters ...
It does indeed, since the module-name is the same is its filename and
unix has case-sensitive file-systems (hmm - what would happen on Windows?)
Jay - a quick tip with these is that "perldoc DBD::Pg" will show the
docs for the module in question, or an error if it can't find the module.
--
Richard Huxton
Archonet Ltd
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Alvaro Herrera <al******@dcc.uchile.cl> wrote: On Sun, Jun 27, 2004 at 07:05:13PM -0600, Jay wrote:
Perhaps the DBD::pg perl module hasn't been fully installed, or perhaps the capitalisation of 'pg' isn't right. Available drivers: ExampleP, Pg, Proxy, Sponge, mysql. at psqldb.pl line 10
So, did you try using the Pg driver rather than pg ? It seems in this case capitalisation matters ...
Indeed it does. The module is DBD::Pg, *not* DBD::pg.
use DBI:
$dbh = DBI->connect("dbi:Pg:dbname=$dbName", $dbUser, $dbPass, [...]);
Jim
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: google_nospam |
last post by:
Thanks in advance for any help. I'm looking for a way to pass data
from php to perl. Basically, I want to take some dynamic data from a
database, mixed with user input, then reformat it to make a...
|
by: Zeljko Vrba |
last post by:
Now, why would I like to learn Python: because of IronPython port to CLR.
Perl port to CLR doesn't seem to be coming soon. First Perl6 for Parrot has
to be written, and then other backends..
...
|
by: Mateusz [PEYN] Adamus |
last post by:
Hi
I'm a developer currently wondering which DB choose for my next project.
I looked on the net found ofcourse Oracle but also came up with
PostgreSQL. I heard quite few things about it, all...
|
by: Mainlander |
last post by:
An ISP I belong to uses Majordomo for their mailing list system. I'd like
to encourage them to move to a system that uses a database, preferably
psql which they already run on their server....
|
by: John Wells |
last post by:
Yes, I know you've seen the above subject before, so please be gentle with
the flamethrowers.
I'm preparing to enter a discussion with management at my company
regarding going forward as either...
|
by: phil campaigne |
last post by:
On Mon, 1 Mar 2004, phil campaigne wrote:
>> Nigel J. Andrews wrote:
>>
>
>
>>> >On Mon, 1 Mar 2004, Phil Campaigne wrote:
>>> >
>>> >
|
by: Jon Pastore |
last post by:
I have a strange error.
when I do a ps aux I get:
postgres 15018 0.0 0.6 9192 7396 ? S 09:20 0:00 /usr/bin/perl
/www/nexum/cgi-bin/accounting/posting/automatic_posting
postgres...
|
by: Karl O. Pinc |
last post by:
These seem to work. I'm posting them now before I'm done with
them before I start messing them up with specifics to my database.
Any comment is welcome. However, I've no intention of publishing...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
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,...
| |