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 - Development and Darwin Discussion and questions about development for Mac OS X.

how to set my path?


Post Reply New Thread Subscribe

 
Thread Tools
icthy

 
Member Since: Sep 04, 2009
Posts: 3
icthy is on a distinguished road

icthy is offline
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!
QUOTE Thanks
leopard-user1

 
leopard-user1's Avatar
 
Member Since: Jan 27, 2009
Location: New York, NY
Posts: 531
leopard-user1 will become famous soon enough
Mac Specs: 17" MacBook Pro, 2.5 GHz Intel Core 2 Duo Processor, 2 GB 667 MHz DDR2 SDRAM, not unibody

leopard-user1 is offline
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
QUOTE Thanks
icthy

 
Member Since: Sep 04, 2009
Posts: 3
icthy is on a distinguished road

icthy is offline
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.
QUOTE Thanks
icthy

 
Member Since: Sep 04, 2009
Posts: 3
icthy is on a distinguished road

icthy is offline
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?
QUOTE Thanks
pigoo3

 
pigoo3's Avatar
 
Member Since: May 20, 2008
Location: U.S.
Posts: 26,730
pigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond repute
Mac Specs: 13" MB 2.4ghz, 2gig ram, OS 10.7.5

pigoo3 is offline
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"!!!

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

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,879
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
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
QUOTE Thanks
pigoo3

 
pigoo3's Avatar
 
Member Since: May 20, 2008
Location: U.S.
Posts: 26,730
pigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond repute
Mac Specs: 13" MB 2.4ghz, 2gig ram, OS 10.7.5

pigoo3 is offline
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

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

 
dtravis7's Avatar
 
Member Since: Jan 04, 2005
Location: Modesto, Ca.
Posts: 27,621
dtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond reputedtravis7 has a reputation beyond repute
Mac Specs: iMac 2.4 C2D 10.9.4, iMac 2.16 C2d 10.6.8, Macbook2007 10.8.4, Mac Mini 10.8.4, iPhone 3GS Note 8!!

dtravis7 is online now
I was/am quite good with the MS DOS path statement and batch files! Does MS Dos count?
QUOTE Thanks
bobtomay

 
bobtomay's Avatar
 
Member Since: Dec 22, 2006
Location: Texas, where else?
Posts: 25,021
bobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond repute
Mac Specs: 15" MBP 2.33 C2D 256 4GB, MBA 13" i7 1.8, MB 2.0 2GB, Nano 4th, 3GS, iPad 1

bobtomay is offline
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.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,879
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
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
QUOTE Thanks
Konan

 
Member Since: Sep 10, 2008
Posts: 61
Konan is an unknown at this point

Konan is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Getting KVO to update | NSMutableArry and “EXC_BAD_ACCESS” »
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
Aperture 2: updating vault path mmatalis Images, Graphic Design, and Digital Photography 0 02-08-2009 02:23 PM
Default path changed kevinchkin OS X - Development and Darwin 2 02-02-2009 11:49 PM
Computer keeps going to sleep even though it is set up not to tcd2004 Apple Desktops 0 01-22-2009 02:27 PM
please review my process to create a raid set briang Apple Desktops 2 10-17-2008 03:03 PM
Not able to set environment variables using .profile file. Shambhavi OS X - Operating System 3 04-08-2006 04:15 AM

All times are GMT -4. The time now is 11:19 AM.

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?