installation problem with pgtap-0.90.0

113 views
Skip to first unread message

pgtester

unread,
Jan 10, 2012, 5:55:39 PM1/10/12
to pgxn-...@googlegroups.com
I am having trouble installing pgtap. Any help will be appreciated!
 
I installed a new version of perl in a local user folder.  ~username/localperl
I also downloaded and unziped the pgtap to the local folder ~username
 
after I cd ~username/pgtap-0.90.0, I did "make", it told me must install pgTap, so i did as told "cpan TAP::Parser::SourceHandler::pgTAP"
 
now i do make again, it still displays error:
 
Makefile:55: To use pg_prove, TAP::Parser::SourceHandler::pgTAP Perl module
Makefile:56: must be installed from CPAN. To do so, simply run:
Makefile:57: cpan TAP::Parser::SourceHandler::pgTAP
make: Nothing to be done for `all'
 
SO I ran cpan command again, displays:

TAP::Parser::SourceHandler::pgTAP is up to date (3.27).

 
I could not find other documentation on that.
 
Can anyone please  tell how to proceed? or in addition, any instructions on alternative ways to make, such as manually install pgtap?
 
THANKS.
 
 
 
 
 
 

David E. Wheeler

unread,
Jan 10, 2012, 6:01:48 PM1/10/12
to pgxn-...@googlegroups.com

Try `make PERL=~username/localperl/bin/perl`.

But note that the above is just a warning. The installer doesn't need TAP::Parser::SourceHandler::pgTAP, it just suggests you install it. If you do have it called but the installer can’t find it, it doesn’t matter, as long as you can use it.

HTH,

David


pgtester

unread,
Jan 10, 2012, 7:17:46 PM1/10/12
to pgxn-...@googlegroups.com
Thanks, David.
 
I have run psql -d mydb -f /path/to/pgsql/contrib/pgtap.sql successfully. But, how do I verify the installation has completed successfully?
 
Is there a testing script to run to compare the structure changes to the database? or I just need to verify the pgtap.sql is there?
 
 

David E. Wheeler

unread,
Jan 10, 2012, 7:29:30 PM1/10/12
to pgxn-...@googlegroups.com
On Jan 10, 2012, at 4:17 PM, pgtester wrote:

> I have run psql -d mydb -f /path/to/pgsql/contrib/pgtap.sql successfully. But, how do I verify the installation has completed successfully?

If it exited without error, it worked.

> Is there a testing script to run to compare the structure changes to the database? or I just need to verify the pgtap.sql is there?

You can \df to see a list of functions.

HTH,

David

pgtester

unread,
Jan 11, 2012, 7:18:10 PM1/11/12
to pgxn-...@googlegroups.com
got it all working well. nice package!! will do more tests with those functions. thanks.

David E. Wheeler

unread,
Jan 11, 2012, 7:40:01 PM1/11/12
to pgxn-...@googlegroups.com
On Jan 11, 2012, at 4:18 PM, pgtester wrote:

> got it all working well. nice package!! will do more tests with those functions. thanks.

W00t, glad to hear it!

David

Reply all
Reply to author
Forward
0 new messages