The Pragmatic Ball boy

iOSを中心にやってる万年球拾いの老害エンジニアメモ

ubuntu 11.10にGitoriousをインストール

だいたいここのをそのまんまでできましたが、はまったりして2時間ほどかかりました・・
http://coding-journal.com/installing-gitorious-on-ubuntu-11-04/

手順と違ったところ

その1
passenger.loadのpassengerのバージョンが私の環境だと3.0.9ではなく、3.0.11だったので変更しました。
    LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9
    PassengerRuby /usr/bin/ruby1.8


その2
ここでエラーがでました

export RAILS_ENV=production && \
    bundle exec rake db:create && \
    bundle exec rake db:migrate && \
    bundle exec rake ultrasphinx:bootstrap


・対処方法
rootにsu

1. git clone git://github.com/roman/rots.git
2. cd rots && gem build rots.gemspec && gem install rots-0.2.1.gem
3. rm -rf /usr/lib/ruby/gems/1.8/bundler/gems/rots-babb5559aae8
4. このファイルを編集 /var/www/gitorious/Gemfile:
この行を gem “rots”, :git => ‘https://github.com/roman/rots.git
これに変更 gem “rots”, “~> 0.2.1″
5. これを実行 bundle install && bundle pack

んでgitにsuして、export RAILS_ENVからやり直せばOK

その3
Apacheのホスト設定を/etc/apache2/httpd.confに記述する必要があります.


ServerName (ホスト名)
DocumentRoot /var/www/gitorious/public


これで localhost:80 を開いて表示されればOKなはず。

その4
リポジトリが生成できない。。

Webページからリポジトリを作成しても This repositories is being created...
がいつまでたっても終わらないというもの。

以下を実行したら解決

env RAILS_ENV=production script/poller start