Results 1 to 12 of 12
  1. #1
    how to set my path?

    Member Since
    Sep 04, 2009
    Posts
    3
    how to set my path?
    Hi, I'm new to Macs, coming from the unix/linux world. I just installed the unison file synchronizer, which runs fine if I type it's location explicitly /usr/local/unison-2.32.52/unison. But I can't seem to set the path so that I just need to type "unison".

    Here's what I've done:

    1) I created a .bash_profile and added the unison directory to my path: export PATH=${PATH}:/usr/local/unison-2.32.52.

    2) I sourced .bash_profile

    3) confirmation that it works: $ echo $PATH
    /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/unison-2.32.52

    But when I type "unison" in the command window, I get: $ unison
    Error: can't find the Unison application using the Launch Services database.
    Try launching Unison from the Finder, and then try this again.

    I guess I don't quite get how the Mac does things (OS 10.5.8). Can anyone give me a hand? Thanks!

  2. #2
    how to set my path?
    leopard-user1's Avatar
    Member Since
    Jan 27, 2009
    Location
    New York, NY
    Posts
    531
    Specs:
    17" MacBook Pro, 2.5 GHz Intel Core 2 Duo Processor, 2 GB 667 MHz DDR2 SDRAM, not unibody
    If you are already in "/usr/local/unison-2.32.52", you can type "./unison" to go into the "unison" folder.

    (from scienceteecher.com)
    17" MacBook Pro, OSX 10.6.2 Snow Leopard

  3. #3
    how to set my path?

    Member Since
    Sep 04, 2009
    Posts
    3
    Thanks. I was hoping to set the path so I can type "unison" from any directory. For some reason, the OS isn't recognizing the $PATH variable. Also, I'd just like to know so I can better understand how Macs work.

  4. #4
    how to set my path?

    Member Since
    Sep 04, 2009
    Posts
    3
    I resolved my issue. I was setting the path correctly. But the problem was there was a dead link to /usr/local/bin/unison, and that was being found first, before the /usr/local/uinson-2.32.52.

    Just out of curiosity, is the lack of much response to my question because it was so dumb, or because most people don't use their macs as a unix-like machine?

  5. #5
    how to set my path?
    pigoo3's Avatar
    Member Since
    May 20, 2008
    Location
    U.S.
    Posts
    31,485
    Specs:
    2011 13" MBP 2.3ghz, 8gig ram, OS 10.7.5
    Quote Originally Posted by icthy View Post
    Just out of curiosity, is the lack of much response to my question because it was so dumb, or because most people don't use their macs as a unix-like machine?
    EXACTLY...we don't set "paths" in the Macintosh world!!!
    (at least most Mac users don't)

    - Nick
    p.s. You're giving me the "shakes" just hearing the words "set path"!!!
    - Too many "beachballs", read this: Beachballs
    - Computer seems slower than it used to? Read this for some slow computer tips: Speedup
    - Almost full hard drive? Some solutions. Out of Space
    - Apple Battery Info. Battery

  6. #6
    how to set my path?
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    I'm normally all over these if I see em

    but I didn't see this one. You just don't see a lot of *nix geeks, so geeky *nix stuff just disappears.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  7. #7
    how to set my path?
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,396
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Some of use our Macs as Unix machines (me included).

    I'm like Dysfunction - I would have answered this but I missed it. All's good though!
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  8. #8
    how to set my path?
    pigoo3's Avatar
    Member Since
    May 20, 2008
    Location
    U.S.
    Posts
    31,485
    Specs:
    2011 13" MBP 2.3ghz, 8gig ram, OS 10.7.5
    Quote Originally Posted by vansmith View Post
    Some of use our Macs as Unix machines (me included).
    Ooh I know you guys are out there! Maybe some day I'll give it a try.

    - Nick
    - Too many "beachballs", read this: Beachballs
    - Computer seems slower than it used to? Read this for some slow computer tips: Speedup
    - Almost full hard drive? Some solutions. Out of Space
    - Apple Battery Info. Battery

  9. #9
    how to set my path?
    dtravis7's Avatar
    Member Since
    Jan 04, 2005
    Location
    Modesto, Ca.
    Posts
    28,480
    Specs:
    iMac late 2007 10.11.b4, iMac 2008 10.10.5, Macbook2007 10.7.5, Mac Mini 10.7.5, iPhone 3GS Note 8!!
    I was/am quite good with the MS DOS path statement and batch files! Does MS Dos count?

  10. #10
    how to set my path?
    bobtomay's Avatar
    Member Since
    Dec 22, 2006
    Location
    Texas, where else?
    Posts
    26,209
    Specs:
    15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '11 1.8 i7 4GB 10.10; 21" iMac '13 2.9 i5 8GB 10.10; 5s & 5c
    I'm part of the masses - pretty much strictly a GUI guy.
    When Win3.1 hit my first machine, I left the command line behind as fast as I could.

    Don't even know what you mean by "set my path" or a ".bash_profile".
    I cannot be held responsible for the things that come out of my mouth.
    In the Windows world, most everything folks don't understand is called a virus.

  11. #11
    how to set my path?
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,396
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Quote Originally Posted by dtravis7 View Post
    I was/am quite good with the MS DOS path statement and batch files! Does MS Dos count?
    Aaahhhhh......no.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  12. #12
    how to set my path?

    Member Since
    Sep 10, 2008
    Posts
    61
    If you want to manually set (or see) your path, edit /etc/paths. sudo nano /etc/paths

    Count me as another command line junkie who uses the Mac as a very high quality hardware Unix machine.

    What's this Gooie that everyone keeps talking about?

    Konan

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to set my Finder file screen to original set-up
    By nflder in forum Switcher Hangout
    Replies: 11
    Last Post: 07-07-2015, 01:37 AM
  2. "Use UNC path from Active Directory" not opening the entire path
    By jjw3579 in forum OS X - Operating System
    Replies: 1
    Last Post: 09-22-2011, 11:12 AM
  3. How to set CLASSPATH, or PATH
    By jhoomjhoom in forum OS X - Operating System
    Replies: 7
    Last Post: 06-06-2010, 10:54 AM
  4. Replies: 1
    Last Post: 02-28-2010, 11:05 AM
  5. how can i set the path?
    By Bo Eddy in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 05-12-2004, 10:45 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
  •