LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2009, 07:35 PM   #1
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Rep: Reputation: 5
Question 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?
 
Old 02-11-2009, 08:05 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
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.

Last edited by i92guboj; 02-11-2009 at 08:06 PM.
 
Old 02-11-2009, 08:06 PM   #3
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
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.
 
Old 02-12-2009, 06:17 AM   #4
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
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
 
Old 10-07-2016, 09:52 AM   #5
waelchargui
LQ Newbie
 
Registered: Oct 2016
Posts: 1

Rep: Reputation: Disabled
can you help me installing FDR2 tool, i got the same error and am not able to fix it.
 
Old 10-11-2016, 09:42 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
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.
 
  


Reply

Tags
env


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
Environment Variables Woodsman Slackware 3 12-27-2008 01:49 PM
Getting all environment variables Harlin Linux - General 2 10-06-2006 12:30 PM
environment variables Prakhardeep Linux - Software 3 10-06-2004 03:30 AM
environment variables. jISV Linux - General 0 04-05-2002 06:01 AM
environment variables da Perp Linux - Newbie 5 01-23-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 PM.

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
Open Source Consulting | Domain Registration