rvm

“Certificate verify failed” OpenSSL error when using Ruby 1.9.3

心已入冬 提交于 2019-11-27 07:39:12
I'm using Ruby 1.9.3p0 on Mac OS 10.6.8 (installed using rvm). When I attempt to create a new Rails application using an application template hosted on GitHub , with this (for example): $ rails new myapp -m https://github.com/RailsApps/rails3-application-templates/raw/master/rails3-mongoid-devise-template.rb -T -O I get this error message: /Users/me/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) I understand the Ruby language interpreter is using

How to install RVM on Windows 7

浪子不回头ぞ 提交于 2019-11-27 07:34:33
How do I install RVM on Windows 7? It says to install RVM, and use the following script: user$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) But I have no idea what to do with it. If I type it into cmd an error message comes up saying it was 'unexpected at this time'. What do I do to install RVM? Sergio Tulentsev No RVM for you! From RVM’s FAQ : Does RVM work on windows? Will it in the future? NO. If you would like to manage multiple versions of ruby on windows please use pik which is an excellent tool by Gordon Thiesfeld. You can find it

Cannot use RVM-installed Ruby with sudo

∥☆過路亽.° 提交于 2019-11-27 07:03:36
I have succefully configured RVM to use Ruby 1.9.2 and everything is fine. However when I'm trying to run Ruby using sudo it says it cannot find RVM or Ruby: $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] $ sudo ruby -v [sudo] password for administrator: sudo: ruby: command not found Is that correct behavior or is my RVM misconfigured? Perhaps I should be using the system wide install ? Use rvmsudo command instead of sudo Taking @calas' answer one step further, add this to your ~/.bashrc : alias sudo=rvmsudo This avoids the requirement of having to remember to change sudo to

RVM and Jenkins setup

為{幸葍}努か 提交于 2019-11-27 05:40:36
问题 I am new to Jenkins CI. I'm install RVM in my remote Jenkins and when I execute below shell. #!/bin/bash -x source ~/.bashrc rvm use 1.9.3@rails-3.2.3 I get following errors. + source /var/lib/jenkins/.bashrc ++ PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/var/lib/jenkins/.rvm/bin:/var/lib/jenkins/.rvm/bin + rvm use 1.9.3@rails-3.2.3 RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal settings to allow shell login.

Installing linecache19 for Ruby 1.9.2 via rvm

为君一笑 提交于 2019-11-27 05:37:21
问题 I am having a problem with installing linecache19(dependency of ruby-debug19) for ruby 1.9.2 Here is my term output $ rvm use 1.9.2 Using /home/bogdan/.rvm/gems/ruby-1.9.2-p180 $ ruby -v ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] $ rvm exec gem install linecache19 --backtrace gem install linecache19 --backtrace rvm 1.6.20 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] ERROR: Error installing linecache19: linecache19 requires Ruby version >= 1.9.2.

Error while installing Nokogiri (1.6.7) on El Capitan

北慕城南 提交于 2019-11-27 05:13:37
问题 One of my developers have updated Nokogiri, and when pulling the updated Gemfile my bundle install fails. ➜ my-project git:(master) bundle install Fetching source index from https://rubygems.org/ Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.3 Using minitest 5.8.3 Using thread_safe 0.3.5 Using tzinfo 1.2.2 Using activesupport 4.2.3 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile2 2.0.0 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/me/.rvm/rubies/ruby

How to have multiple versions of Ruby AND Rails, and their combinations on Windows?

回眸只為那壹抹淺笑 提交于 2019-11-27 05:05:47
问题 Since Windows doesn't support rvm (Ruby version Manager), how do we have Ruby 1.8.7, Rails 2.3.8 Ruby 1.8.7, Rails 3.0.0 Ruby 1.9.2, Rails 3.0.0 on the same PC? Virtual machines can be used but it is kind of troublesome. 回答1: Use uru. It is a multi-platform ruby environment manager. You can download the Windows version here: https://bitbucket.org/jonforums/uru/wiki/Downloads Install the tool Assuming C:\tools is on PATH and uru_rt.exe was extracted to C:\tools C:\tools>uru_rt admin install

Rails 3 - no such file to load — openssl

…衆ロ難τιáo~ 提交于 2019-11-27 04:15:20
问题 when running a Rails server, I get the following error: no such file to load -- openssl I try a solution I find online. I go to ~/.rvm/src/ruby-1.9.2-head/ext/openssl. I type : ruby extconf.rb, but I get the following: === OpenSSL for Ruby configurator === === Checking for system dependent stuff... === checking for t_open() in -lnsl... no checking for socket() in -lsocket... no checking for assert.h... yes === Checking for required stuff... === checking for openssl/ssl.h... no === Checking

How to solve “/usr/bin/env: ruby_executable_hooks: No such file or directory”?

半腔热情 提交于 2019-11-27 03:29:37
I just deploy jekyll in a vps, and config git post-receive hook on it. When I push blog update to vps from my laptop, I run into this error: remote: /usr/bin/env: ruby_executable_hooks: No such file or directory I searched for a while, and tried the method proposed in this post: bundle update: env: ruby_executable_hooks: No such file or directory , i.e., executing the commands below: rvm @global do gem regenerate_binstubs gem regenerate_binstubs But it doesn't help, the error remains. Since I'm not familiar with rvm or ruby, could anyone give me a hint? use wrappers, example: $ which jekyll #

RVM Does Not Install Ruby 1.9.2 on Snow Leopard: 'Error running 'make '

二次信任 提交于 2019-11-27 03:21:21
问题 When I try to install Ruby 1.9.2 on Snow Leopard using: rvm install 1.9.2 I get the following: 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. So, I check out make.log. The end of it reads: 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