473,771 Members | 2,347 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pg module for Perl

If this is the wrong list, let me know...
I am trying to install the Pg DBD module for Perl DBI and am having a
problem. It keeps coming up asking if I read the README file, which i have
several times. The perl Makefile.PL and make seem to run without
problems, but the make test fails. I have confirmed that Postgres is
running fine. I've been able to create schema and tables and load data.
I have re-built Perl 5.8.2, I have installed PostgreSQL v7.4 and DBI-1.38.
Then I tried installing pgsql_perl5-1.9.0 and it just wont work. Have I
picked up the wrong module? Are there some specific configs required for
any of these to support the Pg DBD?
Any help appreciated.
Barb

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

Nov 12 '05 #1
5 2110
Barbara Lindsey wrote:
I have re-built Perl 5.8.2, I have installed PostgreSQL v7.4 and DBI-1.38.
Then I tried installing pgsql_perl5-1.9.0 and it just wont work. Have I
picked up the wrong module? Are there some specific configs required for
any of these to support the Pg DBD?


IIRC, the Pg module for Perl is quite distinct to DBD::Pg. You might be
trying to install the wrong module.

What do you mean by "it just won't work"? If, after installing
pgsql_perl5-1.9.0, you get a message about not being able to find
"DBD::Pg in @INC", you've probably got the Pg module installed instead.
Try "man Pg", see if you've actually got the Pg module installed.

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

Nov 12 '05 #2
Barbara Lindsey <bl******@cog.u fl.edu> wrote:
If this is the wrong list, let me know... I am trying to install the Pg DBD module for Perl DBI and am having
a problem. It keeps coming up asking if I read the README file,
which i have several times. The perl Makefile.PL and make seem to
run without problems, but the make test fails. I have confirmed
that Postgres is running fine. I've been able to create schema and
tables and load data. I have re-built Perl 5.8.2, I have installed
PostgreSQL v7.4 and DBI-1.38. Then I tried installing
pgsql_perl5-1.9.0 and it just wont work. Have I picked up the wrong
module? Are there some specific configs required for any of these
to support the Pg DBD? Any help appreciated.
Barb


Barb,

Try setting $DBI_DSN to something like dbi:Pg:test before trying to
install DBD::Pg

in bash, that reads

export DBI_DSN=dbi:Pg: test

in (t)csh, it's

setenv DBI_DSN dbi:Pg:test

HTH :)

Cheers,
David.
--
David Fetter da***@fetter.or g http://fetter.org/
phone: +1 510 893 6100 cell: +1 415 235 3778

On two occasions I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the
right answers come out?' I am not able rightly to apprehend the kind
of confusion of ideas that could provoke such a question.
Charles Babbage
Nov 12 '05 #3

I think you are right!
I originally went to the Perl Module list on CPAN and looked for DBD and Pg.
It gave me the pgsql_perl5.1.9 .0 link

However, when I searched for DBD Pg on Google, it led me to a DBD-Pg-1.22

I think that is what I was looking for. Will give it a try tonight.
Thanks!
Barb

Alex Satrapa wrote:
Barbara Lindsey wrote:
I have re-built Perl 5.8.2, I have installed PostgreSQL v7.4 and
DBI-1.38.
Then I tried installing pgsql_perl5-1.9.0 and it just wont work. Have I
picked up the wrong module? Are there some specific configs required for
any of these to support the Pg DBD?

IIRC, the Pg module for Perl is quite distinct to DBD::Pg. You might be
trying to install the wrong module.

What do you mean by "it just won't work"? If, after installing
pgsql_perl5-1.9.0, you get a message about not being able to find
"DBD::Pg in @INC", you've probably got the Pg module installed instead.
Try "man Pg", see if you've actually got the Pg module installed.

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


--
Barbara E. Lindsey,
COG RDC
Phone: (352) 392-5198 ext. 314 Fax: (352) 392-8162

