Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1
WARNING: If you want to live on the edge, please continue with the
steps
below. Also, please be aware that all gems are not fully compatible
with
Ruby 1.9.1 stable release (i.e. 1.9.1p0). Furthermore, this
installation requires you to remove ALL Ruby related gems and ports
because
we are performing a clean install. Lastly, I am using an
experimental machine (i.e. Apple PowerMac G5) to complete this task and
I
would
NOT advise the below actions within a production environment.
Remove Previous Ruby Ports (i.e. ruby, ruby19, rb-*, and so on) and
Gems
a) Ports
sudo port uninstall
sudo port clean
Note: Execute the above for all ruby related ports.
$ sudo gem install kwatch-mysql-ruby – --with-mysql-config=/opt/local/
lib/mysql
5/bin/mysql_config
Password:
ERROR: could not find gem kwatch-mysql-ruby locally or in a
repository
Updating class cache with 2296 classes…
$ sudo gem install kwatch-mysql-ruby --source=http://gems.github.com
– --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
Building native extensions. This could take a while…
Successfully installed kwatch-mysql-ruby-2.8.1
1 gem installed
Yes, this is the expected behavior when trying to use WEBrick instead of
Thin.
Expected by whom? It certainly wasn’t expected by me, and I suspect it
won’t be expected by other newbies. Anyway, thanks again for the
step-by-step instruction.
Yes, this is the expected behavior when trying to use WEBrick instead of
Thin.
Expected by whom? It certainly wasn’t expected by me, and I suspect it
won’t be expected by other newbies. Anyway, thanks again for the
step-by-step instruction.
It was expected by me. If WEBrick was working, I would had added the
following
use case for step (9):
script/server
instead of
script/server thin
Furthermore, WEBrick and Mongrel wasn’t updated to support ruby 1.9.1 at
the
time I was
putting this tutorial together. Lastly, I plan to turn these
instructions
into a blog post so that
I can easily update it.
sudo port install ruby19 +nosuffix
sudo port mysql5 +server
sudo port sqlite3
Note: The above ruby19 install generates the required executables
without the extension.
I installed ruby 1.9.1 with the 1.9 suffix, and I think ./script/server
is confused and is trying to run the old ruby stuff that ships with OSX.
Does it mean I have to reinstall everything from scratch with the
+nosuffix flag?
I installed ruby 1.9.1 with the 1.9 suffix, and I think ./script/server
is confused and is trying to run the old ruby stuff that ships with OSX.
Does it mean I have to reinstall everything from scratch with the
+nosuffix flag?
Thanks
I confirm I needed to reinstall ruby with +nosuffix. Now it all works,
well except ruby-debug which won’t compile
I confirm I needed to reinstall ruby with +nosuffix. Now it all works,
well except ruby-debug which won’t compile
If you’re using Rails 3, it is recommended that you use Ruby 1.9.2.
If this is the case, then you might want to use RVM for installing
Ruby by doing the following:
If you’re using Rails 3, it is recommended that you use Ruby 1.9.2.
If this is the case, then you might want to use RVM for installing
Ruby by doing the following:
rvm install 1.9.2- head
Good luck,
-Conrad
I’m still running 2.3.8 until 3 goes official. I’ll give a try at RVM.
By the way my machine runs Tiger on a PowerPC, is there any issue I
might run into?