LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-18-2008, 01:01 AM   #1
answerme
Member
 
Registered: Apr 2008
Posts: 84

Rep: Reputation: 24
Path Variable


Hi All
Iam installing crunch accelerated floating point support to a
softfloat version of GCC-3.4.3
But iam facing problem as iam typing command
make install
Iam getting error

Code:
please set PATH variable to point to your softfloat version of GCC-3.4.3 !
please also set CROSS variable to a suitable command prefix like 'arm-elf' or 'arm-linux' 
this version cannot be used with crunch-softfloat
make: *** [install] Error 1
I dont know how to set the PATH & where it has to set
The PATH is as wrrttien in README.TXT

Code:
export PATH=/home/tools/arm/crunch/ep93xx-d1/bin:$PATH
export CROSS=arm-linux
 
Old 04-18-2008, 01:14 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
You can just type (or paste!) those commands into the shell where you are giving the make command. If you are going to be doing this a lot and don't want to keep entering it, you can add it to your ~/.bash_profile file and it will be set everytime you log in. (The tilde (~) just means the file is in your home directory.)
 
Old 04-18-2008, 04:39 AM   #3
answerme
Member
 
Registered: Apr 2008
Posts: 84

Original Poster
Rep: Reputation: 24
Hi again
I edited .bash_profile file and wrote those export command
but still no change giving same message to set path.
 
Old 04-18-2008, 04:52 AM   #4
answerme
Member
 
Registered: Apr 2008
Posts: 84

Original Poster
Rep: Reputation: 24
Arrow

This is my .bash_profile file

Code:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
export PATH=/home/tools/arm/crunch/ep93xx-d1/bin:$PATH //here i put 
export CROSS=arm-linux                           //those comannd. 

export PATH
unset USERNAME
 
Old 04-18-2008, 09:35 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,745

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
When you make a change to your shell environment (.bashrc, .bash_profile), the change doesn't take effect until you do something, such as
a) reload the environment with the command: source .bashrc, or, source .bash_profile
b) logout and login
c) restart the X server (ctrl+alt+backspace)
d)reboot (usually not necessary).
 
Old 04-18-2008, 10:00 AM   #6
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
please type this in your terminal window

PATH=$PATH:/home/tools/arm/crunch/ep93xx-d1/bin

since you are only "installing" the compiler, you don't need to have it in your PATH settings permanently
 
Old 04-19-2008, 02:35 AM   #7
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Simply typing or pasting those commands in the shell you are running make from is sufficient for a one time shot. I gave instructions for adding it to ~/.bash_profile file only if (for some reason) you plan on doing this a lot. In that case after modifying your .bash_profile file, you should log off and back on. But again, that is only a labor saving option if you find yourself repeatedly executing these commands.

Last edited by blackhole54; 04-19-2008 at 03:01 AM. Reason: typos
 
  


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
Changing my PATH variable. sjordan Linux - General 2 03-06-2007 10:08 AM
PATH variable suavecu Linux - Software 11 01-28-2006 12:44 AM
PATH variable jk21 Linux - Newbie 1 09-28-2004 02:48 PM
$path variable ? moby Linux - Newbie 3 06-01-2004 03:18 PM
the path variable mjkramer Linux - Newbie 4 10-18-2003 07:18 AM


All times are GMT -5. The time now is 09:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration