Thread: Ruby with MacPorts in bash help?
01-29-2009, 10:04 PM #1
Ruby with MacPorts in bash help?
- Member Since
- Dec 31, 2008
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Ciwan in forum OS X - Apps and GamesReplies: 11Last Post: 02-04-2013, 02:30 PM
By ftroop75 in forum OS X - Operating SystemReplies: 1Last Post: 01-23-2013, 08:51 PM
By cognus in forum Apple DesktopsReplies: 12Last Post: 10-22-2012, 01:31 PM
By maxnorman in forum Web Design and HostingReplies: 3Last Post: 07-18-2009, 12:38 PM
By perlmunky in forum OS X - Operating SystemReplies: 0Last Post: 12-21-2007, 02:05 PM