Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: broke my perl? :(

by megnetz (Novice)
on Aug 25, 2010 at 09:45 UTC ( [id://857128]=note: print w/replies, xml ) Need Help??


in reply to Re: broke my perl? :(
in thread broke my perl? :(

Good tip on using another directory for my own scripts. Last time I was meddling with the /usr I broke my ubuntu OS and probably my hard drive.

I tried executing the /usr/bin/perl -wle 'print "Still here"' which gave the same error as before. The file exists however and is not a mirror to /gsc/bin/perl (/gsc doesn't exist).

<code> perl -wle 'print "Still here"' <\code>

Yeilds:
bash: /usr/bin/perl: /gsc/bin/perl: bad interpreter: No such file or directory

Unfourtunately I'm the only one in my office using unix. Is there anything else I can do before reinstalling Ubuntu?

Replies are listed 'Best First'.
Re^3: broke my perl? :(
by moritz (Cardinal) on Aug 25, 2010 at 10:02 UTC
    Is there anything else I can do before reinstalling Ubuntu?

    You can try

    sudo aptitude reinstall perl

    I don't know if that will help, but it's certainly worth a try.

    Perl 6 - links to (nearly) everything that is Perl 6.
      Thanks! Worked like a charm! The /usr/bin/perl is still the old script i copied there but  perl -v again gives reasonable output. I guess this means apt-get is now separate from perl in newer ubuntu (i have lucid_lynx).

      Another question, now I have created a new directory for my own scripts. How can I direct these scripts to perl since perl is no longer in /usr/bin/perl and neither /gsc/bin/perl?

        "Another question, now I have created a new directory for my own scripts. How can I direct these scripts to perl since perl is no longer in /usr/bin/perl and neither /gsc/bin/perl?"

        Going back to my earlier reply, what does which perl show now? If you've reinstalled perl /usr/bin/perl should not be a script you put there previously.

Re^3: broke my perl? :(
by marto (Cardinal) on Aug 25, 2010 at 10:24 UTC

    The ubuntu forums have many posts on the topic of people messing up their system by messing around with the system perl. Mark it for reinstallation in Synaptic. Consider installing your own perl to avoid any system issues, see Re: LWP::UserAgent @ Ubuntu 8.04 64-Bit.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://857128]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found