ので,portでrailsをいれてupdateしよう!ということにした.
まず"~/.bash_profile"等に設定しているports類へのパスを優先させるように設定する.
~/.profileという順序にしておいてみる.(まぁportsがまちがって/usr/binの下のなにかを利用する事はないのだろうけど念のため.)PATH=/opt/local/bin:${PATH}
でもって
> sudo port install rb-rails
色々いれながら…---> Staging rb-activesupport into destroot
Error: Target org.macports.destroot returned: shell command "/opt/local/bin/gem install --local --force --install-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-activesupport/work/destroot/opt/local/lib/ruby/gems/1.8 /opt/local/var/macports/distfiles/ruby/activesupport-1.4.2" returned error 1
Command output: /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- sources (LoadError)
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/source_info_cache.rb:6
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:12
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:112:in `manage_gems'
from /opt/local/bin/gem:10
Error: The following dependencies failed to build: rb-actionmailer rb-actionpack rb-activesupport rb-actionwebservice rb-activerecord rb-rake
Error: Status 1 encountered during processing.
…orz
調べた…
LeopardでのRubyGems - みずぴー日記感謝.
http://d.hatena.ne.jp/mzp/20080207/gem
ということで
> sudo -s
# export GEM_PATH=/opt/local/lib/ruby/gems
# /opt/local/bin/gem install --local --force --install-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-activesupport/work/destroot/opt/local/lib/ruby/gems/1.8 /opt/local/var/macports/distfiles/ruby/activesupport-1.4.2
(上記エラーメッセージに出ているヤツ)
#
入ったっぽい.でもこれはactivesupportが入っただけだよね…このあとどうしよう?
ちなみに
> sudo -s
# export GEM_PATH=/opt/local/lib/ruby/gems
# port install rb-rails
ではだめみたい.portのなかでは反映されてないのかな?わからん…
そこでgemを使ってみる
> sudo -s
bash-3.2# export GEM_PATH=/opt/local/lib/ruby/gems
bash-3.2# gem install rails
(activesupport 等のインストールの確認がはいる. ひたすら'Y')
入ったら確認
bash-3.2# rails -v
Rails 2.0.2
bash-3.2#
できたのかなw.
0 件のコメント:
コメントを投稿