LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Environment variables (https://www.linuxquestions.org/questions/linux-software-2/environment-variables-704018/)

tombelcher7 02-11-2009 07:35 PM

Environment variables
 
Trying to install FDR2 for the trace refinement of CSP Scripts so far have downloaded the software....

Before I go into this I'll tell you all my setup so far:

Fedora core 10 as a guest (virtualized) OS on top of Vista (Host)

Have extracted the fdr2 folder from the tar.gz archive and have placed it on my desktop. Have tried to install using terminal:

cd /home/Tom/Desktop/fdr2/scripts/fdr2

chmod 755 fdr2

./fdr2


Though it comes up with

FDRHOME must be set to the directory containing the fdr installation.

I have researched this and have found that fdrhome needs to be set as an environment variable; unfortunately I have no idea how to set env. vars in fedora core 10, can any1 help?

i92guboj 02-11-2009 08:05 PM

In linux you can set shell variables in many ways, depending on the shell you use (there are many).

You can set it at run time by putting it in front of the command itself, this way:

Code:

FDRHOME=/path/to/fdr2/ ./frd2
If you use bash as your shell, you can also add it on your bash rc file(s) so you don't have to write it every time you can to invoke that command. You can add this line:

Code:

export FDRHOME="/path/to/fdr2"
In either your ~/.bashrc and/or your ~/.bash_profile files. After that you need to restart your shell. The easiest would be this:

Code:

exec bash
That will close the current shell and substitute it with a new one. Then you can do this to check that the variable has been correctly set:

Code:

echo $FDRHOME
It should echo the path you've set. Remember to substitute the example path I posted by the real one.

sarin 02-11-2009 08:06 PM

to set an env variable
export VAR=value

But this software might need write access to a folder. So, try creating a new folder
mkdir /home/Tom/fdr
export FDRHOME=/home/Tom/fdr
Try running the install program after that.

You can put "export FDRHOME=/home/Tom/fdr" inside /home/Tom/.bashrc so that it is set when you login next time.

tombelcher7 02-12-2009 06:17 AM

Thanks for your help once I had installed dnmouse's autoten rpm and used the add sudo with password option I was then able to run your specified command.




Many thanks,


Tom

waelchargui 10-07-2016 09:52 AM

can you help me installing FDR2 tool, i got the same error and am not able to fix it.

i92guboj 10-11-2016 09:42 AM

Please, look at the info above, and tell us what's failing and what did you try. Output messages will help us to help you. Describe exactly what you did.


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