Ubuntu8.10へのインストール手順メモ
応答メッセージも一部表記
$ cd /home/user/
$ sudo apt-get install ruby
$ sudo apt-get install rubygems
$ sudo apt-get install libmysqlclient15-dev
$ sudo apt-get install rake
$ sudo gem update –system
$ sudo rm /usr/bin/gem
$ ln -s /usr/bin/gem1.8 /usr/bin/gem
$ sudo gem install gettext
$ sudo gem install fastercsv
$ sudo gem install ruby-openid
$ sudo gem install rspec
$ sudo gem install rails –version 2.1.2
$ sudo gem install mysql
Building native extensions. This could take a while…
Successfully installed mysql-2.7
$wget http://www.openskip.org/download/release/skip-1.0.1.tar.gz
$ tar zxvf skip-1.0.1.tar.gz
$ cd skip-1.0.1/
$ cp config/initial_settings.yml.sample config/initial_settings.yml
$ cp config/database.yml.sample config/database.yml
$vi config/initial_settings.yml
$vi config/database.yml
$ sudo RAILS_ENV=production rake –trace db:create
(in /home/user/skip-1.0.1)
** Invoke db:create (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:create
$ sudo RAILS_ENV=production rake –trace db:migrate
(in /home/user/skip-1.0.1)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== 1 CreateDefaultTables: migrating ===========================================
— create_table(:accounts)
-> 0.0047s
— add_index(“accounts”, [“code”], {:name=>”index_accounts_on_code”, :unique=>true})
-> 0.0058s
— create_table(:antenna_items)
-> 0.0034s
— create_table(:antennas)
-> 0.0027s
— create_table(:applied_emails)
-> 0.0032s
— create_table(:board_entries)
-> 0.0048s
(中略)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
$ sudo ruby lib/create_new_admin_url.rb –code
“activation_codeを発行しました。初期管理者登録用URLは以下の通りです。”
“http://localhost:3000/admin/users/new/first?code=25aedca9xxxxxxxxxxxxxxxxxxx”
$ sudo ruby ./script/server -e production
=> Booting WEBrick…
=> Rails 2.1.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options
[2009-01-11 00:23:54] INFO WEBrick 1.3.1
[2009-01-11 00:23:54] INFO ruby 1.8.6 (2007-09-24) [i486-linux]
[2009-01-11 00:23:54] INFO WEBrick::HTTPServer#start: pid=18292 port=3000
SKIPインストール手順(Ubuntu8.10) http://t.co/1dLj6lfd