欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-06-17 11:18:20
使用 bundle install 安装的 gem, 在代码中 require, 运行时如果提示 cannot load such file, 使用 bundle exec 执行即可 ......
  /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 执行即可