LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2004, 05:30 PM   #1
boydasilva
LQ Newbie
 
Registered: Nov 2004
Location: Manchester
Distribution: Suse 10.0
Posts: 27

Rep: Reputation: 15
set path problems


I seem to have messed up somewhere. I've been trying to install a program called EMAN on my machine. The read me for EMAN said that I needed to make 2 modifications the .cshrc (or .tcshrc):
set the LD_LIBRARY_PATH to include $HOME/EMAN/lib and set
executable path to include $HOME/EMAN/bin.

It suggested that I typed the following:

setenv LD_LIBRARY_PATH $HOME/EMAN/lib
set path = (. $HOME/EMAN/bin $HOME/bin /bin etc.)

after set path I typed $HOME/EMAN/bin

I must have done something wrong, since now when I type simple commands like ls -l or man i get a message saying the command cannot be found. Any ideas what schoolboy error it is that I have made?
 
Old 12-09-2004, 12:03 PM   #2
jimmydorsey
LQ Newbie
 
Registered: Jul 2003
Distribution: mandrake 9.1
Posts: 11

Rep: Reputation: 0
Opps...

I know what you did.

I don't know how to fix it. It depends on what was in your path.
You overwrote your path instead of adding to it.

This is a month old, so your well past this now -- hopefully. Restoring your path could take a little. You'll need to know where everything is to "run" anything except what you just installed. add /bin back pretty quick and that will solve your "ls" problem.

I am wondering, did you shut this off before you figured it out? What happened? Did it boot? I am suspecting you had a lot of errors.

good luck and I hope you are actually past this.

stephen.
 
Old 12-09-2004, 01:00 PM   #3
bostontech
LQ Newbie
 
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23

Rep: Reputation: 15
I would add the following:

setenv LD_LIBRARY_PATH $HOME/EMAN/lib
setenv $PATH:$HOME/EMAN/bin:$HOME/bin:/bin:/etc

Notice that I also removed the "." you had set at the beginning of the path. It is not a good idea to include this in you path for security reasons. If you really need it I would put it at the end of your path.

Let me know if this helps.

BTG
 
Old 12-09-2004, 06:28 PM   #4
boydasilva
LQ Newbie
 
Registered: Nov 2004
Location: Manchester
Distribution: Suse 10.0
Posts: 27

Original Poster
Rep: Reputation: 15
Oops. I'm on two threads. Sorry folks. the other thread is:
http://www.linuxquestions.org/questi...hreadid=259332
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 01:24 AM
9.1 set $PATH seingoku Slackware 6 02-06-2004 04:12 PM
How to set PATH How do I set PATH environment variable? Tranquil Linux - Newbie 3 11-02-2003 03:52 AM
$PATH!? how to set these PATH(s)!? sirpelidor Red Hat 5 10-25-2003 05:00 PM
How to set $PATH for RH 8 Quest Linux - Software 3 07-12-2003 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration