草庐IT

版本升级

全部标签

ruby - SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: 版本号错误 (OpenSSL::SSL::SSLError)

当我运行https.ssl_version=:TLSv1_2我得到了错误ruby/2.1.0/net/http.rb:920:in`connect':SSL_connectreturned=1errno=0state=SSLv3readserverhelloA:wrongversionnumber(OpenSSL::SSL::SSLError)当我更改为https.ssl_version=:SSLv3ruby/2.1.0/net/http.rb:920:in`connect':SSL_connectSYSCALLreturned=5errno=0state=SSLv3readserve

ruby - 使用 RVM,但无法设置当前的 Ruby 版本 (Ubuntu 11.10)

我最近在全新安装的Ubuntu11.10上安装了RVM,但不知道如何开始使用特定的ruby​​版本。我已经安装了Ruby1.8.7和1.9.2,它们在列表中显示得很好:$rvmlistrvmrubiesruby-1.8.7-p352[i386]ruby-1.9.2-p290[i386]当我尝试使用“use”命令时,一切似乎都很好:$rvmuse1.9.2Using/usr/share/ruby-rvm/gems/ruby-1.9.2-p290Running/usr/share/ruby-rvm/hooks/after_use但是当我测试当前的ruby​​版本时,我得到了当你根本没有RV

ruby & rvm - 如何安装 "p"版本的 ruby

如何使用rvm安装特定版本的Ruby,例如1.9.3p327而不是我当前的1.9.3p194。所有引用资料和文档都是关于主要版本的,例如rvminstall1.9.3但不要提及“p”次要版本号。我试过了$rvminstall1.9.3p327Unknownrubyinterpreterversion:'1.9.3p327'.Couldnotdetectrubyversion/nameforinstallation,pleasebemorespecific.$ruby-vruby1.9.3p194(2012-04-20revision35410)[i686-linux]$rvminsta

ruby - Rails 4 升级后格式化程序错误的未定义方法 `tagged'

我已经按照RubyScreencast指南从Rails3.2升级到Rails4。我的测试正在运行并且服务器已启动,但我在发送请求时收到错误消息:ERRORNoMethodError:undefinedmethod`tagged'for#/home/mahoni/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in`tagged'/home/mahoni/.rvm/gems/ruby-2.0.0-p195/gems/railties-4.0.0/lib/r

ruby - Jekyll 默认使用系统 Ruby 版本而不是 RVM 版本

我已经查看了数十篇关于此的帖子,但仍然不太明白/没有找到相同的情况。基本上,我有默认设置为Ruby2.0.0的RVM,但是当我使用我的Jekyll页面进入目录并运行时jekyllserve结果是/Library/Ruby/Site/1.8/rubygems/dependency.rb:298:in`to_specs':Couldnotfind'jekyll'(>=0)among5totalgem(s)(Gem::LoadError)from/Library/Ruby/Site/1.8/rubygems/dependency.rb:309:in`to_spec'from/Library/

Ruby 使用了错误版本的 openssl

$brewinstallopensslWarning:openssl-1.0.2a-1alreadyinstalled$opensslversionOpenSSL0.9.8zd8Jan2015$ruby-ropenssl-e'putsOpenSSL::OPENSSL_VERSION'OpenSSL1.0.1j15Oct2014$rvm-vrvm1.26.11(latest)byWayneE.Seguin,MichalPapis[https://rvm.io/]我发现openssl版本之间存在很多差异。Homebrew认为它在1.0.2a-1上,openssl本身认为它在0.9.8zd上

ruby-on-rails - 你的 Ruby 版本是 2.2.4,但是你的 Gemfile 指定了 2.3.0?

我正在尝试在GitBash中捆绑安装一个ruby​​项目,但我收到了上述消息。ruby-vruby2.2.4p230(2015-12-16revision53155)[i836-mingw32]gem-v2.3.0Ruby的新手,所以真的很令人沮丧。我正在尝试做下面的项目http://www.viralrails.com/?p=25 最佳答案 发生这种情况是因为您在Gemfile(2.3.0)中指定了Ruby版本,而该版本未安装或者不是当前或默认版本。不要像上面有人说的那样删除ruby​​'2.3.0'行。您的应用可能依赖于此版本。

ruby - pg_config、ruby pg、postgresql 9.0 升级后出现问题,centos 5

将postgresql8.1升级到9.0后,我注意到库依赖性存在问题。Postgresql工作正常(连接、查询)。yumlistpostgresql*InstalledPackagespostgresql.i3869.0.0-1PGDG.el5installedpostgresql-debuginfo.i3869.0.0-1PGDG.el5installedpostgresql-devel.i3869.0.0-1PGDG.el5installedpostgresql-libs.i3869.0.0-1PGDG.el5installedpostgresql-odbcng.i3860.90.

ruby - OSX Mountain Lion 上的默认 Ruby 版本?还是 1.8.x 或 1.9.x?

OSXMountainLion上的默认Ruby版本是什么?还是1.8.x或1.9.x? 最佳答案 在MountainLion上,它是Ruby1.8.7-p358(使用OSX10.8和10.8.3测试):$sw_versProductName:MacOSXProductVersion:10.8.3BuildVersion:12D78$/usr/bin/ruby-vruby1.8.7(2012-02-08patchlevel358)[universal-darwin12.0] 关于ruby-

ruby-on-rails - 将 rails 更新到特定版本

如何将Rails更新到特定版本?我的本地机器上有Rails3.2.2,但我需要更新到版本3.2.3。如果我执行gemupdaterails,它将更新到最新的版本3.2.6。我该怎么做? 最佳答案 geminstallrails--version=3.2.3或者使用bundler。在Gemfile中写入:gem'rails','3.2.3'在rails根目录下执行bundleinstall 关于ruby-on-rails-将rails更新到特定版本,我们在StackOverflow上找到一