Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
how to set my path?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="icthy" data-source="post: 901223" data-attributes="member: 119205"><p>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". </p><p></p><p>Here's what I've done:</p><p></p><p>1) I created a .bash_profile and added the unison directory to my path: export PATH=${PATH}:/usr/local/unison-2.32.52. </p><p></p><p>2) I sourced .bash_profile</p><p></p><p>3) confirmation that it works: $ echo $PATH</p><p>/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/unison-2.32.52</p><p></p><p>But when I type "unison" in the command window, I get: $ unison</p><p>Error: can't find the Unison application using the Launch Services database.</p><p>Try launching Unison from the Finder, and then try this again.</p><p></p><p>I guess I don't quite get how the Mac does things (OS 10.5.8). Can anyone give me a hand? Thanks!</p></blockquote><p></p>
[QUOTE="icthy, post: 901223, member: 119205"] 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]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
how to set my path?
Top