What have you found for these years?

2008-12-02

Ruby Enterprise Edition = 超級 Rails 懶人包

下載:
> wget http://rubyforge.org/frs/download.php/41040/ruby-enterprise-1.8.6-20080810.tar.gz

解壓:
> tar -zxf ruby-enterprise-1.8.6-20080810.tar.gz

安裝:
> ruby-enterprise-1.8.6-20080810/installer

....非常詳盡的安裝說明....保證不碰到 system

指定安裝路徑:/whatever

...configure 和 build 訊息

installing binary commands
installing command scripts
installing library scripts
installing headers
installing manpages
installing extension objects
installing extension scripts

Installing RubyGems...
Installing useful libraries...
Installing rails...
[...]
Successfully installed rake-0.8.3
Successfully installed activesupport-2.2.2
Successfully installed activerecord-2.2.2
Successfully installed actionpack-2.2.2
Successfully installed actionmailer-2.2.2
Successfully installed activeresource-2.2.2
Successfully installed rails-2.2.2
7 gems installed

靠,連 rails 都安裝是怎樣 @@

Installing fastthread...
Installing rack...
Installing mysql -- --with-mysql-config='/usr/bin/mysql_config'...

....哇勒,mysql binding 也自動裝!你怎知是用 mysql??

Installing sqlite3-ruby...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

原來是亂槍打鳥...

Installing postgres...
ERROR: Error installing postgres:
ERROR: Failed to build gem native extension.

Warning: some libraries could not be installed
The following gems could not be installed, probably because of an Internet
connection error:

* sqlite3-ruby
* postgres

These gems are not required, i.e. Ruby Enterprise Edition will work fine without them. But most people use Ruby Enterprise Edition in combination with Phusion Passenger and Ruby on Rails, which do require one or more of the aforementioned gems, so you may want to install them later.

To install the aforementioned gems, please use the following commands:
* /home/ruby-enterprise/ruby/bin/ruby /home/ruby-enterprise/ruby/bin/gem install sqlite3-ruby
* /home/ruby-enterprise/ruby/bin/ruby /home/ruby-enterprise/ruby/bin/gem install postgres

.......這安裝說明真是詳細到炸了

Updating /home/ruby-enterprise/ruby/bin/rdoc...
Updating /home/ruby-enterprise/ruby/bin/rackup...
Updating /home/ruby-enterprise/ruby/bin/irb...
Updating /home/ruby-enterprise/ruby/bin/erb...
Updating /home/ruby-enterprise/ruby/bin/rake...
Updating /home/ruby-enterprise/ruby/bin/testrb...
Updating /home/ruby-enterprise/ruby/bin/ri...
Updating /home/ruby-enterprise/ruby/bin/rails...
Updating /home/ruby-enterprise/ruby/bin/gem...
chmod -R g+r,o+r,o-w sqlite3-ruby*

這大概是把 /usr/bin/env ruby 改成 /whatever/bin/ruby 吧...
真的是設想非常週到。我頭一次看到這麼漂亮的安裝包...

Ruby Enterprise Edition is successfully installed!
If you're using Phusion Passenger (http://www.modrails.com),
and you want it to use Ruby Enterprise Edition, then edit your Apache
configuration file, and change the 'PassengerRuby' option:

PassengerRuby /home/ruby-enterprise/ruby/bin/ruby

If you ever want to uninstall Ruby Enterprise Edition, simply remove this
directory:

/home/ruby-enterprise/ruby

If you have any questions, feel free to visit our website:

http://www.rubyenterpriseedition.com

Enjoy Ruby Enterprise Edition, a product of Phusion (www.phusion.nl) :-)




> bin/passenger-install-apache2-module

以下亦然。非常完整的說明,也不會動到系統,然後告訴你系統應該怎麼改。
我看你乾脆把 apache 也 bundle 起來算了吧...

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0