Ruby on Rails
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* 開発環境 All-In-One [#ke04ae92]
-[[即、Mac OSXでRails開発環境を構築「RM-Install」:http://...
* インストール (Mac OS X) [#c08a79cc]
1. [[Building Ruby, Rails, LightTPD, and MySQL on Tiger:h...
2007/7/7現在、以下のソフトのバージョンが変わっている。
readline (5.1 => 5.2)
Ruby (1.8.4 => 1.8.6)
RubyGems (0.9.0 => 0.9.4)
ruby-fcgi (0.8.6 => 0.8.7)
PCRE (6.6 => 6.7)
(1) readline
$ curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.2.ta...
$ tar xzvf readline-5.2.tar.gz
$ cd readline-5.2
$ ./configure --prefix=/usr/local
$ make
$ sudo make install
$ cd ..
(2) Ruby
$ curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8....
$ tar xzvf ruby-1.8.6.tar.gz
$ cd ruby-1.8.6
$ ./configure --prefix=/usr/local --enable-pthread --wit...
$ make
$ sudo make install
$ sudo make install-doc
$ cd ..
(3) RubyGems
$ curl -O http://rubyforge-files.ruby-forum.com/rubygems...
$ tar xzvf rubygems-0.9.4.tgz
$ cd rubygems-0.9.4
$ sudo /usr/local/bin/ruby setup.rb
$ cd ..
(4) Ruby on Rails
$ sudo gem install rails --include-dependencies
(5) FastCGI
$ curl -O http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
$ tar xzvf fcgi-2.4.0.tar.gz
$ cd fcgi-2.4.0
$ ./configure --prefix=/usr/local
$ make
$ sudo make install
$ cd ..
(6) Ruby-FastCGI bindings
$ curl -O http://rubyforge.iasi.roedu.net/files/fcgi/rub...
$ tar xzvf ruby-fcgi-0.8.7.tar.gz
$ cd ruby-fcgi-0.8.7
$ /usr/local/bin/ruby install.rb config --prefix=/usr/lo...
$ /usr/local/bin/ruby install.rb setup
$ sudo /usr/local/bin/ruby install.rb install
$ cd ..
この段階で動作確認をしておく。~
作業用のフォルダを作成し、そこで下記コマンドを実行。
$ rails test
$ cd test
$ ruby script/server
http://localhost:3000 にアクセスし、「Welcome aboard」の...
2. 多言語対応にするため、[[GNU GetText:http://directory.f...
(1) [[GNU GetText:http://directory.fsf.org/GNU/gettext.ht...
$ tar zxvf gettext-0.16.1.tar.gz
$ cd gettext-0.16.1
$ ./configure
$ make
$ sudo make install
(2) Ruby-GetText-Package のインストール
$ sudo gem install gettext
3. MySQL
(1) MySQLアダプタのインストール
$ sudo gem install mysql -- --with-mysql-dir=/usr/local/...
(2) MySQLのライブラリのパス設定
"rake migrate" を実行して
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/lib...
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mys...
Reason: image not found
Trace/BPT trap
といったエラーが出る場合は下記を実行する。
$ cd /usr/local/mysql/lib
$ sudo mkdir mysql
$ cd mysql
$ sudo ln -s /usr/local/mysql/lib/lib* .
4. PostgreSQL を使う場合は以下の作業を行う
(1) [[Postgres(Ruby extension library):http://ruby.script...
$ ruby extconf.rb --with-pgsql-include-dir=/usr/local/pg...
$ make
$ sudo make install
(2) postgres-ruby をインストール
$ sudo gem install postgres -- --with-pgsql-dir=/usr/loc...
4. ついでにRails専用IDE [[RadRails:http://www.radrails.or...
[[ここ:http://rails.netlab.jp/rails/published/use_radra...
* インストール (Windows) [#k6bd4259]
-[[10分で作るRailsアプリ for Windows:http://masuidrive.jp...
-[[windowsでrails:http://circle.cc.hokudai.ac.jp/ryu/puki...
* プラグイン [#yd6c03f1]
-[[Plugins in Ruby on Rails:http://wiki.rubyonrails.com/r...
** プラグインのインストール方法 [#g06562ce]
1. プラグインリポジトリの検索
$ ruby script/plugin discover
2. プラグインのインストール
$ ruby script/plugin install [プラグイン名]
3. プラグインの設定
4. config/environment.rb を変更した場合はサーバプロセス(...
※ 上記 1. でエラーになる場合は、以下のシェルスクリプトを...
#!/bin/sh
./script/plugin source http://svn.techno-weenie.net/proj...
./script/plugin source http://delynnberry.com/svn/code/r...
./script/plugin source http://svn.recentrambles.com/plug...
./script/plugin source http://opensvn.csie.org/rails_fil...
./script/plugin source http://svn.protocool.com/rails/pl...
./script/plugin source https://source.integrumtech.com/s...
./script/plugin source http://tools.assembla.com/svn/bre...
./script/plugin source http://svn.pragprog.com/Public/pl...
./script/plugin source svn://rubyforge.org//var/svn/lasz...
./script/plugin source http://svn.inlet-media.de/svn/rai...
./script/plugin source http://svn.viney.net.nz/things/ra...
./script/plugin source http://svn.hasmanythrough.com/pub...
./script/plugin source svn://caboo.se/plugins/
./script/plugin source http://shanesbrain.net/svn/rails/...
./script/plugin source svn://errtheblog.com/svn/plugins/
./script/plugin source svn://svn.nkryptic.com/plugins/
./script/plugin source http://invisible.ch/svn/projects/...
./script/plugin source http://hivelogic.com/plugins/
./script/plugin source https://secure.near-time.com/svn/...
./script/plugin source http://mattmccray.com/svn/rails/p...
./script/plugin source http://svn.codefluency.com/rails/...
./script/plugin source http://www.svn.recentrambles.com/...
./script/plugin source http://tanjero.com/svn/plugins/
./script/plugin source http://filetofsole.org/svn/public...
./script/plugin source http://topfunky.net/svn/plugins/
./script/plugin source http://www.eric-stewart.com/svn/r...
./script/plugin source http://joshpeek.com/svn/plugins/
./script/plugin source http://svn.aviditybytes.com/rails...
./script/plugin source http://beautifulpixel.textdriven....
./script/plugin source http://mabs29.googlecode.com/svn/...
./script/plugin source http://www.codyfauser.com/svn/pro...
./script/plugin source http://craz8.com/svn/trunk/plugins/
./script/plugin source http://sean.treadway.info/svn/plu...
./script/plugin source http://svn.thebootstrapnation.com...
./script/plugin source http://www.mattmccray.com/svn/rai...
./script/plugin source svn://rubyforge.org//var/svn/vali...
./script/plugin source http://xmlblog.stikipad.com/plugi...
./script/plugin source http://www.xml-blog.com/svn/plugi...
./script/plugin source http://svn.toolbocks.com/plugins/
./script/plugin source http://thar.be/svn/projects/plugi...
./script/plugin source http://code.teytek.com/rails/plug...
./script/plugin source http://svn.teytek.com/rails/plugi...
./script/plugin source http://www.infused.org/svn/plugins/
./script/plugin source http://svn.mitchellhashimoto.com/...
./script/plugin source http://svn.eastmedia.com/svn/bant...
./script/plugin source http://svn.writertopia.com/svn/pl...
./script/plugin source http://opensvn.csie.org/ezra/rail...
./script/plugin source http://svn.substance-it.co.uk/pub...
./script/plugin source http://svn.rails-engines.org/plug...
./script/plugin source http://activerbac.turingstudio.co...
./script/plugin source http://svn.openprofile.net/plugins/
./script/plugin source http://www.nickm.org/svn/repos/ra...
./script/plugin source http://cubesix.net/rails/plugins/
./script/plugin source http://svn.rtra.in/public/plugins/
** 開発環境 [#m812d178]
-[[Rails専用IDE「RadRails」でRailsをもっともっと快適に:ht...
** プラグイン一覧 [#l9562b36]
| プラグイン | 説明 | 実用度(0-10) | 参考URL |h
| Acts As Versioned | モデルに格納された内容がバージョン...
| Globalize | Railsを国際化対応にするプラグイン。言語ごと...
| Acts As Searchable | 全文検索エンジンであるHyperEstraie...
| LoginEngine | ユーザ管理機能(ログイン機能) | ? | [[Lo...
| File column | 画像ファイルのアップロード/表示/リサイ...
-ActiveHeart
* 携帯関係 [#e4382446]
-[[Rails で携帯用にビューを切り替え:http://www.kbmj.com/t...
* リンク集 [#wf6555e0]
-[[『ライド・オン・Rails』サポートページ:http://rorbook.m...
-[[Ruby on Rails を Mac OSX Tigerで:http://www.goodpic.co...
-[[必見!Railsがローカルアプリケーションに「Slingshot」:h...
終了行:
* 開発環境 All-In-One [#ke04ae92]
-[[即、Mac OSXでRails開発環境を構築「RM-Install」:http://...
* インストール (Mac OS X) [#c08a79cc]
1. [[Building Ruby, Rails, LightTPD, and MySQL on Tiger:h...
2007/7/7現在、以下のソフトのバージョンが変わっている。
readline (5.1 => 5.2)
Ruby (1.8.4 => 1.8.6)
RubyGems (0.9.0 => 0.9.4)
ruby-fcgi (0.8.6 => 0.8.7)
PCRE (6.6 => 6.7)
(1) readline
$ curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.2.ta...
$ tar xzvf readline-5.2.tar.gz
$ cd readline-5.2
$ ./configure --prefix=/usr/local
$ make
$ sudo make install
$ cd ..
(2) Ruby
$ curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8....
$ tar xzvf ruby-1.8.6.tar.gz
$ cd ruby-1.8.6
$ ./configure --prefix=/usr/local --enable-pthread --wit...
$ make
$ sudo make install
$ sudo make install-doc
$ cd ..
(3) RubyGems
$ curl -O http://rubyforge-files.ruby-forum.com/rubygems...
$ tar xzvf rubygems-0.9.4.tgz
$ cd rubygems-0.9.4
$ sudo /usr/local/bin/ruby setup.rb
$ cd ..
(4) Ruby on Rails
$ sudo gem install rails --include-dependencies
(5) FastCGI
$ curl -O http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
$ tar xzvf fcgi-2.4.0.tar.gz
$ cd fcgi-2.4.0
$ ./configure --prefix=/usr/local
$ make
$ sudo make install
$ cd ..
(6) Ruby-FastCGI bindings
$ curl -O http://rubyforge.iasi.roedu.net/files/fcgi/rub...
$ tar xzvf ruby-fcgi-0.8.7.tar.gz
$ cd ruby-fcgi-0.8.7
$ /usr/local/bin/ruby install.rb config --prefix=/usr/lo...
$ /usr/local/bin/ruby install.rb setup
$ sudo /usr/local/bin/ruby install.rb install
$ cd ..
この段階で動作確認をしておく。~
作業用のフォルダを作成し、そこで下記コマンドを実行。
$ rails test
$ cd test
$ ruby script/server
http://localhost:3000 にアクセスし、「Welcome aboard」の...
2. 多言語対応にするため、[[GNU GetText:http://directory.f...
(1) [[GNU GetText:http://directory.fsf.org/GNU/gettext.ht...
$ tar zxvf gettext-0.16.1.tar.gz
$ cd gettext-0.16.1
$ ./configure
$ make
$ sudo make install
(2) Ruby-GetText-Package のインストール
$ sudo gem install gettext
3. MySQL
(1) MySQLアダプタのインストール
$ sudo gem install mysql -- --with-mysql-dir=/usr/local/...
(2) MySQLのライブラリのパス設定
"rake migrate" を実行して
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/lib...
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mys...
Reason: image not found
Trace/BPT trap
といったエラーが出る場合は下記を実行する。
$ cd /usr/local/mysql/lib
$ sudo mkdir mysql
$ cd mysql
$ sudo ln -s /usr/local/mysql/lib/lib* .
4. PostgreSQL を使う場合は以下の作業を行う
(1) [[Postgres(Ruby extension library):http://ruby.script...
$ ruby extconf.rb --with-pgsql-include-dir=/usr/local/pg...
$ make
$ sudo make install
(2) postgres-ruby をインストール
$ sudo gem install postgres -- --with-pgsql-dir=/usr/loc...
4. ついでにRails専用IDE [[RadRails:http://www.radrails.or...
[[ここ:http://rails.netlab.jp/rails/published/use_radra...
* インストール (Windows) [#k6bd4259]
-[[10分で作るRailsアプリ for Windows:http://masuidrive.jp...
-[[windowsでrails:http://circle.cc.hokudai.ac.jp/ryu/puki...
* プラグイン [#yd6c03f1]
-[[Plugins in Ruby on Rails:http://wiki.rubyonrails.com/r...
** プラグインのインストール方法 [#g06562ce]
1. プラグインリポジトリの検索
$ ruby script/plugin discover
2. プラグインのインストール
$ ruby script/plugin install [プラグイン名]
3. プラグインの設定
4. config/environment.rb を変更した場合はサーバプロセス(...
※ 上記 1. でエラーになる場合は、以下のシェルスクリプトを...
#!/bin/sh
./script/plugin source http://svn.techno-weenie.net/proj...
./script/plugin source http://delynnberry.com/svn/code/r...
./script/plugin source http://svn.recentrambles.com/plug...
./script/plugin source http://opensvn.csie.org/rails_fil...
./script/plugin source http://svn.protocool.com/rails/pl...
./script/plugin source https://source.integrumtech.com/s...
./script/plugin source http://tools.assembla.com/svn/bre...
./script/plugin source http://svn.pragprog.com/Public/pl...
./script/plugin source svn://rubyforge.org//var/svn/lasz...
./script/plugin source http://svn.inlet-media.de/svn/rai...
./script/plugin source http://svn.viney.net.nz/things/ra...
./script/plugin source http://svn.hasmanythrough.com/pub...
./script/plugin source svn://caboo.se/plugins/
./script/plugin source http://shanesbrain.net/svn/rails/...
./script/plugin source svn://errtheblog.com/svn/plugins/
./script/plugin source svn://svn.nkryptic.com/plugins/
./script/plugin source http://invisible.ch/svn/projects/...
./script/plugin source http://hivelogic.com/plugins/
./script/plugin source https://secure.near-time.com/svn/...
./script/plugin source http://mattmccray.com/svn/rails/p...
./script/plugin source http://svn.codefluency.com/rails/...
./script/plugin source http://www.svn.recentrambles.com/...
./script/plugin source http://tanjero.com/svn/plugins/
./script/plugin source http://filetofsole.org/svn/public...
./script/plugin source http://topfunky.net/svn/plugins/
./script/plugin source http://www.eric-stewart.com/svn/r...
./script/plugin source http://joshpeek.com/svn/plugins/
./script/plugin source http://svn.aviditybytes.com/rails...
./script/plugin source http://beautifulpixel.textdriven....
./script/plugin source http://mabs29.googlecode.com/svn/...
./script/plugin source http://www.codyfauser.com/svn/pro...
./script/plugin source http://craz8.com/svn/trunk/plugins/
./script/plugin source http://sean.treadway.info/svn/plu...
./script/plugin source http://svn.thebootstrapnation.com...
./script/plugin source http://www.mattmccray.com/svn/rai...
./script/plugin source svn://rubyforge.org//var/svn/vali...
./script/plugin source http://xmlblog.stikipad.com/plugi...
./script/plugin source http://www.xml-blog.com/svn/plugi...
./script/plugin source http://svn.toolbocks.com/plugins/
./script/plugin source http://thar.be/svn/projects/plugi...
./script/plugin source http://code.teytek.com/rails/plug...
./script/plugin source http://svn.teytek.com/rails/plugi...
./script/plugin source http://www.infused.org/svn/plugins/
./script/plugin source http://svn.mitchellhashimoto.com/...
./script/plugin source http://svn.eastmedia.com/svn/bant...
./script/plugin source http://svn.writertopia.com/svn/pl...
./script/plugin source http://opensvn.csie.org/ezra/rail...
./script/plugin source http://svn.substance-it.co.uk/pub...
./script/plugin source http://svn.rails-engines.org/plug...
./script/plugin source http://activerbac.turingstudio.co...
./script/plugin source http://svn.openprofile.net/plugins/
./script/plugin source http://www.nickm.org/svn/repos/ra...
./script/plugin source http://cubesix.net/rails/plugins/
./script/plugin source http://svn.rtra.in/public/plugins/
** 開発環境 [#m812d178]
-[[Rails専用IDE「RadRails」でRailsをもっともっと快適に:ht...
** プラグイン一覧 [#l9562b36]
| プラグイン | 説明 | 実用度(0-10) | 参考URL |h
| Acts As Versioned | モデルに格納された内容がバージョン...
| Globalize | Railsを国際化対応にするプラグイン。言語ごと...
| Acts As Searchable | 全文検索エンジンであるHyperEstraie...
| LoginEngine | ユーザ管理機能(ログイン機能) | ? | [[Lo...
| File column | 画像ファイルのアップロード/表示/リサイ...
-ActiveHeart
* 携帯関係 [#e4382446]
-[[Rails で携帯用にビューを切り替え:http://www.kbmj.com/t...
* リンク集 [#wf6555e0]
-[[『ライド・オン・Rails』サポートページ:http://rorbook.m...
-[[Ruby on Rails を Mac OSX Tigerで:http://www.goodpic.co...
-[[必見!Railsがローカルアプリケーションに「Slingshot」:h...
ページ名: