# Mac OSX

**URL:** <https://www.ruby-forum.com/t/mac-osx/95564>\
**Category:** Rails\
**Created:** [June 6, 2006, 11:03am UTC](https://www.ruby-forum.com/t/mac-osx/95564 "2006-06-06T11:03:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger\_Knott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@Roger\_Knott](https://www.ruby-forum.com/u/Roger_Knott)\
**Post date:** [June 6, 2006, 11:03am UTC](https://www.ruby-forum.com/t/mac-osx/95564/1 "2006-06-06T11:03:19Z")

</div>

I havew installed Ruby and gems on Mac OSX but when i try ti install  
Rails i get messages  
Local gem file not found: rails\*.gem  
Attempting remote installation of ‘rails’  
Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
ERROR: While executing gem … (ArgumentError)  
syntax error on line 23, col 0: `

’

Can anyone advise as to reason ? I an using OS 10.4

Roger

---

<div class="post-metadata">

**Author:** ![Roger\_Knott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@Roger\_Knott](https://www.ruby-forum.com/u/Roger_Knott)\
**Post date:** [June 6, 2006, 11:09am UTC](https://www.ruby-forum.com/t/mac-osx/95564/2 "2006-06-06T11:09:38Z")

</div>

> I havew installed Ruby and gems on Mac OSX but when i try ti install Rails i  
> get messages  
> Local gem file not found: rails\*.gem  
> Attempting remote installation of ‘rails’  
> Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> ERROR: While executing gem … (ArgumentError)  
> syntax error on line 23, col 0: `
> 
> ’
> 
> Can anyone advise as to reason ? I an using OS 10.4

Probably due to your PATH. I’ve written my own howto at  
[http://cguttesen.blogspot.com/2006/03/installing-rails-and-friends-on-os-x.html](http://cguttesen.blogspot.com/2006/03/installing-rails-and-friends-on-os-x.html)

hth  
Claus

---

<div class="post-metadata">

**Author:** ![Roger\_Knott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@Roger\_Knott](https://www.ruby-forum.com/u/Roger_Knott)\
**Post date:** [June 7, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/mac-osx/95564/3 "2006-06-07T15:03:46Z")

</div>

On Jun 6, 2006, at 4:59 AM, Roger Knott wrote:

> I havew installed Ruby and gems on Mac OSX but when i try ti  
> install Rails i get messages  
> Local gem file not found: rails\*.gem  
> Attempting remote installation of ‘rails’  
> Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> ERROR: While executing gem … (ArgumentError)  
> syntax error on line 23, col 0: `
> 
> ’
> 
> Can anyone advise as to reason ? I an using OS 10.4

Its pretty screwy on Mac OS X 10.4, so I chose to use Locomotive:

[http://locomotive.raaum.org/](http://locomotive.raaum.org/)

---

<div class="post-metadata">

**Author:** ![Roger\_Knott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@Roger\_Knott](https://www.ruby-forum.com/u/Roger_Knott)\
**Post date:** [June 7, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/mac-osx/95564/4 "2006-06-07T16:11:22Z")

</div>

Is everyone really having troube with this???

Install Xcode Developer Tools 2.2

Install darwin ports from  
[http://darwinports.org/downloads/DarwinPorts-1.2.1-10.4.dmg](http://darwinports.org/downloads/DarwinPorts-1.2.1-10.4.dmg).

Then type in the commands

sudo port selfupdate  
sudo port install ruby  
sudo port install rb-rubygems  
sudo port install rb-rake  
sudo gem install rails

Then I just have to create the file /Users/jgb/.profile and add the  
line:  
export PATH=/opt/local/bin:$PATH

Set this up on 3 macs with the latest OS X without a problem.

On 6/7/06, Bryan L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ERROR: While executing gem … (ArgumentError)  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

---

<div class="post-metadata">

**Author:** ![Roger\_Knott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@Roger\_Knott](https://www.ruby-forum.com/u/Roger_Knott)\
**Post date:** [June 7, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/mac-osx/95564/5 "2006-06-07T14:50:00Z")

</div>

Hey Roger, I was able to install the ruby and rails with success using  
the  
following:

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

Peace,

-Conrad

---

<div class="post-metadata">

**Author:** ![Roger\_Knott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@Roger\_Knott](https://www.ruby-forum.com/u/Roger_Knott)\
**Post date:** [June 8, 2006, 7:37am UTC](https://www.ruby-forum.com/t/mac-osx/95564/6 "2006-06-08T07:37:52Z")

</div>

On 6/7/06, Jon Gretar B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> sudo port selfupdate  
> sudo port install ruby  
> sudo port install rb-rubygems  
> sudo port install rb-rake  
> sudo gem install rails
> 
> Then I just have to create the file /Users/jgb/.profile and add the line:  
> export PATH=/opt/local/bin:$PATH
> 
> Set this up on 3 macs with the latest OS X without a problem.

you might want to install rake via gem rather than darwinports which is  
still serving up version 0.4.15 - looks like a few things were fixed  
since  
then =)  
[http://rake.rubyforge.org/files/CHANGES.html](http://rake.rubyforge.org/files/CHANGES.html)

james duncan davidson’s article has some interesting  
commentary/recommendations on which items to install via darwinports and  
which via gem:  
[http://duncandavidson.com/essay/2006/04/portsandbox](http://duncandavidson.com/essay/2006/04/portsandbox)
