忘備録

日々の情報を書きます。

2011年09月

[redmine]redmine続き

以下引用: http://rails.lighthouseapp.com/projects/8994/tickets/99-sqlite-connection-failing によると、 sqlite3 のアダプタに問題があるようなので、 /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/sqlite3_adapter.rb を以下のように修正した。 module ConnectionAdapters #:nodoc: class SQLite3Adapter < SQLiteAdapter # :nodoc: def table_structure(table_name) #returning structure = @connection.table_info(quote_table_name(table_name)) do ← quote_table_name を外した returning structure = @connection.table_info(table_name) do raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty? end end end end 引用終了

rake db:migrate RAILS_ENV=production
再実施

サービス再起動して

http://localhost::4000/

アクセスしたら、成功!!!

途中どこか、書き忘れがあるけど、一応動くようになった。
地道な作業だった。

redmine


[redmine]redmineインストール

redmineにsqliteを入れようと

D:\redmine-1.0.0>gem install sqlite3-ruby
ERROR:  Error installing sqlite3-ruby:
        sqlite3 requires RubyGems version >= 1.3.5


gem update --system

D:\redmine-1.0.0>gem -v
1.8.10

D:\redmine-1.0.0>gem install sqlite3-ruby
Fetching: sqlite3-ruby-1.3.3.gem (100%)

#######################################################

Hello! The sqlite3-ruby gem has changed it's name to just sqlite3.  Rather than
installing `sqlite3-ruby`, you should install `sqlite3`.  Please update your
dependencies accordingly.

Thanks from the Ruby sqlite3 team!

<3 <3 <3 <3

#######################################################

Successfully installed sqlite3-1.3.4-x86-mswin32-60
Successfully installed sqlite3-ruby-1.3.3
2 gems installed
Installing ri documentation for sqlite3-1.3.4-x86-mswin32-60...
Installing ri documentation for sqlite3-ruby-1.3.3...
Installing RDoc documentation for sqlite3-1.3.4-x86-mswin32-60...
Installing RDoc documentation for sqlite3-ruby-1.3.3...

うまくいった


D:\redmine-1.0.0>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fxri (0.3.7)
fxruby (1.6.16 x86-mswin32-60)
hpricot (0.8.4 i386-mswin32)
log4r (1.1.9)
mkrf (0.2.3)
pkg-config (1.1.2)
ptools (1.2.1)
rack (1.3.2)
rails (2.3.5)
rake (0.9.2)
rdoc (3.9.4)
ruby-opengl (0.60.0 i386-mswin32)
rubygems-update (1.8.10, 1.3.2)
sqlite3 (1.3.4 x86-mswin32-60)
sqlite3-ruby (1.3.3)
test-unit (2.3.2)
win32-api (1.2.1 x86-mswin32-60)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.2)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.6)
win32-sound (0.4.1)
windows-api (0.2.4)
windows-pr (0.9.3)

gem install RedCloth

D:\redmine-1.0.0>gem install mongrel_service
Fetching: gem_plugin-0.2.3.gem (100%)
Fetching: cgi_multipart_eof_fix-2.5.0.gem (100%)
Fetching: mongrel-1.1.5-x86-mswin32-60.gem (100%)
Fetching: mongrel_service-0.4.0.gem (100%)
Successfully installed gem_plugin-0.2.3
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5-x86-mswin32-60
Successfully installed mongrel_service-0.4.0
4 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5-x86-mswin32-60...
Installing ri documentation for mongrel_service-0.4.0...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5-x86-mswin32-60...
Installing RDoc documentation for mongrel_service-0.4.0...

gem update --system 1.7.1


D:\redmine-1.0.0>rake db:migrate RAILS_ENV="production"
NOTE: SourceIndex.new(hash) is deprecated; From D:/redmine-1.0.0/config/../vendo
r/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex

(See full trace by running task with --trace)


Railsインストール

◆Railsインストール

gem install rails

ERROR:  Error installing rails:
        rake requires RubyGems version >= 1.3.2


D:\Ruby>gem install RubyGems-1.3.2
ERROR:  could not find gem RubyGems-1.3.2 locally or in a repository

http://rubyforge.org/frs/?group_id=126&release_id=46225
から1.32のrubygems をD:\Rubyへダウンロード

D:\Ruby>gem install rubygems -l
Successfully installed rubygems-update-1.3.2
1 gem installed

update_rubygems

RubyGems installed the following executables:
        D:/Ruby/bin/gem

再び
gem install rails

ERROR:  Error installing rails:
        rdoc requires Ruby version >= 1.8.7

下記から、Rubyの1.8.7をダウンロード
http://www.garbagecollect.jp/ruby/mswin32/ja/download/release.html

D:\Ruby>ruby -v
ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mswin32]

D:\Ruby>gem install rails
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
ERROR:  Error installing rails:
        multi_json requires RubyGems version >= 1.3.6

gem update
D:\Ruby>gem install pkg-config --include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Successfully installed pkg-config-1.1.2
1 gem installed

D:\Ruby>gem install rails --include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
ERROR:  Error installing rails:
        multi_json requires RubyGems version >= 1.3.6

D:\Ruby>gem update --system

D:\Ruby>gem install rails --include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
ERROR:  Error installing rails:
        multi_json requires RubyGems version >= 1.3.6

gem install rails -v=2.1

D:\Ruby>gem install rails -v=2.1.0
Successfully installed activesupport-2.1.0
Successfully installed activerecord-2.1.0
Successfully installed actionpack-2.1.0
Successfully installed actionmailer-2.1.0
Successfully installed activeresource-2.1.0
Successfully installed rails-2.1.0
6 gems installed
Installing ri documentation for activesupport-2.1.0...

[redmine]Rubyインストール

◆Rubyインストール

「One-Click Installer - Window」

http://rubyforge.org/projects/rubyinstaller/
4. One-Click Installer (old)1.8.6-27 Release Candidate 2
をダウンロード

セットアップ実行
QRコード
QRコード
  • ライブドアブログ