Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Trouble with Test::MockDBI

by Zenzizenzizenzic (Scribe)
on Nov 27, 2018 at 22:49 UTC ( #1226431=perlquestion: print w/replies, xml ) Need Help??

Zenzizenzizenzic has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to set up testing of database calls, and I am unable to get the Test::MockDBI to work completely. I was able to download that module and get it to install, but it looked for Clone. This I was unable to get to install. The setup at work has all the Perl installtion default to a build server (Solaris 10). The server I'm using is RHEL. The file system the install would go to is read only on the Linux side, write only on the local, Solaris side. When I did the install Clone command, the file seems to have installed correctly, but is the Solaris version. Is there a way to get the Linux version in this setup? Thank you

Replies are listed 'Best First'.
Re: Trouble with Test::MockDBI
by stevieb (Canon) on Nov 27, 2018 at 23:37 UTC

    Please show us, in <code></code> tags, the installation commands you tried, and the resulting error messages if any.

    We're going to need more details to better understand what you're attempting, so perhaps even including your test code (again, within code tags) would help us.

      To install, I ran
      perl -MCPAN -e shell install Clone
      Response:
      Reading '/home/appl/perl/.cpan/Metadata' Database was generated on Tue, 27 Nov 2018 12:29:03 GMT Fetching with LWP: http://mirrors.syringanetworks.net/CPAN/authors/01mailrc.txt.gz Reading '/home/appl/perl/.cpan/sources/authors/01mailrc.txt.gz' ...................................................................... +......DONE Fetching with LWP: http://mirrors.syringanetworks.net/CPAN/modules/02packages.details.txt +.gz Reading '/home/appl/perl/.cpan/sources/modules/02packages.details.txt. +gz' Database was generated on Wed, 28 Nov 2018 12:17:02 GMT ............. New CPAN.pm version (v2.16) available. [Currently running version is v2.00] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. ...............................................................DONE Fetching with LWP: http://mirrors.syringanetworks.net/CPAN/modules/03modlist.data.gz Reading '/home/appl/perl/.cpan/sources/modules/03modlist.data.gz' DONE Writing /home/appl/perl/.cpan/Metadata Clone is up to date (0.41).
      When I ran the test script (no tests actually in yet, just the use statements to validate the install)
      Reading '/home/appl/perl/.cpan/Metadata' Database was generated on Tue, 27 Nov 2018 12:29:03 GMT Fetching with LWP: http://mirrors.syringanetworks.net/CPAN/authors/01mailrc.txt.gz Reading '/home/appl/perl/.cpan/sources/authors/01mailrc.txt.gz' ...................................................................... +......DONE Fetching with LWP: http://mirrors.syringanetworks.net/CPAN/modules/02packages.details.txt +.gz Reading '/home/appl/perl/.cpan/sources/modules/02packages.details.txt. +gz' Database was generated on Wed, 28 Nov 2018 12:17:02 GMT ............. New CPAN.pm version (v2.16) available. [Currently running version is v2.00] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. ...............................................................DONE Fetching with LWP: http://mirrors.syringanetworks.net/CPAN/modules/03modlist.data.gz Reading '/home/appl/perl/.cpan/sources/modules/03modlist.data.gz' DONE Writing /home/appl/perl/.cpan/Metadata Clone is up to date (0.41).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1226431]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-10-24 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?