# Installing Ruby from source on OSX

**URL:** <https://www.ruby-forum.com/t/installing-ruby-from-source-on-osx/71201>\
**Category:** Ruby\
**Created:** [October 6, 2006, 1:30am UTC](https://www.ruby-forum.com/t/installing-ruby-from-source-on-osx/71201 "2006-10-06T01:30:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfg59](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Post date:** [October 6, 2006, 1:30am UTC](https://www.ruby-forum.com/t/installing-ruby-from-source-on-osx/71201/1 "2006-10-06T01:30:32Z")

</div>

I’ve become a die-hard Ruby fan in the past few months. I’m currently  
using 1.8.5 on my work PC and want to upgrade on my mac at home, which  
is currently running 1.8.2. It seems the neither Fink nor Darwinports  
has 1.8.5 available so I’d like to install from source, but I’ve never  
done this before.

Can anyone offer help (like step by step) to a total newbie when it  
comes to installing from source?

---

<div class="post-metadata">

**Author:** ![dfg59](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Post date:** [October 6, 2006, 1:38am UTC](https://www.ruby-forum.com/t/installing-ruby-from-source-on-osx/71201/2 "2006-10-06T01:38:06Z")

</div>

On 5-Oct-06, at 5:30 PM, Drew O. wrote:

> I’ve become a die-hard Ruby fan in the past few months. I’m currently  
> using 1.8.5 on my work PC and want to upgrade on my mac at home, which  
> is currently running 1.8.2. It seems the neither Fink nor Darwinports  
> has 1.8.5 available so I’d like to install from source, but I’ve never  
> done this before.
> 
> Can anyone offer help (like step by step) to a total newbie when it  
> comes to installing from source?

./configure --prefix=/usr/local/ruby-1.85 && make && sudo make install

?

---

<div class="post-metadata">

**Author:** ![dfg59](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Post date:** [October 6, 2006, 1:58am UTC](https://www.ruby-forum.com/t/installing-ruby-from-source-on-osx/71201/3 "2006-10-06T01:58:08Z")

</div>

Drew O. wrote:

> I’ve become a die-hard Ruby fan in the past few months. I’m currently  
> using 1.8.5 on my work PC and want to upgrade on my mac at home, which  
> is currently running 1.8.2. It seems the neither Fink nor Darwinports  
> has 1.8.5 available so I’d like to install from source, but I’ve never  
> done this before.

I’m running off DarwinPorta (MacPorts) and it is already 1.8.5. Make  
sure your ports are up-to-date. (port selfupdate)

Nutters-Computer:~/Documents/workspace/jruby headius$ ruby -v  
ruby 1.8.5 (2006-08-25) [i686-darwin8.7.1]

---

<div class="post-metadata">

**Author:** ![dfg59](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Post date:** [October 6, 2006, 2:10am UTC](https://www.ruby-forum.com/t/installing-ruby-from-source-on-osx/71201/4 "2006-10-06T02:10:08Z")

</div>

this should be able to get you up and running.

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

just follow the instructions for installing ruby.

---

<div class="post-metadata">

**Author:** ![dfg59](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Post date:** [October 6, 2006, 2:34am UTC](https://www.ruby-forum.com/t/installing-ruby-from-source-on-osx/71201/5 "2006-10-06T02:34:10Z")

</div>

Drew,

“Drew O.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote on 10/5/06 7:30 pm:

> I’ve become a die-hard Ruby fan in the past few months. I’m currently  
> using 1.8.5 on my work PC and want to upgrade on my mac at home, which  
> is currently running 1.8.2. It seems the neither Fink nor Darwinports  
> has 1.8.5 available so I’d like to install from source, but I’ve never  
> done this before.
> 
> Can anyone offer help (like step by step) to a total newbie when it  
> comes to installing from source?

I followed the instructions at Hivelogic[1]. I ran into one problem, but  
solved that in the comments at my blog[2]. Other URLs that may help or  
point  
to common errors are included afterwards [3, 4]

1:  
[http://hivelogic.com/articles/2005/12/01/ruby\_rails\_lighttpd\_mysql\_tiger](http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger)  
2:  
\<[Building Ruby, Rails, LightTPD, and MySQL on Tiger | NSLog();](http://nslog.com/archives/2006/10/04/building_ruby_rails_lighttpd_and_mysql)  
\_on\_tiger.php\>

3:  
[http://www.nabble.com/Ruby-1.8.4-Mac-OS-X-readline-problems-t801880.html](http://www.nabble.com/Ruby-1.8.4-Mac-OS-X-readline-problems-t801880.html)  
4: [http://www.ruby-forum.com/topic/83481](http://www.ruby-forum.com/topic/83481)

–  
Best wishes,  
Erik J. Barzeski

1 + 1 = 3; // for large values of 1
