
Sun Fun Times にはのに子さんの Web Stack の記事がありますね。とてもわかりやすいし、おもしろいです。phpMyAdmin、私もチャレンジしたいと思います。
のに子の「お笑い Solaris 道場」


Web Stack を OpenSolaris 2008.11 にインストールして Rails のプロジェクトを作ろうとしたら invalid encoding ("ascii//ignore//translit", "utf-8") でエラーなってしまいました。
$ rails create abc
/var/ruby/1.8/gem_home/gems/activesupport-2.2.2/lib/active_support/inflector.rb:275:in `iconv': invalid encoding ("ascii//ignore//translit", "utf-8") (Iconv::InvalidEncoding)
from /var/ruby/1.8/gem_home/gems/activesupport-2.2.2/lib/active_support/inflector.rb:275:in `transliterate'
from /var/ruby/1.8/gem_home/gems/activesupport-2.2.2/lib/active_support/inflector.rb:280
from /usr/ruby/1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/ruby/1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/ruby/1.8/gem_home/gems/activesupport-2.2.2/lib/active_support.rb:26
from /usr/ruby/1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/ruby/1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/ruby/1.8/gem_home/gems/rails-2.2.2/bin/../lib/rails_generator.rb:28
from /usr/ruby/1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/ruby/1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/ruby/1.8/gem_home/gems/rails-2.2.2/bin/rails:13
from /var/ruby/1.8/gem_home/bin/rails:19:in `load'
from /var/ruby/1.8/gem_home/bin/rails:19
$
何かモジュールが足りないのかな?と調べてみるとフォーラムにも登録されていましたが、どうやら Rails
側の問題らしくチケットが登録されていました。Web Stack のフォーラムには2つあるのですね。OpenSolaris 用の IPS でインストールするもの (Web Stack)、Solaris 10 用と Red Hat Enterprise Linux 用のもの (Sun Web Stack) とでわかれています。
OpenSolaris Web Stack フォーラム:
Sun Web Stack フォーラム:
「OpenSolaris 2008.11 Web Stack 入門ガイド」の目次を載せておきます。おかしな翻訳等ありましたらお知らせください。
OpenSolaris 2008.11 Web Stack 入門ガイド
Sun Web Stack 入門ガイド 目次







% pfexec pkg install java-devこれだと多くのパッケージが必要になりますので SUNWj6dev だけでもたぶん OK です。
% pfexec pkg install SUNWj6devNetBeans 6.5 の開発版は以下からダウンロード可能です。













| Java Development cluster | java-dev |
| AMP Development cluster | amp-dev |
| Ruby Development cluster | ruby-dev |
| GNU Tools Development cluster | gcc-dev |
| Sun Studio Development cluster | ss-dev |







% pfexec pkg install amp-devとすればよいようです。インストールした後は SXDE の時に同様にメニューから Initialize を選べば PHP, Apache も MySQL も動かすことができるようになります。ひとつ注意ですが Initialize をしてから1度リブートする必要があります。
test@opensolaris:~$ pfexec pkg install -v amp-dev Before evaluation: UNEVALUATED: +pkg:/amp-dev@0.5.11,5.11-0.86:20080821T182448Z After evaluation: None -> pkg:/amp-dev@0.5.11,5.11-0.86:20080821T182448Z None -> pkg:/SUNWsvn@1.4.3,5.11-0.98:20080916T180923Z None -> pkg:/SUNWapch22@2.2.8,5.11-0.98:20080916T165548Z None -> pkg:/SUNWneon@0.25.5,5.11-0.98:20080916T171106Z None -> pkg:/SUNWmysql5@5.0.45,5.11-0.98:20080916T170427Z None -> pkg:/SUNWmysql-base@0.5.11,5.11-0.98:20080916T170427Z None -> pkg:/netbeans@6.1,5.11-0.86:20080905T235617Z None -> pkg:/SUNWlibnb-visualweb1@6.1,5.11-0.86:20080905T235737Z None -> pkg:/SUNWlibnb-ide8@6.1,5.11-0.86:20080905T235642Z None -> pkg:/netbeans-incorporation@6.1,5.11-0.86:20080905T235754Z None -> pkg:/SUNWnetbeans-ide@6.1,5.11-0.86:20080905T235620Z None -> pkg:/SUNWnetbeans-desktop@6.1,5.11-0.86:20080905T235619Z None -> pkg:/SUNWlibnb-platform7@6.1,5.11-0.86:20080905T235704Z None -> pkg:/SUNWlibnb-java1@6.1,5.11-0.86:20080905T235652Z None -> pkg:/SUNWlibnb-enterprise4@6.1,5.11-0.86:20080905T235627Z None -> pkg:/SUNWlibnb-cnd1@6.1,5.11-0.86:20080905T235624Z None -> pkg:/SUNWlibnb-gsf1@6.1,5.11-0.86:20080905T235751Z None -> pkg:/SUNWnetbeans-javase@6.1,5.11-0.86:20080905T235622Z None -> pkg:/SUNWlibnb-profiler2@6.1,5.11-0.86:20080905T235708Z None -> pkg:/SUNWlibnb-apisupport1@6.1,5.11-0.86:20080905T235623Z None -> pkg:/SUNWnetbeans-cpp@6.1,5.11-0.86:20080905T235622Z None -> pkg:/SUNWlibnb-xml1@6.1,5.11-0.86:20080905T235748Z None -> pkg:/SUNWnetbeans-javaee@6.1,5.11-0.86:20080905T235622Z None -> pkg:/SUNWlibnb-ruby1@6.1,5.11-0.86:20080905T235711Z None -> pkg:/SUNWnetbeans-ruby@6.1,5.11-0.86:20080905T235622Z None -> pkg:/SUNWmercurial@1.0.2,5.11-0.98:20080916T170051Z None -> pkg:/SUNWphp524doc@5.2.4,5.11-0.98:20080916T171357Z None -> pkg:/SUNWapch22m-jk@1.2.25,5.11-0.98:20080916T165658Z None -> pkg:/SUNWapch22m-security@2.1.5,5.11-0.98:20080916T165705Z None -> pkg:/SUNWapch22d@2.2.8,5.11-0.98:20080916T165642Z None -> pkg:/SUNWcvs@1.12.13,5.11-0.98:20080916T171644Z None -> pkg:/SUNWphp524man@5.2.4,5.11-0.98:20080916T171546Z None -> pkg:/SUNWtcat@5.5.26,5.11-0.98:20080916T180936Z None -> pkg:/SUNWsquid@2.6.17,5.11-0.98:20080916T180903Z None -> pkg:/SUNWpython-twisted@0.5.11,5.11-0.98:20080916T180204Z None -> pkg:/SUNWapch22m-php5@2.2.6,5.11-0.98:20080916T165700Z None -> pkg:/SUNWphp524@5.2.4,5.11-0.98:20080916T171343Z None -> pkg:/SUNWphp524core@5.2.4,5.11-0.98:20080916T171519Z None -> pkg:/SUNWcurl@7.15.5,5.11-0.98:20080916T171641Z None -> pkg:/SUNWgnu-idn@0.6.8,5.11-0.98:20080916T174150Z None -> pkg:/SUNWtidy@1.0.0,5.11-0.98:20080916T181155Z None -> pkg:/SUNWapch22m-fcgid@2.2,5.11-0.98:20080916T165656Z None -> pkg:/SUNWmemcached@1.2.5,5.11-0.98:20080916T170051Z None -> pkg:/SUNWlibevent@1.3.5,5.11-0.98:20080916T175237Z None -> pkg:/SUNWapch22m-dtrace@0.3.1,5.11-0.98:20080916T165612Z None -> pkg:/webstackui@0.5.11,5.11-0.86:20080709T084117Z None -> pkg:/SUNWphp524-pgsql@5.2.4,5.11-0.98:20080916T171357Z None -> pkg:/SUNWpostgr-82-libs@8.2.9,5.11-0.98:20080916T175907Z None -> pkg:/SUNWphp524-mysql@5.2.4,5.11-0.98:20080916T171356ZNetBeans は 6.1 が入っていますが残念ながらまだ英語版です。
This blog copyright 2009 by katakai