Installation difficulites

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,
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
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
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
http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx
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.

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

On Aug 6, 9:06 am, Trausti Thor J. [email protected]
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
http://hivelogic.com/articles/ruby-rails-leopard (but it might not be
very different)

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs