On Tue, 2006-06-06 at 19:17 +0200, sfantar wrote:
> Hello everyone
> 
> I have started since today learning how to write cgi in Perl with this 
> doc : http://users.easystreet.com/ovid/cgi_course/lessons/lesson_one.html
> 
> I am running ubuntu on my pc and I installed the package mod_perl made 
> by ubuntu  a few days ago and I was able to run Perl scripts from the 
> Apache. I read this doc to do it : 
> http://perl.apache.org/docs/2.0/user/intro/start_fast.html
> 
> But while  keeping on reading docs about Perl programming, I discovered 
> that it is possible to install modules directly from the command line 
> 'perl -MCPAN -e shell'.
> 
> After installing some modules I didn't find in Ubuntu packages, the path 
> to per changed from originally /usr/bin/perl to /usr/local/bin/perl .
> 
> As a consequence,on my server where the perl scripts, I changed the path 
> to the Perl interpreter from /usr/bin/perl to /usr/local/bin/perl.
> 
> I have also reinstalled the Ubuntu mod_perl package but no change.
> Finally, each time I want to run a simple Perl script on my server, my 
> browser asks me to download it.
> 
> I don't know what to do.
> Thanks you very much for your help.
> 
> Sami
> 

Ubuntu uses it own software to install packages. The problem is its
defaults are not the same as CPAN's. You can also do it the hard way.
That is download the package from CPAN and uncompress it with:

  tar xvf <package>
 
Change directory to the one created and read the README* and INSTALL*
files. They should tell you how to change the defaults values, specially
the place to install the package. Then:

  perl <change_default_options> configure.PL
  make
  make test  # if the tests fail, don't do the next line
  sudo make install


-- 
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to