Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd February 2005, 02:53 PM
karima Offline
Registered User
 
Join Date: Aug 2004
Posts: 20
environment variable

hi...

i'm trying to install a package in my computer but i'm having some troubles with the environment variables.

i want to know in which file i should declare it so it would be visible for the entire system (all users). i've tried with /etc/.profile and /etc/skel/.bash_profile and it doesn't work!

thanks in advance...

karima
Reply With Quote
  #2  
Old 2nd February 2005, 03:03 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
It should work if you use the correct syntax and the export command in .bash_profile. Like

VARIABLE='my_value'
export VARIABLE

Often environmental variables in code that is installed the old-fashioned way ( ./configure, make,.. ) are set in scripts that run during the installation process. You have to worry that some script is re-setting the value of an environmental variable and un-doing what you did in .bash_profile. Environmental variables can be set in /etc/profile and by the scripts in /etc/profile.d also.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #3  
Old 2nd February 2005, 04:45 PM
karima Offline
Registered User
 
Join Date: Aug 2004
Posts: 20
thanks for your suggestion. my problem was that i did set the value for these variables, but it only worked for my user account, and not for other users. i finally got it by adding the info in /etc/profile and now everyone can see them.

thanks for your help.

karima
Reply With Quote
Reply

Tags
environment, variable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOZILLA_FIVE_HOME environment variable sharique Using Fedora 1 15th February 2008 04:28 PM
environment variable nooit Using Fedora 2 13th May 2007 03:03 PM
How to set an environment variable royeo Using Fedora 1 1st December 2006 07:49 AM
Environment variable massimomm Using Fedora 2 19th April 2006 11:53 AM
add environment variable raptrex Using Fedora 6 15th May 2005 03:39 PM


Current GMT-time: 15:56 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat