New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - environment variable needs to be changed


Post Reply New Thread Subscribe

 
Thread Tools
chris_101010

 
Member Since: Sep 18, 2006
Posts: 7
chris_101010 is on a distinguished road

chris_101010 is offline
Hi everybody,
I have a small but annoying problem with my environment variable PATH. This is what it looks like:
/sw/bin:/sw/sbin:/usr/local/bin:/usr/local/sbin/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin

As you will notice, there is a ":" missing between "/usr/local/sbin" and "/usr/local/mysql/bin", which I can of course correct by EXPORTing the correct PATH-statement when I open a terminal, but I would like to correct the error, so the PATH is correct to start with.

Can anyone point me in the right direction where I can change this?

Thanks in advance.
Chris (one week mac user)
QUOTE Thanks
novicew

 
novicew's Avatar
 
Member Since: Jan 04, 2006
Location: Hamburg, Germany
Posts: 1,385
novicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to all
Mac Specs: MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)

novicew is offline
AFAIK, the environment variables are defined in two locations
1. Root of your Home folder ~.
2. System root /etc/profiles

By editing one or both you should be able to introduce new PATHS.

More details can be found here.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,458
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 13in macbook - 10.10.1

cradom is offline
Don't edit the one in /etc/profiles as it will affect all users on the computer. If you don't have a .bashrc or .bash_profile in your home folder, copy them from /etc/profiles to your home folder and edit them there.

Even if you are the only user on the machine, there are some Fink apps that install "users" for different reasons.

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
cazabam

 
cazabam's Avatar
 
Member Since: Jun 06, 2006
Posts: 1,153
cazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of light
Mac Specs: MacBook 2.0GHz White, 512MB RAM, 60GB HDD

cazabam is offline
If you want to check for which file it is, do this in terminal:

cd /etc
grep 'usr/local/mysql' *

Then edit the relevant file
QUOTE Thanks
chris_101010

 
Member Since: Sep 18, 2006
Posts: 7
chris_101010 is on a distinguished road

chris_101010 is offline
I keep forgetting it's actually a BSD-core underneath... of course I'll be able to find it with grep. And to say I use Ubuntu every day on my regular system! :dummy:
I bought this mac mini on eBay for a small price, as I wanted to try out MacOSX, and so far it's great. You just have to get used to it's own quirks and ways of doing things.
So far, the only thing that annoys me a bit is that I can only stretch a window from the right bottom corner, syas a lot really if that's the only thing after more than a week. If I still love it after 6 months, I might get myself a more powerful version

bye,
Chris.
QUOTE Thanks
chris_101010

 
Member Since: Sep 18, 2006
Posts: 7
chris_101010 is on a distinguished road

chris_101010 is offline
Actually, the piece of the PATH that needed changing was in my personal folder in .bashrc.login. Must have been a bug in the MySQL installation !? I certainly hadn't edited the file before myself. anyway, it's fine now, the PATH is set correctly when I log in. I only noticed because the shell couldn't find 'mysql'.

Thanks for pointing me in the right direction.
Oh, I found another thing that annoys me. You can't see hidden files from the Finder, and I haven't found a way to enable them. So, I use TextMate's 'Open'-dialog, which has the option to view also the hidden files and directories.
If anyone knows how to for instance view all files like '/etc/*', I would appreciate knowing about it!

bye,
Chris.
My Os's: MacOSX Tiger, Ubuntu 6.06, WinXp, Vista RC1
QUOTE Thanks

Post Reply New Thread Subscribe


« sh process consuming all my cpu!! | Changing the fonts »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
path environment variable blackwaterdev Switcher Hangout 5 04-04-2013 05:06 AM
Can't install OS X software after I changed the hard drive! mmm OS X - Operating System 1 06-28-2006 09:42 PM
Safari changed the font on me. Mister-Twoster Switcher Hangout 3 06-10-2006 05:39 PM
Sig Changed iMacMan Community Suggestions and Feedback 17 05-16-2006 09:09 PM
Playboy names Mac top product 'that changed the world' Murlyn Apple Rumors and Reports 5 12-03-2003 12:29 AM

All times are GMT -4. The time now is 09:23 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?