草庐IT

ios - 无法安装 Crashlytics

全部标签

ruby-on-rails - Bundler无法继续;错误解析 'Gemfile' : (<unknown>)

在使用这些安装说明时,https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_30x_on_Ubuntu_1404_with_Apache2_Phusion_Passenger_MySQL_Subversion_and_Git_%28Gitolite%29,我在执行以下命令时遇到了问题bundleinstall--withoutdevelopmenttestpostgresqlsqlite并得到以下错误。redmine@zaps-VirtualBox:~/redmine$bundleinstall--wit

ruby - 在我的 Mac 上安装 ruby​​ gem json 时遇到问题

我在尝试通过ruby​​gems安装json模块时收到此警告。有什么想法吗?Mac-Minipoulh$sudogeminstalljsonPassword:WARNING:File'/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/specifications/json-1.2.0.gemspec'doesnotevaluatetoagemspecificationBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errori

ruby - 无法安装任何 gem

我已经使用JavaScript和一些Erlang大约六个月了,最近我没有进行任何Rails编程。今天在我的新电脑上我去安装Rails但出现了这个错误:geminstallrailsWARNING:RubyGems1.2+indexnotfoundfor:http://gems.rubyforge.org/RubyGemswillreverttolegacyindexesdegradingperformance.BulkupdatingGemsourceindexfor:htp://gems.rubyforge.org/ERROR:Whileexecutinggem...(Gem::Re

ruby - 无法让测试单元启动在 ruby​​ 1.9.2 中工作

我正在使用Ruby1.9.2(ruby-vyields:ruby1.9.2p290(2011-07-09revision32553)[x86_64-linux]),我正在尝试让它工作:require'test/unit'classTestStartup当我运行它时,我得到了Loadedsuitetest_startupStartedintest1.Finishedin0.000395seconds.1tests,0assertions,0failures,0errors,0skips我很难找到有关此功能的文档,除了SO等上的零散帖子。是的,我想使用这个功能而不是设置。TIA

ruby - 带有 sprockets 的 Sinatra 应用程序无法在 Heroku 上运行

我有一个包含这个模块的Sinatra小应用程序:moduleSprocketsmoduleHelpersdefasset_path(source)"/assets/#{Environment.instance.find_asset(source).digest_path}"enddefsprocketsEnvironment.instance.call(env)endendclass并定义了以下路由:get('/assets/*')dosprockets#Definedinthemoduleaboveend一切正常,Assets已使用pow在我的本地计算机上正确加载和显示。但是在Her

ruby - 在 Ubuntu 14.04 上使用 RVM 安装 Ruby 2.2.2 时出错

这是什么。我首先做了:rvmgetstablervminstallruby-2.2.2没有交易。它向我展示了以下内容:$rvminstallruby-2.2.2Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:ubuntu/14.04/i386/ruby-2.2.2.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Checkingrequirementsforubunt

ruby - 如何在 github 操作中捆绑安装私有(private) gem

我想通过github操作在gem上运行rspec(称之为priv_gem_a)。priv_gem_a依赖于私有(private)存储库中的另一个gem(称之为priv_gem_b)。但是,由于权限无效,我无法捆绑安装priv_gem_b。错误:Fetchinggemmetadatafromhttps://rubygems.org/..........Fetchinggit@github.com:myorg/priv_gem_bHostkeyverificationfailed.fatal:Couldnotreadfromremoterepository.Pleasemakesureyo

ruby-on-rails - 无法加载 lib 目录模块 - 未初始化的常量 - rails 2 到 rails 3 升级

我目前正在将Railsv2中的应用程序迁移到v3在我的lib/我在子目录中有一些模块,例如,我有lib/search/host_search.rb有一个moduleHostSearchdefdo_search(args)#...endend然后我需要在名为Discovery::HostController的Controller中使用它defsearch_resultsoutput=HostSearch.do_search(:search_string=>@search_string,:page=>params[:page],:user=>@current_user)#...end但是我

ruby-on-rails - 尝试登录和使用 heroku 时无法识别 ruby​​.exe

当尝试创建一个heroku应用程序并通过git推送到它时,我收到以下错误:$herokucreate'"C:\ProgramFiles\ruby-1.9.2\bin\ruby.exe"isnotrecognizedasaninternalorexternalcommand,operableprogramorbatchfile.但是,$ruby-vruby1.9.3p125[i386-mingw32]我已经检查了PATH环境,它肯定包含“C:\ProgramFiles(x86)\ruby-1.9.2\bin”。同样有趣的是,当导航到该目录时,它实际上并不包含名为ruby​​.exe的文件

ruby-on-rails - 报错 - 在 Snow Leopard 上安装 RVM

我正在尝试在我的SnowLeopard10.6.8上安装RVM,方法是:\curl-Lhttps://get.rvm.io|bash-sstable--ruby我得到这个错误:InstallingRubyfromsourceto:/Users/Villa/.rvm/rubies/ruby-2.0.0-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-2.0.0-p0-#downloadingruby-2.0.0-p0,thismaytakeawhiledependingonyourconnection...ruby-2.0.0-p0-#e