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.

Ruby with MacPorts in bash help?

Post Reply New Thread Subscribe

Thread Tools

Member Since: Dec 31, 2008
Posts: 4
whiteunibrow is on a distinguished road

whiteunibrow is offline
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 Thanks

Post Reply New Thread Subscribe

« GCC Error..... | Using gettimeofday to compute reaction times »
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 Starter
Last Post
Mouse copy & paste (Linux bash style) in OS X ? kkempter OS X - Operating System 3 03-28-2009 09:55 AM
gcalcli and macports aarnclayt Running Windows (or anything else) on your Mac 6 08-21-2008 08:54 AM
Auto-Logging BASH session quietly danjmwalker OS X - Development and Darwin 0 10-04-2007 02:19 PM
Ruby on Rails! OMG! iRock Web Design and Hosting 3 08-02-2007 01:15 PM
Bash Script ftjogoh Apple Notebooks 1 11-04-2004 01:14 PM

All times are GMT -4. The time now is 02:44 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

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?