Gossamer Forum
Home : General : Perl Programming :

Install a Perl Module for my site ???

Quote Reply
Install a Perl Module for my site ???
Hi !

My hosting company doesn't want to install the Perl Module for me so is there any way I can use the module without their installation ? I mean I already had the module (download from CPAN) - can login to my server thru FTP - how do I write the perl code or do any way so that I can call the module (Image::Size) ?

Thanks so much for your help.


Quote Reply
Re: Install a Perl Module for my site ??? In reply to
Installation instructions for installing the module in a local directory are available on CPAN

Quote Reply
Re: Install a Perl Module for my site ??? In reply to
What url are we supposed to use when setting up CPAN? It says to enter your favorite CPAN URL (or something like that) but I can't figure out what URL we're supposed to use.

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com
Quote Reply
Re: Install a Perl Module for my site ??? In reply to
Have you tried using http://www.cpan.org?

Regards,

Eliot Lee
Quote Reply
Re: Install a Perl Module for my site ??? In reply to
yes, otherwise I wouldn't have posted. Mad

but yes, it worked. When I looked at MyConfig.pm I noticed I had accidently put 'cpan.org' instead of 'http://www.cpan.org'.

Code:
Warning: You do not have permissions to install into /usr/lib/perl5/site_perl/i3
86-linux at /usr/lib/perl5/ExtUtils/Install.pm line 58.
Cannot forceunlink /usr/lib/perl5/site_perl/i386-linux/./auto/DBI/DBIXS.h: Permi
ssion denied at /usr/lib/perl5/File/Find.pm line 135
make: *** [pure_site_install] Error 13
/usr/bin/make install -- NOT OK
You may have to su to root to install the package
What do I do now? Is there a way to tell CPAN to install to a different directory?

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com
Quote Reply
Re: Install a Perl Module for my site ??? In reply to
I'm not 100% sure because I've never tried but I don't think you can install CPAN in another location. Why would you want to anyway?....Can you not use the existing version?

Also when I installed CPAN it gave me 5 example URL's to use as my favourites so I don't know why you didn't see them too.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Install a Perl Module for my site ??? In reply to
I'm not trying to install CPAN... that was already done, actually. I just had to set it up. What I need to do is tell CPAN to install modules to different directory since I'm not su and can't install to the servers perl libs. I guess that simply means I can only FTP them to a directory and hope they work when changing 'require' lines...

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com
Quote Reply
Re: Install a Perl Module for my site ??? In reply to
I am not sure if this will help you but I had to install some modules myself because my host wouldn't install them. I found this info at CPAN:

http://www.cpan.org/misc/cpan-faq.html#How_install_private

which tells you to do this:

foo@barbell$ perl Makefile.PL LIB=/home/foobar/mylib PREFIX=/home/foobar/mylib


I am not sure if that is what you are looking for but it worked for me.

Regards
~Charlie


Quote Reply
Re: Install a Perl Module for my site ??? In reply to
Ah yes I forgot about that - you can use PREFIX to specify a location which may work but again you may not have permission to do so but I guess it's worth a try.

I would have thought you could just upload the modules to your site as normal as that is how Links SQL uses modules. In the cgi script you can then use.....

use ModuleName.pm

Or if it is in another folder....

use Folder::ModuleName.pm

I'm just clutching at straws......

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Install a Perl Module for my site ??? In reply to
Hm.. I've tried just about everything now and still no go. still get 'segmentation fault' so I'm assuming the problem is from my host's end. On a similar note, at least from PHP it tells me 'permission denied to user camelsoup@localhost' when trying to connect to the SQL server. I've emailed my admin to try get this resolved.

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com