LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-23-2008, 04:57 PM   #1
thenoone
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Problem with root PATH


Hi everyone,

I am using a Fedora 6 64 bit version with a multicore system. Months ago I installed intel c, c++ and fortran compilers but made a mistake when declaring the iccvars.sh which resulted in declaring in the root and to other user path the 32 bit icc instead of the 64 bit icc. This happened because I probably run

source /opt/intel/cc/xx.x.xx/bin/iccvars.ch

instead of

source /opt/intel/cce/xx.x.xx/bin/iccvars.ch

which is the 64 bit one.

The problem is that when I found it out I tried to fix it but as usually I made things worse and ended up with the following root Path

/opt/intel/fce/10.1.012/bin:/opt/intel/cce/10.1.012/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/intel/cce/10.1.012/bin/:/opt/intel/fce/10.1.012/bin/:/opt/intel/mkl/10.1.014/bin/:/opt/intel/cc/10.1.012/bin/:/root/bin

which has repeated entries. So I basically want to remove the doubled entries and the /opt/intel/cc/10.1.012/bin/ one since I want the /opt/intel/cce/10.1.012/bin/ to be the only one left. I have tried many things such as editing the bashrc, bash_profile and exporting path but nothing seems to work. Please if you have any idea on how to do this tell me.

Thanks
 
Old 10-24-2008, 02:29 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Try this as root in a terminal window:
Code:
export PATH=/opt/intel/cce/10.1.012/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
 
Old 10-24-2008, 05:53 AM   #3
thenoone
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I have done that but after logging out and logging in again I get the old path.
 
Old 10-24-2008, 11:32 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
To make the PATH permanent, add it to your ~/.bashrc or ~/.bash-profile (whichever is used by Fedora.
Code:
echo export PATH=/opt/intel/cce/10.1.012/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin >> ~/.bashrc
or
Code:
echo export PATH=/opt/intel/cce/10.1.012/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin >> ~/.bash-profile
Log out, then login, and it should work.
 
  


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
kernel root= path problem in menu.lst ktek Linux - General 4 10-08-2008 04:36 AM
kernel root path problem in menu.lst ktek Linux - General 0 10-06-2008 11:55 PM
pxe boot problem no root-path gfem Linux - Networking 6 03-22-2008 12:43 PM
Problem of root path while booting RH9 Linux Nishant Desai General 4 11-10-2006 10:18 AM


All times are GMT -5. The time now is 03:01 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