Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1WARNING: 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 withRuby 1.9.1 stable release (i.e. 1.9.1p0). Furthermore, this installation requires you to remove ALL Ruby related gems and ports becausewe are performing a clean install. Lastly, I am using an experimental machine (i.e. Apple PowerMac G5) to complete this task and I wouldNOT advise the below actions within a production environment.0) Remove Previous Ruby Ports (i.e. ruby, ruby19, rb-*, and so on) and Gemsa) Portssudo port uninstall <port-name>sudo port clean <port-name>Note: Execute the above for all ruby related ports.b) Gemsrm -rf /opt/local/lib/rubyrm -rf /opt/local/lib/ruby19Note: You may not need to execute both commands and this really depends on what you have installed and how.1) Remove Rake ( Optional If It Does Not Exist )sudo rm -rf /opt/local/bin/rake2) Install Ruby 1.9.1, SQLite3, and Mysql 5 Ports
sudo port install ruby19 +nosuffix
sudo port mysql5 +server
sudo port sqlite3
> On Sun, Feb 15, 2009 at 3:32 AM, Conrad Taylor <conra...@gmail.com> wrote:
For the archives:
Thin works, but WEBrick encounters an error:
> > 9) Start Thin
>
> > script/server thin
Internal Server Error
undefined method `each'
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.
> If WEBrick was working, I would had added the
> following use case for step (9):
>
> script/server
>
> instead of
>
> script/server thin
Fair enough.
> 2) Install Ruby 1.9.1, SQLite3, and Mysql 5 Ports
>
> 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?
Thanks
--
Posted via http://www.ruby-forum.com/.
I confirm I needed to reinstall ruby with +nosuffix. Now it all works,
well except ruby-debug which won't compile :-(
Sent from my iPhone
On Jun 20, 2010, at 4:50 AM, Fernando Perez <li...@ruby-forum.com>
wrote:
>
>> 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 :-(
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
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-
> ta...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
> .
>
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?
> If you're using Rails 3, it is recommended that you use Ruby 1.9.2.I'm still running 2.3.8 until 3 goes official. I'll give a try at RVM.
> 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
By the way my machine runs Tiger on a PowerPC, is there any issue I
might run into?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.