I installed perl using following command:
curl -L http://xrl.us/installperlnix | bash
after that i run following command to create soft link
ln -sf /usr/local/bin/perl /usr/bin/perl
now I'm trying to run commands like dir
, mkdir
, ll
, rm
, vi
but nothing seems to be working for me. also when i try to login into my shell i get following msg at startup:
Last login: Wed Apr 4 21:50:12 2012 from x.y.z.ip
-bash: perl: command not found
please help.
Here is system detail:
cat /proc/version
Linux version 2.6.18-274.18.1.el5.028stab098.1 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Sat Feb 11 15:30:41 MSK 2012
cat /etc/issue
CentOS 5.7 32 bit
Kernel \r on an \m
Don't know if perl was already installed or not. and now i can't check.
Perl was probably already installed, and who knows what that install script did to your environment to screw it up.
Two lessons here:
You may be able to recover by fixing your
~/.bashrc
file to a known-good state, but honestly, I'd recommend re-installing your OS and trying again.The error on login is from the following line being in your bashrc script:
You can likely fix perl by deleting
/usr/bin/perl
as the install script didn't put it in/usr/local/bin/perl
by default... not sure where theln
command was inspired from. You may have to consult your distro to fix Perl, not sure.The installation script for perlbrew is much longer than I'm willing to read through. If you're still having problems you're best bet is going to be wipe and restore from backup.