I’m hungry

おもにAmazonでの衝動買いや技術的な話をぼちぼちと。

ruby on railsインストールメモ(未解決)

2011-07-17 22:10:16 | ネットサービス/テクノロジ
ruby on railsのインストールと新規アプリの作成方法メモ。


[sohgoh@dev ~]$ sudo gem install rails

--snip--

Successfully installed rails-3.0.9
1 gem installed
Installing ri documentation for rails-3.0.9...
file 'lib' not found
Installing RDoc documentation for rails-3.0.9...
file 'lib' not found

--snip--

インストールできたようだが、一部 "file 'lib' not found" とか言ってる...。どうもgemが古いようなので、アップデートしてみる。


[sohgoh@dev ~]$ gem -v
1.3.7
[sohgoh@dev ~]$ gem query -rn rubygems-update

*** REMOTE GEMS ***

rubygems-update (1.8.5)

[sohgoh@dev ~]$ sudo gem install rubygems-update
Successfully installed rubygems-update-1.8.5
1 gem installed
Installing ri documentation for rubygems-update-1.8.5...
Installing RDoc documentation for rubygems-update-1.8.5...
[sohgoh@dev ~]$ sudo update_rubygems
RubyGems 1.8.5 installed

=== 1.8.5 / 2011-05-31

* 2 minor enhancement:

* The -u option to 'update local source cache' is official deprecated.
* Remove has_rdoc deprecations from Specification.

* 2 bug fixes:

* Handle bad specs more gracefully.
* Reset any Gem paths changed in the installer.


------------------------------------------------------------------------------

RubyGems installed the following executables:
/usr/bin/gem

[sohgoh@dev ~]$ gem -v
1.8.5
[sohgoh@dev ~]$

もう一回gem install railsしてみる。


[sohgoh@dev ~]$ sudo gem install rails

--snip--

Installing ri documentation for railties-3.0.9...
Installing ri documentation for bundler-1.0.15...
Installing ri documentation for rails-3.0.9...
file 'lib' not found
Installing RDoc documentation for activesupport-3.0.9...

--snip--

直ってない。orz

もう少し調べてみるとrdocを手動で入れなおすと良さそうなので試してみる。


[sohgoh@dev ~]$ gem -v
1.8.5
[sohgoh@dev ~]$ sudo gem install rdoc-data

Fetching: rdoc-2.5.11.gem (100%)
RDoc 2.5 did not save method parameters, so you should upgrade your rdoc-data
gem to a version >= 2.5.3.

To have ri data for core and stdlib you'll need to:

gem install rdoc-data

then run:

rdoc-data --install

To have ri data for you gems you'll also need to run:

gem rdoc --all --overwrite

If you don't want to rebuild the rdoc for `gem server`, add --no-rdoc.
Fetching: rdoc-data-2.5.3.gem (100%)
To install ri data for RDoc 2.5+ run:

rdoc-data

Successfully installed rdoc-2.5.11
Successfully installed rdoc-data-2.5.3
2 gems installed
Installing ri documentation for rdoc-2.5.11...
Installing ri documentation for rdoc-data-2.5.3...
Installing RDoc documentation for rdoc-2.5.11...
Installing RDoc documentation for rdoc-data-2.5.3...

[sohgoh@dev ~]$ sudo rdoc-data --install

[sohgoh@dev gems]$ sudo gem install rails
Successfully installed rails-3.0.9
1 gem installed
Installing ri documentation for rails-3.0.9...
file 'lib' not found
Installing RDoc documentation for rails-3.0.9...
file 'lib' not found
[sohgoh@dev gems]$


直らねー...orz
その後、railsのディレクトリにlibを作成すれば動作したという情報を参考に実施してみたけど、


[sohgoh@dev ~]$ cd /usr/lib64/ruby/gems/1.8/gems/rails-3.0.9/
[sohgoh@dev rails-3.0.9]$ ls
bin
[sohgoh@dev rails-3.0.9]$ sudo mkdir lib
[sohgoh@dev rails-3.0.9]$ ll
total 8
drwxr-xr-x 2 root root 4096 Jul 17 08:41 bin
drwxr-xr-x 2 root root 4096 Jul 17 08:49 lib
[sohgoh@dev rails-3.0.9]$

[sohgoh@dev gems]$ sudo gem install rails
Successfully installed rails-3.0.9
1 gem installed
Installing ri documentation for rails-3.0.9...
file 'lib' not found
Installing RDoc documentation for rails-3.0.9...
file 'lib' not found
[sohgoh@dev gems]$


ぐぬぬ...




Comment    この記事についてブログを書く
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする
« EBSボリュームをS3へ定期的バ... | TOP | EBSボリュームをS3へ定期的バ... »
最新の画像もっと見る

post a comment

ブログ作成者から承認されるまでコメントは反映されません。

Recent Entries | ネットサービス/テクノロジ