# Installation difficulites

**URL:** <https://www.ruby-forum.com/t/installation-difficulites/173289>\
**Category:** Rails\
**Created:** [August 6, 2009, 9:54am UTC](https://www.ruby-forum.com/t/installation-difficulites/173289 "2009-08-06T09:54:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skolnabber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@skolnabber](https://www.ruby-forum.com/u/skolnabber)\
**Post date:** [August 6, 2009, 9:54am UTC](https://www.ruby-forum.com/t/installation-difficulites/173289/1 "2009-08-06T09:54:28Z")

</div>

I’m a novice in these lands, hence the possibly rudimentary inquiry…

I’m a designer/AS3 developer and am hoping to delve into Ruby on Rails  
on the suggestion of a friend. Have been trying to get it installed  
and am running into an error that perplexes me.

I’ve been able to get ruby and rubygems installed on OSX 10.5.7  
following the directions on  
[http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx](http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx),  
but in trying to install rails ran into:

FW-W874815VXA9-3:src gensler$ cd rubygems-0.9.2  
FW-W874815VXA9-3:rubygems-0.9.2 gensler$ sudo /usr/local/bin/ruby  
setup.rb  
sudo: /usr/local/bin/ruby: command not found

## – Hoping that I could ignore the ‘command not found’ message and still achieve my installation goals, I continued

FW-W874815VXA9-3:rubygems-0.9.2 gensler$ cd …  
FW-W874815VXA9-3:src gensler$ sudo gem install rails --include-  
dependencies  
INFO: `gem install -y` is now default and will be removed  
INFO: use --ignore-dependencies to install only the gems you list  
Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Building native extensions. This could take a while…  
ERROR: Error installing rails:  
fastthread requires RubyGems version \>= 1.2

## – At this point I did a search to see if I could update the version of RubyGems I had just installed but ran into the following

FW-W874815VXA9-3:src gensler$ cd rubygems-0.9.2  
FW-W874815VXA9-3:rubygems-0.9.2 gensler$ gem update –system  
Updating installed gems…  
Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Attempting remote update of –system  
ERROR: could not find –system locally or in a repository  
Gems updated: –system  
FW-W874815VXA9-3:rubygems-0.9.2 gensler$ sudo /usr/local/bin/ruby  
setup.rb  
Password:  
sudo: /usr/local/bin/ruby: command not found

–  
per the installation page at

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

I thought that perhaps I had incorrectly set the path in  
my .bash\_login file, so I checked, and it appears to be correct.

Any help or suggestions would be most appreciated.

---

<div class="post-metadata">

**Author:** ![skolnabber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@skolnabber](https://www.ruby-forum.com/u/skolnabber)\
**Post date:** [August 6, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/installation-difficulites/173289/2 "2009-08-06T12:05:36Z")

</div>

One thing, Ruby is not in /usr/local/bin but in /usr/bin. If your  
scripts  
require ruby to be in /usr/local/bin you can do this  
sudo ln -s /usr/bin/ruby /usr/local/bin/ruby

And be done with it.

What I have done is to install XAMPP on my Mac, and remember to install  
the  
Dev tools also (there are 2 download links).

then install passenger (sudo gem install passenger)

Add the config passenger tells youti paste in, to  
/Applications/XAMPP/xamppfiles/etc/httpd.conf

And now your done (pretty much).

Trausti

---

<div class="post-metadata">

**Author:** ![skolnabber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@skolnabber](https://www.ruby-forum.com/u/skolnabber)\
**Post date:** [August 6, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/installation-difficulites/173289/3 "2009-08-06T12:06:11Z")

</div>

On Aug 6, 9:06 am, Trausti Thor J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> One thing, Ruby is not in /usr/local/bin but in /usr/bin.  
> The stock ruby is, but not the version installed via the hivelogic  
> instructions (at least not if everything has gone to plan)

/usr/local/bin/ruby: command not found  
is not a problem with your path: you provided an absolute path so  
sounds like the file is genuinely not there. Were there any other  
earlier errors that you just skipped over

Also there is an updated version of those instructions at  
[Dan Benjamin](http://hivelogic.com/articles/ruby-rails-leopard) (but it might not be  
very different)

Fred
