[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dennou-ruby:002752] GfdNavi を Windo wsに入れてみました。



乙部です。

苦労しながらもGfdNaviのインストールを試みてみました。
苦労の大半はしょうもないことですけど、引っかかりやすいこともあるので
いずれまとめます。
とりあえず、僕なりにわかったことをずらずらと書きます。

gfdnaviのTUTORIAL1.htmlに従いやっていくとだいたいうまくいきます。

rails は 1.1.6を使ってみました。(たぶん1.2.2でもある程度は
いけるのですが、解決できないことがありましたので。)
MySQLは5.0.2です。

1)config/gfdnavi.yml が無いのでsampleをコピーしました。
2)1.2.2ではActionMailerが初期化されないので
  config/environment.rbの

  require File.join(File.dirname(__FILE__), 'boot')
  Rails::Initializer.run do |config|

  の順番を入れ替えました。

  1.1.6では必要なかったですが一応。

3)rails-1.2.2ではログインが出来ない。
  原因はさしあたり不明

4)手順に従いサーバーを起動するとディレクトリツリーが見えません。
  何が原因かは不明。パスワードの変更やユーザーの追加は出来る

5)ところが
  ruby script\server --port 3003 -e test
  なら、ディレクトリツリーが見えてチュートリアル通りに作業が出来ます。
  ただし、drawボタンを押すと  下のようなエラーが出ます。
  ので、実際には描画するところまでたどり着いていません。

error occured in server

NotImplementedError in AnalysisController#execute

the fork() function is unimplemented on this machine

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace

#{RAILS_ROOT}/app/controllers/analysis_controller.rb:830:in `fork'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:830:in `system_with_error'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:405:in `viz_to_diagram'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:393:in `times'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:393:in `viz_to_diagram'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:386:in `draw'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:125:in `execute'

c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `send'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
c:/NumRu/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
c:/NumRu/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/NumRu/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
script/server:3

#{RAILS_ROOT}/app/controllers/analysis_controller.rb:830:in `fork'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:830:in `system_with_error'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:405:in `viz_to_diagram'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:393:in `times'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:393:in `viz_to_diagram'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:386:in `draw'
#{RAILS_ROOT}/app/controllers/analysis_controller.rb:125:in `execute'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `send'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
c:/NumRu/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
c:/NumRu/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/NumRu/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/NumRu/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/NumRu/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
c:/NumRu/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
script/server:3

Request

Parameters: {"variables"=>{"1"=>"1"}, "analysis"=>{"y_axis"=>"1", "draw_keep"=>"0", "color_bar"=>"1", "region"=>{"0"=>{"max"=>"350", "min"=>"0"}, "1"=>{"max"=>"-90", "min"=>"90"}, "2"=>{"max"=>"10", "min"=>"1000"}}, "draw_contour"=>"1", "draw_tone"=>"1", "draw_share"=>"1", "tone_max"=>"", "x_axis"=>"0", "tone_min"=>"", "draw_projection"=>"1", "tone_levels"=>"", "draw_type"=>"1", "tone_nlev"=>"", "draw_size"=>"1"}, "action_type"=>"draw"}

Show session dump

==================================================
福岡大学 理学部 地球圏科学教室
Otobe,Naohito (E-Mail:otobe@xxxxxxxxxxxxxx)
==================================================