草庐IT

INSTALL_FAILED_OLDER_SDK

全部标签

ruby - 为什么 `rvm install ruby-2.1.0` 会安装 preview1?

我刚刚尝试安装Ruby2.1,却安装了2.1Preview1。这对我来说似乎很疯狂。2.1出来了。当我说rvminstallruby​​-2.1.0时,为什么RVM会认为我真的的意思是rvminstallruby​​-2.1.0-预览1?为什么它不匹配我指定的精确版本,而不是以该子字符串开头的版本? 最佳答案 愚蠢的澄清问题(如果我有足够的声誉,我会把它作为评论发布),但是你最近更新了RVM了吗?rvmgetstable(或者如果你想生活在边缘,rvmgethead)我预计会更新已发布的ruby​​版本的内部列表。

ruby-on-rails - sudo gem install pg 不起作用

我正在尝试让Rails与PostgreSQL一起工作。显然,我一路上需要做的一件事是sudogeminstallpg。当我这样做时,我得到了这个:jason@buster:~/projects$sudogeminstallpgBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension./usr/bin/ruby1.8extconf.rbextconf.rb:2:in`require':nosuchfiletoload--mkmf(

ruby - 未初始化常量 AWS::S3::Base 通过 AWS-SDK

这是我遇到的一个问题,因为在我升级到具有较新版本回形针的AWS-SDK(而不是aws-s3)后,我无法再调用AWS::S3::Base.establish_connection!根本。在我的代码中调用的地方AWS::S3::Base.establish_connection!(:access_key_id=>'****',:secret_access_key=>'***')我收到这个错误...NameError(uninitializedconstantAWS::S3::Base):app/models/asset.rb:28:in`move_upload_from_temp_to_f

ruby-on-rails - 运行 autoconf 时 rvm install 1.9.2 失败?

当我运行时rvminstall1.9.2我在尝试运行autoconf时遇到错误。这是堆栈跟踪:kenmare:ruby-1.9.2-p0lee$rvminstall1.9.2-p0/Users/lee/.rvm/rubies/ruby-1.9.2-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.2-p0-#fetchingruby-1.9.2-p0-#extractedto/Users/lee/.rvm/src/ruby-1.9.2-p0(alreadyextracted)RunningautoconfErrorrunning'

ruby-on-rails - 安装 ruby​​Mine 时出错,未指定 SDK,但已列出

尝试运行任何命令(例如启动Rails服务器)时出现“无法安装gems:未指定SDK”。为什么我会收到此消息?我该如何解决?我以前遇到过JDK问题,但没有看到此SDK错误。 最佳答案 我进入设置并且已经列出了一个SDK,但是直到我点击“更新gems”,一切都安装好了。然后我就可以正常启动和使用该应用程序了。 关于ruby-on-rails-安装ruby​​Mine时出错,未指定SDK,但已列出,我们在StackOverflow上找到一个类似的问题: https:

ruby - 请安装 postgresql 适配器 : `gem install activerecord-postgresql-adapter`

这个问题在这里已经有了答案:关闭11年前。PossibleDuplicate:HowtohandleRubyonRailserror:“Pleaseinstallthepostgresqladapter:`geminstallactiverecord-postgresql-adapter'”我正在尝试让Redmine与postgres一起工作。在我的日志中,我不断看到。Pleaseinstallthepostgresqladapter:`geminstallactiverecord-postgresql-adapter`在谷歌搜索之后,每个人都说你需要做geminstallpg。但是当

ruby-on-rails - gem install mysql2 v '0.3.11' 无法在 Yosemite 上运行

在ruby​​版本1.9.3(rvm)上执行mysql2版本0.3.11的捆绑安装或直接gem安装时,我收到以下错误。但是当我安装最新版本0.3.16时它可以工作。我还包含了我的gcc版本以供引用。Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./Users/ginocarlocortez/.rvm/rubies/ruby-1.9.3-p547/bin/rubyextconf.rbcheckingforrb_thread_blocking_region()...yescheckingforrb_wait_for_si

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-on-rails - 安装调试器(1.6.8)时出错,Bundler 无法继续。确保 `gem install debugger -v ' 1.6。 8'`

通过geminstalldebugger-v'1.6.8'安装调试器时似乎有递归效果,它说安装成功,但是当我执行bundleinstall时,消息再次出现或bundle更新|20:15:37|~geminstalldebugger-v'1.6.8'Buildingnativeextensions.Thiscouldtakeawhile...Successfullyinstalleddebugger-1.6.8Parsingdocumentationfordebugger-1.6.8unabletoconvert"\xCF"fromASCII-8BITtoUTF-8forlib/ruby

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