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
Ruby with MacPorts in bash help?
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="whiteunibrow" data-source="post: 796567" data-attributes="member: 80142"><p>Well i just installed MacPorts on my new Macbook pro, and i downloaded the</p><p>ruby port using sudo port install ruby.</p><p>ok so... how do i use it? when i type "ruby helloworld.rb" it runs it using</p><p>the 1.8.6 that came with Leopard, not the 1.8.7 that MacPorts installed....</p><p>...or at least I think so, since when i typed "ruby --version" it said 1.8.6.</p><p></p><p>I am using bash. How do i make it so that when i type "ruby" it looks in the</p><p>MacPorts directory and when i type "man ruby" it looks at the right page</p><p>(even though they may be identical)?</p><p></p><p>I am a UNIX/bash noob as well, as a MacPorts noob. I dont even know where in the /opt directory (for MacPorts) the ruby installation went...</p><p></p><p>I would appreciate any help, even something like "try posting over at [other site]" although the MacPorts forums are not very friendly at all.</p></blockquote><p></p>
[QUOTE="whiteunibrow, post: 796567, member: 80142"] Well i just installed MacPorts on my new Macbook pro, and i downloaded the ruby port using sudo port install ruby. ok so... how do i use it? when i type "ruby helloworld.rb" it runs it using the 1.8.6 that came with Leopard, not the 1.8.7 that MacPorts installed.... ...or at least I think so, since when i typed "ruby --version" it said 1.8.6. I am using bash. How do i make it so that when i type "ruby" it looks in the MacPorts directory and when i type "man ruby" it looks at the right page (even though they may be identical)? I am a UNIX/bash noob as well, as a MacPorts noob. I dont even know where in the /opt directory (for MacPorts) the ruby installation went... I would appreciate any help, even something like "try posting over at [other site]" although the MacPorts forums are not very friendly at all. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Ruby with MacPorts in bash help?
Top