bundle install 安装的 gem 提示 cannot load such file

  /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- sequel (LoadError)
    from /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from dna_in.rb:2:in `<main>'

 使用 bundle install 安装的 gem, 在代码中 require, 运行时如果提示 cannot load such file, 使用 bundle exec 执行即可

posted on 2019-02-14 19:52  bwlx  阅读(1069)  评论(0编辑  收藏  举报

导航