Mình đã cài đặt thành công ruby on rails và chạy tốt với sqlite nhưng khi chuyển sang chạy với mysql thì có lỗi và không biết cách nào khắc phục. Mong được hướng dẫn giúp:

C:\Sites>rails new myApp -d mysql
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/cookies_serializer.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
run bundle install
D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1
.1/lib/rails/generators/app_base.rb:331:in ``': No such file or directory - ""D:
/System Program/RailsInstaller/Ruby1.9.3/bin/ruby.exe"" "D:/System Program/Rails
Installer/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/bin/bundle" install (
Errno::ENOENT)
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/railties-4.1.1/lib/rails/generators/app_base.rb:331:in `block in bundle_command
'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/bundler-1.6.3/lib/bundler.rb:235:in `block in with_clean_env'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/bundler-1.6.3/lib/bundler.rb:222:in `with_original_env'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/bundler-1.6.3/lib/bundler.rb:228:in `with_clean_env'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/railties-4.1.1/lib/rails/generators/app_base.rb:330:in `bundle_command'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/railties-4.1.1/lib/rails/generators/app_base.rb:345:in `run_bundle'
from (eval):1:in `run_bundle'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/command.rb:27:in `run'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/thor-0.19.1/lib/thor/base.rb:440:in `start'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/railties-4.1.1/lib/rails/commands/application.rb:17:in `<top (required)>'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1
/rubygems/custom_require.rb:55:in `require'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1
/rubygems/custom_require.rb:55:in `require'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/railties-4.1.1/lib/rails/cli.rb:14:in `<top (required)>'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1
/rubygems/custom_require.rb:55:in `require'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1
/rubygems/custom_require.rb:55:in `require'
from D:/System Program/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
/railties-4.1.1/bin/rails:9:in `<top (required)>'
from D:/System Program/RailsInstaller/Ruby1.9.3/bin/rails:23:in `load'
from D:/System Program/RailsInstaller/Ruby1.9.3/bin/rails:23:in `<main>'


Bình luận

  • TTCN (0)