Click here to get back home

Installing a CPAN Module online

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Installing a CPAN Module online Richard L. Trethewey 06-26-2005
Posted by Richard L. Trethewey on June 26, 2005, 8:45 pm
Please log in for more thread options


I'm trying to install a CPAN module into my website's local cgi-bin directory
and I just can't seem to translate the common documentation into something I can
use online. I have unzipped the module files, and executed the accompanying
Makefile.pl, and it looks to me like I got the correct PREFIX setting in the
resulting "Makefile". But that's where I'm stuck. I need to simulate the common
CPAN command-line commands:

% make
% make test
% make install

remotely. I think I should be able to write a Perl script to execute these
commands, right? Host is running FreeBSD/Apache. I would appreciate any help.
Thanks!



Posted by Gunnar Hjalmarsson on June 26, 2005, 11:08 pm
Please log in for more thread options


Richard L. Trethewey wrote:
> I'm trying to install a CPAN module into my website's local cgi-bin
> directory and I just can't seem to translate the common documentation
> into something I can use online. I have unzipped the module files, and
> executed the accompanying Makefile.pl, and it looks to me like I got the
> correct PREFIX setting in the resulting "Makefile". But that's where I'm
> stuck. I need to simulate the common CPAN command-line commands:
>
> % make
> % make test
> % make install
>
> remotely. I think I should be able to write a Perl script to execute
> these commands, right? Host is running FreeBSD/Apache.

It sounds as if you have an account without shell access, and that you
are thinking of writing and uploading a CGI script that would install
the module for you. Even if that may be possible, under certain
conditions, the first thing you should do is finding out if it's a plain
Perl module, or a module that needs to be precompiled.

If the former is true, it may be sufficient to simply upload the *.pm
file(s). The docs for
http://search.cpan.org/perldoc?CGI%3A%3AContactForm include some
guidance that is applicable in that case.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


Posted by Richard L. Trethewey on June 29, 2005, 8:47 pm
Please log in for more thread options


Thanks for your help. I did manage to install the module without using Make. I
was also able to get some advice as to how I might use a shell script to execute
Make in the future.

Richard L. Trethewey

Gunnar Hjalmarsson wrote:
> Richard L. Trethewey wrote:
>
>> I'm trying to install a CPAN module into my website's local cgi-bin
>> directory and I just can't seem to translate the common documentation
>> into something I can use online. I have unzipped the module files, and
>> executed the accompanying Makefile.pl, and it looks to me like I got
>> the correct PREFIX setting in the resulting "Makefile". But that's
>> where I'm stuck. I need to simulate the common CPAN command-line
>> commands:
>>
>> % make
>> % make test
>> % make install
>>
>> remotely. I think I should be able to write a Perl script to execute
>> these commands, right? Host is running FreeBSD/Apache.
>
>
> It sounds as if you have an account without shell access, and that you
> are thinking of writing and uploading a CGI script that would install
> the module for you. Even if that may be possible, under certain
> conditions, the first thing you should do is finding out if it's a plain
> Perl module, or a module that needs to be precompiled.
>
> If the former is true, it may be sufficient to simply upload the *.pm
> file(s). The docs for
> guidance that is applicable in that case.
>



Posted by Gunnar Hjalmarsson on June 30, 2005, 4:10 am
Please log in for more thread options


Richard L. Trethewey wrote:
> Thanks for your help. I did manage to install the module without using
> Make. I was also able to get some advice as to how I might use a shell
> script to execute Make in the future.

Why would you want to use a shell script?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


Similar ThreadsPosted
CPAN Errors Installing Tk Module November 26, 2004, 9:56 pm
Search for a job online from command line May 31, 2007, 5:44 am
Need help installing via CPAN March 17, 2005, 3:33 pm
Trouble installing from CPAN November 20, 2006, 11:43 am
Installing WWW::Mechanize from CPAN shell May 24, 2007, 4:56 pm
Errors installing XML::Parser from CPAN on Solaris 9 September 7, 2005, 10:29 am
Issues Installing CPAN Modules on Win NT - Activestate Perl 5.61 November 19, 2004, 6:52 am
Installing DBI module for Perl 5.8.4 October 4, 2005, 6:26 am
Problem installing GD module April 4, 2006, 12:26 pm
Problem Installing Module April 4, 2007, 10:02 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap