Results 1 to 6 of 6
  1. #1

    Member Since
    Sep 18, 2006
    Question environment variable needs to be changed
    Hi everybody,
    I have a small but annoying problem with my environment variable PATH. This is what it looks like:

    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)

  2. #2

    novicew's Avatar
    Member Since
    Jan 04, 2006
    Hamburg, Germany
    MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)
    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.

  3. #3

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Groves, Texas
    13in macbook - 10.11 --- 21in. iMac 10.11 --- HP win 8
    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.
    Always listen to experts. They’ll tell you what can’t be done and why. Then do it!
    -Lazarus Long

  4. #4

    cazabam's Avatar
    Member Since
    Jun 06, 2006
    MacBook 2.0GHz White, 512MB RAM, 60GB HDD
    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

  5. #5

    Member Since
    Sep 18, 2006
    Thanks guys
    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


  6. #6

    Member Since
    Sep 18, 2006
    Talking found it
    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!

    My Os's: MacOSX Tiger, Ubuntu 6.06, WinXp, Vista RC1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. path environment variable
    By blackwaterdev in forum Switcher Hangout
    Replies: 5
    Last Post: 04-04-2013, 05:06 AM
  2. creating environment variables in environment.plist?
    By pines3 in forum OS X - Operating System
    Replies: 0
    Last Post: 01-25-2013, 03:17 AM
  3. Replies: 0
    Last Post: 01-23-2013, 08:39 PM
  4. Environment variable for local hostname?
    By gentinphilly in forum OS X - Operating System
    Replies: 1
    Last Post: 09-15-2011, 12:07 PM
  5. Display environment variable and custom script
    By russell23 in forum OS X - Operating System
    Replies: 5
    Last Post: 07-11-2009, 12:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts