Ruby Installation Mac Leopard

M

Michael Rigart

Hi everybody

I don't know if I post this in the right forum but I would like to
install a Ruby on Mac OSX Leopard. I know it comes stock with Leopard,
but with the dificulties there has been with Rails 2.2 and MySQL on
Leopard, it seems to be that the best way to go is just to get a new
install of Ruby.

The main problem is that MySQL is installed as 64bit and the stock Ruby
interpreter as 32 bit. I have seen solutions that say installing 32bit
of MySQL solves the problem, but I don't want to downgrade. I have a
64bit machine, so god forbid me I want to use it the way it was
intended.

My concern however is that I don't want to break the current stock
installation because it hangs together with RubyCocoa and consorts. But
I wan't to be able to use my new Ruby installation in a fashionable way:
using the ruby command by just typing "ruby", etc.

I was also wondering if I could use the stock RubyGems and others with
the new Ruby installation.

I have found: http://danbenjamin.com/articles/2008/02/ruby-rails-leopard
instructions, but I still a bit unsure what to do. If just installing
ruby would do the trick, or if I really need to reinstall RubyGems. This
is my first month walking the Mac path and I don't want to break stuff
making my laptop completely useless and getting frustrated to fix it
again.

I know I could install MacPorts, but I hate having software installed
twice on a system and I would like to keep everything as stock as
possible.

thank you in advance for the support and happy holidays to you all.
 
D

David Rio Deiros

I don't know if I post this in the right forum but I would like to
install a Ruby on Mac OSX Leopard. I know it comes stock with Leopard,
but with the dificulties there has been with Rails 2.2 and MySQL on
Leopard, it seems to be that the best way to go is just to get a new
install of Ruby.

The main problem is that MySQL is installed as 64bit and the stock Ruby
interpreter as 32 bit. I have seen solutions that say installing 32bit
of MySQL solves the problem, but I don't want to downgrade. I have a
64bit machine, so god forbid me I want to use it the way it was
intended.

My concern however is that I don't want to break the current stock
installation because it hangs together with RubyCocoa and consorts. But
I wan't to be able to use my new Ruby installation in a fashionable way:
using the ruby command by just typing "ruby", etc.

I was also wondering if I could use the stock RubyGems and others with
the new Ruby installation.

I have found: http://danbenjamin.com/articles/2008/02/ruby-rails-leopard
instructions, but I still a bit unsure what to do. If just installing
ruby would do the trick, or if I really need to reinstall RubyGems. This
is my first month walking the Mac path and I don't want to break stuff
making my laptop completely useless and getting frustrated to fix it
again.

I know I could install MacPorts, but I hate having software installed
twice on a system and I would like to keep everything as stock as
possible.

Hi Michael,

I would recommend you to install those bits in your home directory. The
process would look something like:

1. Download ruby sources or checkout the svn repository. Compile and
install in $HOME/local.

2. Change your $PATH to ensure your shell finds the ruby you just
installed.

3. Install rubygems

4. Install whatever gems you want...

5. Install mysql in your $HOME/local. That's a little bit trickier but there
are many howtos/tutorials out there. This is pretty good:

http://www.washington.edu/computing/web/publishing/mysql-install.html

You are now good to go. If you want to run any ruby code with the preinstalled
version of ruby just use the full fs path (/usr/bin/ruby ...).

-drd
 
M

Michael Rigart

Thanks for the info, but I found another solution. I just recompiled the
stock MySQL as a Universal build. All other blog posts mentioned running
2 mysql instances, but why no recompiling the stock one as a universal
build is still a question for me. Now I have i386 and x86_64 support :)
and everything seems to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top