« Mac mini 設定etc | メイン | XREA で Ruby on Rails を使う »

2005年03月18日

さくらのレンタルサーバでRubyGemsを使う

さくらのレンタルサーバでは当然のごとく/usr/local/lib/rubyは一般ユーザでは書き込めません。 よってそのままRubyGemsをインストールしようと思っても失敗します。回避するには以下のようにします(シェルアカウントが使えるスタンダードプラン以上の場合)。 具体的なコマンドラインは以下のとおりです。
% setenv RUBYLIB /home/foo/lib/ruby/site_ruby/1.8:/home/foo/lib/ruby
% setenv GEM_HOME /home/foo/lib/ruby/gem
% mkdir /home/foo/lib/ruby/gem
% (rubygemsをダウンロードして展開して、そのディレクトリにcdする)
% ruby setup.rb config --prefix=/home/foo
% ruby setup.rb setup
% ruby setup.rb install

投稿者 tam : 2005年03月18日 14:44

コメント

Edmonton dominated the Carolina Hurricanes on Saturday night and the 4-0 margin in Game 6 makes it hard to imagine the Oilers not hoisting hockey's Holy Grail above their heads in less than 48 hours. And it would not come as any shock to see defenseman Chris Pronger, who had another 31-minute night, take the honors for the Conn Smythe Trophy as the playoff MVP.

投稿者 avivaavih : 2006年06月21日 05:29

ya pidoras, pizu chujie doors, zaabuzte moi url - http://greatpharmacies.com/ a suda pishite pisma i spamte - admass@pisem.net

投稿者 ya pidoras : 2006年07月25日 02:46

It is a lovely--it is a sloop-of-war being the best of his own annual visits to the southward again.

投稿者 fruit dates : 2006年12月30日 07:35

コメントしてください




保存しますか?