草庐IT

ruby - jruby -S bundle install jruby : No such file or directory -- bundle (LoadError)

我有我的ruby​​onrails应用程序,我已经在我的WindowsXP中安装了jruby-1.7.4。当我尝试运行jruby-Sbundleinstall时,它给我一个错误jruby:Nosuchfileordirectory--bundle(LoadError)我真的很纠结这个错误..请帮助.. 最佳答案 Bundler可能没有安装。您可以检查jruby-Sgemlist的输出来验证,然后安装它:jruby-Sgeminstallbundler一般来说,LoadError意味着您缺少gem依赖项。

ruby-on-rails - Rails bundle - 糟糕的解释器

我一直在使用sublimetext开发一个Rails项目,然后切换到ruby​​mine。它说没有安装项目中需要的一些gem。好吧,我尝试安装它们,但失败并出现错误,指出使用的ruby​​版本与gem文件中指定的版本不同。当我输入ruby-v时,它看起来像是同一个版本。然后我尝试重新安装ruby​​版本(2.0.0),但没有成功,我安装了2.1.0,希望它能设置正确的路径和所有内容。当我现在尝试输入bundle时,出现以下错误:bash:/Users/user/.rvm/gems/ruby-2.0.0-p353/bin/bundle:/Users/user/.rvm/rubies/ru

ruby - 使用 bundle 程序以编程方式确定 gem 的路径

我知道你能做到bundleshowgem_name显示一些gem的路径。如何使用Bundler对象在代码中做到这一点? 最佳答案 看看他们是如何做到的cli.rbdeflocate_gem(name)spec=Bundler.load.specs.find{|s|s.name==name}raiseGemNotFound,"Couldnotfindgem'#{name}'inthecurrentbundle."unlessspecifspec.name=='bundler'returnFile.expand_path('../../

ruby - `bundle install` 由于权限被拒绝而失败

我已经在我的新服务器上安装了bundlergem,当我尝试执行bundleinstall时,它失败并出现此错误:Unfortunately,afatalerrorhasoccurred.PleaseseetheBundlertroubleshootingdocumentationathttp://bit.ly/bundler-issues.Thanks!/usr/lib/ruby/1.9.1/fileutils.rb:247:in`mkdir':Permissiondenied-/var/lib/gems(Errno::EACCES)我的服务器是Debianwheezy(7.1),默认

ruby - bundle exec 和 require 'bundler/setup' 是否等效?

这些事情完成的是否完全相同?使用bundleexecruby​​foo.rb启动ruby​​进程将require"bundler/setup"作为foo.rb的第一行 最佳答案 在您的特定示例中,它们可以被认为是相同的,但实际上它们并不相同。bundleexec对bundler/setup没有进行的环境进行了一些更改。如果您的foo.rb从不运行子shell,或者从不尝试在子shell中运行其他ruby​​可执行文件,那么这两个版本是等效的(它们都将正确加载bundle的gem并且工作完全相同)。bundleexec的整个想法是让您

ruby-on-rails - bundle 安装 : ERROR: Failed to build gem native extension. nio4r gem

我目前正在使用以下项目进行项目:rvm1.26.11ruby2.2.1p85我尝试运行bundleinstall但不断收到以下错误:Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension.并且,以下:Anerroroccurredwhileinstallingnio4r(1.0.0),andBundlercannotcontinue.Makesurethat`geminstallnio4r-v'1.0.0'`succeedsbeforebundling.当我尝试运行geminstallnio4r-v'1.0.0'时:Buil

ruby-on-rails - 由于 'eventmachine 1.0.3',无法 bundle 安装

$bundle安装Errno::ENOENT:Nosuchfileordirectory@rb_sysopen-/Users/Sean/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3/ext/gem_make.outAnerroroccurredwhileinstallingeventmachine(1.0.3),andBundlercannotcontinue.Makesurethat`geminstalleventmachine-v'1.0.3'`succeedsbeforebundling.$ge

ruby-on-rails - 当我运行 `bundle exec rake test:prepare` 时它出错了,但是 `bundle exec rake db:test:prepare` 运行正常但有警告。这是怎么回事?

所以根据thislink一个是快捷方式包装器(所以我猜它们是一样的)。当我运行bundleexecrakedb:test:prepare时,我得到了这个错误:Don'tknowhowtobuildtask'test:prepare'/Users/aj/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/bin/ruby_executable_hooks:15:in`eval'/Users/aj/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/bin/ruby_executable_hoo

ruby - zsh : command not found: bundle (after gem install bundle)

为什么zsh:commandnotfound:bundle在geminstallbundler之后?我尝试设置path=(/usr/local/lib/ruby/gems/2.2/gems/~/bin/bin/sbin/usr/bin/usr/sbin/usr/local/bin/usr/local/sbin)在/etc/zshrc和source/etc/zshrc中无济于事。root@dev:/home/dev#geminstallbundlerSuccessfullyinstalledbundler-1.7.12Parsingdocumentationforbundler-1.7.

ruby-on-rails - 运行 bundle install 时出现 Nokogiri 错误

尝试让克隆的Rails应用程序运行。运行bundleinstall时出现此错误:Usingmini_portile(0.5.0)Installingnokogiri(1.6.0)Gem::InstallError:nokogirirequiresRubyversion>=1.9.2.Anerroroccurredwhileinstallingnokogiri(1.6.0),andBundlercannotcontinue.Makesurethat`geminstallnokogiri-v'1.6.0'`succeedsbeforebundling.但这是rbenvversion的输出: