in reply to broke my perl? :(
It seems that the perl interpreter cannot be found in the locations bash looks for it. You will need to check where perl is and then adjust your Perl scripts and possibly your bash environment to also look for it there.
This shell command tries to run perl in /usr/bin/perl. If /usr/bin/perl does not exist anymore, your system is likely severely broken.
/usr/bin/perl -wle 'print "Still here"'
If that outputs an error and you are on a Unix system, consult with somebody local to you on how to restore your machine to working order. That person should also give you either an introduction to Unix or revoke your rights to make changes to /usr.
If /usr/bin/perl exists and is runnable as is (see above), then it is likely that you just messed up your bash profile, by either setting up an alias for perl to point to something other than /usr/bin/perl. You can find that by typing:
alias
This will list all the aliases defined for your shell session. If you find that you defined an alias for Perl, change that alias, or even better, remove it.
If /usr/bin/perl exists but is a symbolic link to /gsc/bin/perl, you will need to check that /gsc/bin/perl exists and is runnable (see above).
As a general practice, I would adjust the $PATH variable to include another directory instead of copying my scripts into a directory that is already in $PATH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: broke my perl? :(
by megnetz (Novice) on Aug 25, 2010 at 09:45 UTC | |
by marto (Cardinal) on Aug 25, 2010 at 10:24 UTC | |
by moritz (Cardinal) on Aug 25, 2010 at 10:02 UTC | |
by megnetz (Novice) on Aug 25, 2010 at 11:25 UTC | |
by marto (Cardinal) on Aug 25, 2010 at 11:38 UTC | |
by megnetz (Novice) on Aug 25, 2010 at 11:46 UTC | |
| |
|
Re^2: broke my perl? :(
by megnetz (Novice) on Aug 25, 2010 at 10:48 UTC | |
by marto (Cardinal) on Aug 25, 2010 at 10:51 UTC | |
by megnetz (Novice) on Aug 25, 2010 at 11:33 UTC |