----
CONFIDENTIALITY NOTICE: The information contained in this electronic
message is legally privileged and confidential and intended only for the
use of the individual(s) or entity(ies) named above. If the reader of
this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this email or any of it's
components is strictly prohibited. If you have received this email in
error, please contact the sender.
----
---------------------------(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

Nov 12 '05 #4
On Mon, 1 Dec 2003, Barbara Lindsey wrote:
However, when I searched for DBD Pg on Google, it led me to a DBD-Pg-1.22


Try

http://search.cpan.org/~rudy/DBD-Pg-1.31/Pg.pm

Not sure if there are a lot of dependency issues going to Pg 7.4 as I'm in
the process upgrading to 7.4 and all it's friends.

One other issue that comes when installing DBI and/or DBD is the from the
current (1.31) README file.

....

INSTALLATION:
-------------

By default Makefile.PL uses App:Info to find the location of the
PostgreSQL library and include directories. However, if you want to
control it yourself, define the environment variables POSTGRES_INCLUD E
and POSTGRES_LIB, or POSTGRES_HOME. Note that if you've compiled
PostgreSQL with SSL support, you must define the POSTGRES_LIB
environment varable and add "-lssl" to it, like this:

export POSTGRES_LIB="/usr/local/pgsql/lib -lssl"

....

Good luck to us both.
Rod
--
"Open Source Software - Usually you get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #5
This was perfect. I also had to set the DBI_* envs. See test results
below. I then installed and successfully ran my own test.
Thanks to all who replied!
Barb

Test Results:
$ make test
PERL_DL_NONLAZY =1 /usr/local/bin/perl "-MExtUtils::Comm and::MM" "-e"
"test_harness(0 , 'blib/lib', 'blib/arch')" t/*.t
t/00basic........ ...ok
t/01connect...... ...ok 2/2#
# Package Version
# DBD::Pg 1.31
# DBI 1.38
# Postgres 7.4
t/01connect...... ...ok
t/01constants.... ...ok
t/01setup........ ...ok
t/02prepare...... ...ok
t/03bind......... ...ok
t/04execute...... ...ok
t/04rows......... ...ok
t/05fetch........ ...ok
t/06disconnect... ...ok
t/07reuse........ ...ok
t/08txn.......... ...ok
t/09autocommit... ...ok
t/10chopblanks... ...ok
t/11quoting...... ...ok
t/12placeholders. ...ok
t/13pgtype....... ...ok
t/15column_info.. ...ok
t/15funct........ ...ok
t/15table_attrs.. ...ok
t/15table_info... ...ok
t/16pgbooltf..... ...# DBD::Pg version: 1.31
t/16pgbooltf..... ...ok
t/17arrays....... ...ok
t/99_pod......... ...skipped
all skipped: Test::Pod 1.00 required for testing POD
t/99cleanup...... ...ok
All tests successful, 1 test skipped.
Files=25, Tests=268, 34 wallclock secs (10.72 cusr + 0.99 csys = 11.71 CPU)

:)
On Mon, 1 Dec 2003, Barbara Lindsey wrote:
However, when I searched for DBD Pg on Google, it led me to a
DBD-Pg-1.22


Try

http://search.cpan.org/~rudy/DBD-Pg-1.31/Pg.pm

Not sure if there are a lot of dependency issues going to Pg 7.4 as I'm
in the process upgrading to 7.4 and all it's friends.

One other issue that comes when installing DBI and/or DBD is the from
the current (1.31) README file.

...

INSTALLATION:
-------------

By default Makefile.PL uses App:Info to find the location of the
PostgreSQL library and include directories. However, if you want to
control it yourself, define the environment variables POSTGRES_INCLUD E
and POSTGRES_LIB, or POSTGRES_HOME. Note that if you've compiled
PostgreSQL with SSL support, you must define the POSTGRES_LIB
environment varable and add "-lssl" to it, like this:

export POSTGRES_LIB="/usr/local/pgsql/lib -lssl"

...

Good luck to us both.
Rod
--
"Open Source Software - Usually you get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


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

Nov 12 '05 #6

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

Similar topics

1
3642
by: smsabu2002 | last post by:
Hi, I am facing the build problem while installing the DBD-MySql perl module (ver 2.9008) using both GCC and CC compilers in HP-UX machine. For the Build using GCC, the compiler error is produced due to the unknown GCC compiler option "+DAportable". For the Build using CC, the preprocessor error is produced due to the recursive declration of macro "PerlIO" in perlio.h file.
0
2393
by: Envex Developments | last post by:
Hey guys, I have a need to install the DBD::Pg Perl module on many shared web servers, which do not have PostgreSQL installed. Then the DBD::Pg module will just connect to a remote PostgreSQL database, hosted elsewhere. I'm having some problems doing this. First off, I modified the Makefile.PL, and added the three following links just above the check for environment variables:
0
2314
by: Envex Developments | last post by:
Hey guys, I have a need to install the DBD::Pg Perl module on many shared web servers, which do not have PostgreSQL installed. Then the DBD::Pg module will just connect to a remote PostgreSQL database, hosted elsewhere. I'm having some problems doing this. First off, I modified the Makefile.PL, and added the three following links just above the check for environment variables:
3
4137
by: sir.linying | last post by:
My php script is to call perl scipt which makes use of Spreadsheet::ParseExcel module to parse Excel file. I am able to launch php script from command line so that perl script can run and properly parse Excel file. However, when I put php script on server side and then launch php through client request, perl program can't run. Anyone has any suggestion re how to fix this problem? Thanks a lot, -Ying
14
2090
by: ccdetail | last post by:
http://www.tiobe.com/index.htm?tiobe_index Python is the 7th most commonly used language, up from 8th. The only one gaining ground besides VB in the top 10. We're glad, our app is written in python. It's free at http://pnk.com and it is a web timesheet for project accounting
21
34438
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
0
2240
by: UncleRic | last post by:
Environment: Mac OS X (10.4.10) on MacBook Pro I'm a Perl Neophyte. I've downloaded the XML::Parser module and am attempting to install it in my working directory (referenced via PERL5LIB env): PERL5LIB=/Users/Ric/Library/Perl/ ls XML-Parser-2.34/ XML-Parser-2.34.tar
1
5544
by: srikantvm | last post by:
Hi All, I am using perl, v5.8.8 built for MSWin32-x86-multi-thread and i tried installing the DBD-Oracle module but unable to install. Please find below the steps followed by me: 1) I first tried installing Oracle.pm using the Activestate PPM but, i got an connection error to the activestate perl module repository. 2) Then i tried changing the http_proxy, it seemed to work fine. I was able to connect to the activestate perl module...
3
4424
by: vijayarl | last post by:
Hi everyone, Requirement: Am trying to install the CPAN module : Spreadsheet::Excelsheet through PPM i have downloaded the Spreadsheet-ParseExcel-0.33.tar.gz file & uncompress it Problem: i have followed the steps mention in the http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlmodinstall.html for Win2k OS.
2
6391
by: somsub | last post by:
Hi all, Here is my samle code use strict ; use warnings ; use IO::Uncompress::Unzip ; When I compiled this three lines of code in win32 I got error like below.
0
9619
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10102
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.