2008年7月8日火曜日

SproutCoreのHelloWorldに挑戦…をやり直す.

こいつのやり直し.

内容はSproutCoreをとりあえず試してみようってだけ.
で試す内容はこれ

まずは元に戻す.Uninstall
$ sudo -s
Password:
bash-3.2# export GEM_PATH=/opt/local/lib/ruby/gems
bash-3.2# gem uninstall sproutcore
Successfully uninstalled sproutcore version 0.9.13
Remove executables and scripts for
'sc-build, sc-gen, sc-server, sproutcore' in addition to the gem? [Yn]
Removing sc-build
Removing sc-gen
Removing sc-server
Removing sproutcore
bash-3.2#


.bash_profileを編集(コメントアウト)
#export GEM_HOME=/opt/local/lib/ruby/gems
#export PATH=/opt/local/bin:${PATH}


ターミナルを開き直す

ではいざ再インストール
$ sudo gem install sproutcore
Password:
Bulk updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed activesupport-2.1.0
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.2
Successfully installed rake-0.8.1
Successfully installed json_pure-1.1.2
Successfully installed rspec-1.1.4
Successfully installed rack-0.3.0
Successfully installed hpricot-0.6
Successfully installed mime-types-1.15
Successfully installed merb-core-0.9.3
Successfully installed rubigen-1.3.2
Successfully installed gem_plugin-0.2.3
Successfully installed daemons-1.0.10
Successfully installed fastthread-1.0.1
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5
Successfully installed sproutcore-0.9.13
17 gems installed
Installing ri documentation for activesupport-2.1.0...
Installing ri documentation for rake-0.8.1...
Installing ri documentation for json_pure-1.1.2...
Installing ri documentation for rspec-1.1.4...
Installing ri documentation for rack-0.3.0...
Installing ri documentation for hpricot-0.6...
Installing ri documentation for mime-types-1.15...
Installing ri documentation for merb-core-0.9.3...
Installing ri documentation for rubigen-1.3.2...
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for daemons-1.0.10...
Installing ri documentation for fastthread-1.0.1...

No definition for dummy_dump

No definition for dummy_dump

No definition for rb_queue_marshal_load

No definition for rb_queue_marshal_dump
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5...
Installing ri documentation for sproutcore-0.9.13...
Installing RDoc documentation for activesupport-2.1.0...
Installing RDoc documentation for rake-0.8.1...
Installing RDoc documentation for json_pure-1.1.2...
Installing RDoc documentation for rspec-1.1.4...
Installing RDoc documentation for rack-0.3.0...
Installing RDoc documentation for hpricot-0.6...
Installing RDoc documentation for mime-types-1.15...
Installing RDoc documentation for merb-core-0.9.3...
Installing RDoc documentation for rubigen-1.3.2...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for daemons-1.0.10...
Installing RDoc documentation for fastthread-1.0.1...

No definition for dummy_dump

No definition for dummy_dump

No definition for rb_queue_marshal_load

No definition for rb_queue_marshal_dump
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5...
Installing RDoc documentation for sproutcore-0.9.13...
$


あとはそのまま.
$ sproutcore hello_world
$ cd hello_world
$ sc-server


ではアクセスしてみよう.
http://localhost:4020/hello_world

OK.

ではprofileを戻すとどうなるか
GEM_PATHは…ダメー.結局GEMとしてなにが入っているか,バージョンはいくつか.を管理しているspecificationsディレクトリへのパスの問題だと思うんだけどね.まぁこの設定自体すでにいらないものなんだよな.たぶん.
export PATH=/opt/local/bin:${PATH}
は問題ない.あたりまえですか?

ということでいろいろあったけど無事完了.

0 件のコメント: