Perl DBD/DBI fun fun fun (NOT!)

SupermanInNY

Verified User
Joined
Sep 28, 2004
Messages
419
I have a user who wanted me to install the DBD/ DBI libraries.
I tried.
I've went through the process of installing CPAN and CPAN is now installed.
I've managed to get DBI installed,

I even got the DBD to (I think) to get installed

but, when I run a perl script, I'm getting errors:

driver Proxy
install_driver(Proxy) failed: Can't locate RPC/PlClient.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBD/Proxy.pm line 28.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBD/Proxy.pm line 28.
Compilation failed in require at (eval 11) line 3.
Perhaps a module that DBD::Proxy requires hasn't been fully installed


Any suggestions on how to Completely remove it and then re-install a fresh clean slate?

White Box 3.0
Pentium 4

Thanks,

-Alon.
 
Last edited:
toml said:
Looks like RPC::PlClient isn't installed. Try installing that module and trying again.

I know you are trying to help me,. thank you.
That much I was able to figure out myself :))
However, I don't know how to install specific module on my own.
That's where I need the real help.
 
Issue resolved.

I didn't know how to add more modules.

The process was made clear to me thanks to John of DA.

1. Go to CPAN website.
2. Type the name of the missing module.
I suggest if you get an error of missing module like:

Can't locate Net/Daemon/Log.pm in @INC .....

Put in the search

Net/Daemon/Log.pm

(yes.. with the slashes (/) ).
Then, when you find the module or somethign that looks like the module u'r looking for,. search for the Download of the module (I see it in the Upper right hand corner).

Save it somewhere like in /root/perltmp/
(just create a temp directory)
then, untar it

tar -xvzf thatfilename.tar.gz

Get into the newly created directory.

Then runn the following commands:

perl Makefile.PL

and hit Enter

Then enter the following:

make && make install

and hit Enter

That's it! Nothing beyond that.

Good luck to anyone who may benefit from this.

-Alon.
 
Of course the easiest way is to run
Code:
perl -MCPAN -e shell
Then at the prompt
Code:
install module
Where module is the module name you want to install, such as RPC::PlClient . If there any dependencies it will either prompt you to install them or install them automatically depending on how CPAN was configured.

If you never ran CPAN before, the first time it will prompt you how you want it to behave.
 
toml said:
Of course the easiest way is to run
Code:
perl -MCPAN -e shell
Then at the prompt
Code:
install module
Where module is the module name you want to install, such as RPC::PlClient . If there any dependencies it will either prompt you to install them or install them automatically depending on how CPAN was configured.

If you never ran CPAN before, the first time it will prompt you how you want it to behave.

I agree with you all the way with this option (similar to yum).

the problem that I encounter with this approach is the naming of the module, the syntax of the module name, the case sensitive issue.
I'm still not sure what is the name of the module, and if it is case sensitive.

Alas I've resolved my specific issue for this particular problem, but it would probably benefit someone else.
 
toml said:
Of course the easiest way is to run
Code:
perl -MCPAN -e shell
Then at the prompt
Code:
install module
Where module is the module name you want to install, such as RPC::PlClient . If there any dependencies it will either prompt you to install them or install them automatically depending on how CPAN was configured.

If you never ran CPAN before, the first time it will prompt you how you want it to behave.

I have tried this over and over and nothing.
 
SupermanInNY said:
Issue resolved.

tar -xvzf thatfilename.tar.gz

Get into the newly created directory.

Then runn the following commands:

perl Makefile.PL

and hit Enter

Then enter the following:

make && make install

and hit Enter

That's it! Nothing beyond that.

Good luck to anyone who may benefit from this.

-Alon.


-Alon.


The above got it working for me. (DBD::mysql)
 
Thought I had what I needed now we are getting:

Software error:
Can't locate Image/Size.pm in @INC (@INC contains: modules /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at login.cgi line 6.
BEGIN failed--compilation aborted at login.cgi line 6.

Any ideas?
 
Back
Top