สวัสดีค่ะ
ดิฉันพยายามลง kv ตามนี้เว็บ
http://rd.cc.psu.ac.th/content/view/98/48
ค่ะ ตอนแรกลงบน ubuntu 6.06 ติดปัญหาเยอะ พอสมควร ค้น google ไปมา
ได้เห็นข้อความแนะนำ ว่าลงบน debian ได้ ดิฉันก็เลยลองลงบน debian
testing ก็ประสบปัญหานิดหน่อย ๆ ก็พอผ่านไปได้ แบบไม่ค่อยเข้าใจ
ดิฉันไม่เคยลง ruby มาก่อน ซอฟต์แวร์ที่ลงมีดังนี้ค่ะ
ruby ri rdoc libyaml-ruby libzlib-ruby irb libopenssl-ruby version
4.2 สั่ง apt-get
ruby1.8-dev version 1.8.7.22-1 สั่ง apt-get
memcached version 1.2.2-1 สั่ง apt-get
rubygems-0.9.4.tgz install ด้วยมือ ตามคำแนะนำ
imagemagick 7:6.3.7.9.dfsg1-2+b2 สั่ง apt-get
libmagick9-dev 7:6.3.7.9.dfsg1-2+b2 สั่ง apt-get
mysql-server 5.0.51a-6 สั่ง apt-get
libmysqlclient12-dev 4.0.24-10sarge3 install ด้วยมือ dpkg น่ะค่ะ
libmysql-ruby1.8 2.7.4-1 สั่ง apt-get
apache2 2.2.9-2 สั่ง apt-get
พอประมาณขั้นตอนที่ 14 ก็สั่ง sudo rake db:migrate ได้ error ดังนี้
(in /var/www/html/kv)
rake aborted!
development database is not configured
(See full trace by running task with --trace)
ก่อนหน้านั้นก็ไม่แน่ใจเหมือกันว่ามี error อะไรหรือเปล่า
แต่ก็ลงได้ปกตินะค่ะ
ดิฉันไม่แน่ใจเรียกว่า error หรือเปล่า ก็เลยลองทำขั้นตอนต่อไปเรื่อย ๆ
ดิฉันใช้ apache2 ตามเว็บ แต่เห็นหลายความคิดเห็นให้ใช้ lighthttp จริง ๆ
ใช้ apache ก็ได้ใช่หรือเปล่าค่ะ?
rubygem ที่ลงเป็นดังนี้ค่ะ อ่านวนไปวนมาเลย งง ว่าควรลงตัวไหน
ไม่ควรลงตัวไหน
*** LOCAL GEMS ***
abstract (1.0.0)
a library which enable you to define abstract method in Ruby
actionmailer (2.1.0)
Service layer for easy email delivery and testing.
actionpack (2.1.0)
Web-flow and rendering framework putting the VC in MVC.
activerecord (2.1.0)
Implements the ActiveRecord pattern for ORM.
activeresource (2.1.0)
Think Active Record for web resources.
activesupport (2.1.0)
Support and utility classes used by the Rails framework.
cached_model (1.3.1)
An ActiveRecord abstract model that caches records in memcached
cgi_multipart_eof_fix (2.5.0)
Fix an exploitable bug in CGI multipart parsing.
color-tools (1.3.0)
color-tools provides colour space definition and manpiulation as
well as commonly named RGB colours.
daemons (1.0.10)
A toolkit to create and control daemons in different ways
erubis (2.6.2)
a fast and extensible eRuby implementation which supports
multi-language
fastthread (1.0.1)
Optimized replacement for thread.rb primitives
gd2 (1.1.1)
Ruby interface to gd 2 library.
gem_plugin (0.2.3)
A plugin system based on rubygems that uses dependencies only
gettext (1.90.0)
Ruby-GetText-Package is a libary and tools to localize messages.
hoe (1.7.0)
Hoe is a simple rake/rubygems helper for project Rakefiles
io-reactor (0.05)
An implementation of the Reactor design pattern for multiplexed
asynchronous single-thread IO.
memcache-client (1.5.0)
A Ruby memcached client
mongrel (1.1.5)
A small fast HTTP library and server that runs Rails, Camping,
Nitro
and Iowa apps.
mongrel_cluster (1.0.5)
Mongrel plugin that provides commands and Capistrano tasks for
managing multiple Mongrel processes.
rails (2.1.0)
Web-application framework with template engine, control-flow
layer,
and ORM.
rake (0.8.1)
Ruby based make-like utility.
RedCloth (3.0.4)
RedCloth is a module for using Textile and Markdown in Ruby.
Textile
and Markdown are text formats. A very simple text format. Another
stab at making readable text that can be converted to HTML.
rmagick (2.5.1)
Ruby binding to ImageMagick
rubyforge (1.0.0)
A script which automates a limited set of rubyforge operations
sources (0.0.1)
This package provides download sources for remote gem installation
ZenTest (3.10.0)
ZenTest provides 4 different tools and 1 library: zentest,
unit_diff, autotest, multiruby, and Test::Rails
ตอนรัน script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.1.0 application starting on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at
0.0.0.0:3000
** Starting Rails with production environment...
Exiting
/usr/lib/ruby/gems/1.8/gems/cached_model-1.3.1/lib/cached_model.rb:77:
1.90.0 is not a class/module (TypeError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
32:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
32:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /var/www/html/kv/config/environment.rb:58
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/
mongrel/rails.rb:147:in `rails'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:113:in `cloaker_'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:149:in `call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:149:in `listener'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:99:in `cloaker_'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:50:in `call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:50:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:84:in `new'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:84:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
command.rb:212:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:281
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:502:in `load'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:502:in `load'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:502:in `load'
from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/
servers/mongrel.rb:64
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/
server.rb:39
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from script/server:3
รบกวนด้วยนะค่ะ ขอบพระคุณค่ะ
อันธิฌา