各位大神 MAC 系统执行 rails s 时直接返回 env: ruby.exe: No such file or directory 错误,ruby.exe 不应该是 windows 系统的应用程序嘛?在 mac 系统为什么会出现这个报错; 我同事的 macOS 是 10.14.3 版本的 bundle 完成之后可以正常执行。
gemfile 文件内容
gem 'rails', '= 5.1.4'
gem 'mysql2', '>= 0.3.18', '< 0.5'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'therubyracer', platforms: :ruby
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
gem 'redis', '~> 3.0'
gem 'bcrypt', '~> 3.1.7'
gem 'rest-client', '~> 2.0.2'
gem 'sinatra', github: 'sinatra/sinatra', branch: 'master'
gem "refile", require: "refile/rails", github: "refile/refile"
gem "refile-mini_magick"
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end
group :development do
gem 'web-console', '>= 3.3.0'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'savon'
gem 'ruby-pinyin'
gem 'ipparse'
gem 'paperclip'
gem 'spreadsheet'
gem 'excel_rails'
gem 'hpricot'
gem 'httpclient'
错误信息