Tag: rvm

在OSX Mountain Lion上安装新的RVM Ruby 1.9.3时出现“错误的ecpoint”SSL错误

尝试使用Ruby 1.9.3和rest-client来生成https请求,例如: RestClient.get(‘https://google.com’) 总是给我一个SSL错误, OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint 这是我无法弄清楚的。 bad ecpoint ? 我已经毫不费力地在另一台Mountain Lion机器上使用1.9.3和rest-client提出相同的请求。 关于这台机器的注意事项:MacBook pro带有新的Mountain Lion安装,我最初通过XCode命令行工具安装gcc-4.2时遇到了一些麻烦,但最终通过自制程序/欺骗获得了gcc-4.2。 从那时起,我已经卸载并重新安装了RVM和1.9.3。

尝试安装RVM时无法解析主机

我正按照RVM页面上的说明尝试在我的环境中安装RVM curl -L https://get.rvm.io | bash -s stable –ruby 但我总是得到这个: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 185 100 185 0 0 198 0 –:–:– –:–:– –:–:– 246 100 9979 100 9979 0 0 3821 0 0:00:02 0:00:02 –:–:– 14740 Please read and […]

RVM ruby​​安装错误 – Mac

我试图通过RVM安装以下三个版本的Ruby,每个版本都有自己的一组错误。 我更关心的是让最后一个工作,所以我会专注于那个。 rvm install 1.8.7 rvm install 1.9.2 rvm install 1.9.3 rvm install 1.9.3(bash输出) 14:10:41: ~/.rvm/config $ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users/dionnesaunders/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users/dionnesaunders/.rvm/src ERROR: Error running ‘tar mzxf /Users/dionnesaunders/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/dionnesaunders/.rvm/src ‘, please read /Users/dionnesaunders/.rvm/log/ruby-1.9.3-p0/yaml/extract.log Configuring yaml in /Users/dionnesaunders/.rvm/src/yaml-0.1.4. ERROR: Error running ‘ ./configure –prefix=”/Users/dionnesaunders/.rvm/usr” ‘, please read /Users/dionnesaunders/.rvm/log/ruby-1.9.3-p0/yaml/configure.log Compiling […]

如何在低内存系统上使用RVM编译ruby?

rvm install 1.9.3 导致make.log中的错误: … compiling ./enc/trans/emoji_sjis_docomo.c compiling ./enc/trans/emoji_sjis_kddi.c gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. … dmesg显示 [180031.341709] send sigkill to 3705 (cc1), adj 0, size 3394 在某些时候运行配置过程的free节目: total […]

在小牛上安装任何版本的ruby和RVM

我刚刚升级到osx mavericks,我想安装ruby 2.0,但我得到configure: error: cannot run C compiled programs. 错误。 我用rvm get stable更新rvm,然后键入rvm install 2.0.0并得到一个错误,指示我一个日志文件。 日志文件包含: configure: WARNING: unrecognized options: –without-tcl, –without-tk checking build system type… x86_64-apple-darwin13.0.0 checking host system type… x86_64-apple-darwin13.0.0 checking target system type… x86_64-apple-darwin13.0.0 checking whether the C compiler works… yes checking for C compiler default output file name… a.out checking for […]

RVM无法在Snow Leopard上安装Ruby 1.9.2:’运行’make’时出错

当我尝试使用以下方法在Snow Leopard上安装Ruby 1.9.2时: rvm install 1.9.2 我得到以下内容: ERROR: Error running ‘make ‘, please read /Users/mary/.rvm/log/ruby-1.9.2-p180/make.log ERROR: There has been an error while running make. Halting the installation. 所以,我查看make.log。 它的结尾是: readline.c: In function ‘username_completion_proc_call’: readline.c:1386: error: ‘username_completion_function’ undeclared (first use in this function) readline.c:1386: error: (Each undeclared identifier is reported only once readline.c:1386: error: for each […]

RVM生产准备好了吗?

RVM非常适合在本地计算机上进行开发。 但它在生产机器上是否安全?

不能将ruby-debug19与1.9.3-p0一起使用?

可能重复: Rails 3.1和Ruby 1.9.3p125:ruby-debug19仍然崩溃,“找不到符号:_ruby_threadptr_data_type” 我运行这个: gem install ruby-debug19 在我的黄瓜env.rb文件中,我有这个: require ‘ruby-debug’ 但是,当我尝试运行时,我得到了这个例外: /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread – /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError) 我需要做些什么才能让ruby-debug与1.9.3-p0一起使用?

使用rvm在Xcode Run Script构建阶段强制使用特定的Ruby

在Xcode之外我使用特定版本的Ruby,使用RVM来管理多个Ruby安装。 Apple的命令行开发工具在/usr/bin/ruby安装Ruby,版本为1.8.7。 我通过RVM使用1.9.3。 有没有办法在运行Run Script构建阶段时强制Xcode使用我的1.9.3安装? 我已经尝试将Shell路径设置为我特定Ruby的完整路径,但这似乎没有什么区别,我的意思是我在1.9.3中安装的特定Gems不可用/可见在Xcode中运行时的脚本。 如果我在命令行上通过xcodebuild运行我的项目,则Run Script阶段使用我的特定Ruby,因为它是在我的shell环境中运行的(即使项目文件中的Shell路径设置为/usr/bin/ruby ,它也是如此)仍然使用我的1.9.3)。 我该怎么做才能使IDE使用我的1.9.3 Ruby安装?

RVM无法通过SSH工作

RVM无法通过SSH工作。 在命令行: leifg@host:~$ which ruby /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby 通过SSH连接: local:~$ ssh leifg@server ‘which ruby’ /usr/bin/ruby 我正在使用Ubuntu 11.04。 如何让SSH使用与系统上相同的Ruby? 我已经validation了一些先决条件: Ruby已经使用apt-get install ruby 。 这有什么不同吗? sshd_config有“PermitUserEnvironment yes”选项,我重新启动了守护进程。 服务器上的.bashrc包含这些行,但是当我删除它们时会看到相同的行为: if [ -s “$HOME/.rvm/scripts/rvm” ] ; then . “$HOME/.rvm/scripts/rvm” elif [ -s “/usr/local/rvm/scripts/rvm” ] ; then . “/usr/local/rvm/scripts/rvm” fi