草庐IT

linecache

全部标签

ruby-on-rails - 在 heroku 上通过 bundler 安装 linecache

我在Rails3.0应用程序上使用RVM并使用Ruby1.9.2。whichruby/home/ved/.rvm/rubies/ruby-1.9.2-p136/bin/ruby当我推送到heroku时,出现以下错误:Installinglinecache19(0.5.12)/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygemsinstaller.rb:164:in`install':linecache19requiresRubyversion>=1.9.2(Gem::InstallError)from/usr/ruby1.8.7/lib/ruby/

ruby-on-rails - 调试器-linecache 安装错误

我尝试安装debugger-linecachegem,但出现以下错误,Buildingnativeextensions.Thiscouldtakeawhile.......ERROR:Errorinstallingdebugger-linecache:ERROR:Failedtobuildgemnativeextension./usr/bin/rubyextconf.rb***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.Che

ruby-on-rails - 安装debugger-linecache(1.1.1)时出错,Bundler无法继续

知道如何解决这个问题吗?Gem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./home/durrantm/.rvm/rubies/ruby-1.9.3-p194/bin/rubyextconf.rbcheckingforvm_core.h...nocheckingforvm_core.h...noMakefilecreationfailed**************************************************************************Nos

ruby-on-rails - 带 ruby​​ 调试器的 Rails 抛出 'Symbol not found: _ruby_current_thread (LoadError)'

我有标准的ruby​​-head和Rails3.1rc4。我按照http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/中的说明安装了ruby​​-debug。但是当我运行railss--debugger时它会抛出这个奇怪的错误/Users/schovi/.rvm/gems/ruby-head/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:in`require':dlopen(/Users/schovi/.rvm

ruby - 在 Ruby 1.9.3 中安装 debugger-linecache 时出错

我的项目需要debugger-linecache1.0.1版,但在尝试安装时遇到以下错误。trunk☺geminstalldebugger-linecache-v'1.0.1'Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingdebugger-linecache:ERROR:Failedtobuildgemnativeextension./Users/jordanscales/.rvm/rubies/ruby-1.9.3-p194/bin/rubyextconf.rbcheckingforvm_cor

ruby-on-rails - 在 Windows 7 x64 上的任何源中都找不到 linecache19-0.5.13

我安装了Ruby,如果我运行的话ruby-v我明白了:ruby1.9.3p125(2012-02-16)[i386-mingw32]如果我在我的应用程序目录中运行railsserver输出:←[31mCouldnotfindmulti_json-1.3.2inanyofthesources←[0m←[33mRun`bundleinstall`toinstallmissinggems.←[0m运行bundleinstall出现这个错误:Fetchingsourceindexforhttp://rubygems.org/Couldnotfindlinecache19-0.5.13inany

ruby-on-rails - rcov + Rails3 rc 现在不再依赖于 linecache

我今天用rcov+Rails3碰壁了。我正在使用Ruby1.9.2-preview3开发我的Rails3应用程序。rcov和relevance-rcov还不适用于Ruby1.9.2。我也找不到任何rcov的分支。这没什么大不了的,因为我可以使用rvm--default1.8.7;轻松切换到Ruby1.8.7;rake测试:覆盖率。然后今天我将我的应用程序从beta4升级到了Rails3.0.0-rc。该版本需要linecache19。问题是linecache19不能用1.8.7编译,只能用1.9.2-preview3,无论我如何配置它的--include-*参数,它都看不到我的vm_c

ruby-on-rails - RubyMine/IDEA ruby​​ 调试器无法在 bundle 模式下加载 linecache gem

在IDEA13(和更早版本,例如11)Ruby中,在bundler中启动调试器(检查运行目标的bundler选项卡中的“在bundle上下文中运行脚本”选项)Ruby,我总是得到/Users/me/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby-eat_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)/Users/me/.rvm/gems/ree-1.8.7-2012.02/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide--dis