LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Path Variable (http://www.linuxquestions.org/questions/linux-newbie-8/path-variable-636153/)

answerme 04-18-2008 01:01 AM

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


blackhole54 04-18-2008 01:14 AM

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.)

answerme 04-18-2008 04:39 AM

Hi again
I edited .bash_profile file and wrote those export command
but still no change giving same message to set path.

answerme 04-18-2008 04:52 AM

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


bigrigdriver 04-18-2008 09:35 AM

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).

laucian 04-18-2008 10:00 AM

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

blackhole54 04-19-2008 02:35 AM

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.


All times are GMT -5. The time now is 07:43 PM.