LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Perl (http://www.linuxquestions.org/questions/linux-software-2/perl-4175455610/)

R.Mostafa 03-26-2013 12:47 AM

Perl
 
I installed perl successfully and it gave this message:

Please modify your startup environment by adding:

/opt/ActivePerl-5.16/site/bin:/opt/ActivePerl-5.16/bin to PATH
/opt/ActivePerl-5.16/site/man:/opt/ActivePerl-5.16/man to MANPATH

How can I do this?

pan64 03-26-2013 02:08 AM

usually those variables should be set in /etc/profile. but it also depends on your login shell

Turbocapitalist 03-26-2013 04:26 AM

Something may be wrong if you had to install perl. It should be there by default on most (all?) distros. What distro are you using?

R.Mostafa 03-27-2013 10:57 PM

Quote:

Originally Posted by pan64 (Post 4918965)
usually those variables should be set in /etc/profile. but it also depends on your login shell

I have bash shell, Do you mean to add this to .bashrc?

chrism01 03-27-2013 11:31 PM

I'm with Turbocapitalist, its normally part of the std install.
what distro+version?
Code:

cat /etc/*release*
On Centos its /usr/bin/perl; try
Code:

which perl
Where did you get that perl from/how/why did you install it; AFAIK ActivePerl is usually only found on non-*nix eg MSWin.

R.Mostafa 03-28-2013 01:17 AM

Quote:

Originally Posted by chrism01 (Post 4920263)
I'm with Turbocapitalist, its normally part of the std install.
what distro+version?
Code:

cat /etc/*release*
On Centos its /usr/bin/perl; try
Code:

which perl
Where did you get that perl from/how/why did you install it; AFAIK ActivePerl is usually only found on non-*nix eg MSWin.


It is binary distribution version 5.16. I already had old one 5.8.8 but I need the latest one.
I get it from http://www.perl.org/get.html

chrism01 03-28-2013 01:50 AM

As pan64 said, just do as it says.
PATH (& MANPATH) might be set in /etc/profile (or /etc/profile.d dir) for ALL users.
For personal customisations, see your personal .bash_profile


All times are GMT -5. The time now is 09:17 PM.