rvm

Could not resolve host when trying to install RVM

自作多情 提交于 2020-01-20 08:09:30
问题 I'm trying to install RVM on my environment following the instructions on RVM page curl -L https://get.rvm.io | bash -s stable --ruby but I always get this: % 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 follow further instructions. Press ENTER to continue. Downloading RVM from wayneeseguin branch stable curl:

Installing Ruby on AIX

孤街浪徒 提交于 2020-01-17 13:43:15
问题 What are some less painful ways to install Ruby on AIX? I found out that using RVM to install Ruby might be the best option. However, installing RVM itself seems like really maddening. I found an article from IBM website on how to install RVM but there are so many prerequisites for it that I feel like it will take me days to get all that stuff installed and get working: However, RVM does have some prerequisites. Before you continue, check your system and be sure that you have the bash, git,

Installing Ruby on AIX

余生颓废 提交于 2020-01-17 13:42:47
问题 What are some less painful ways to install Ruby on AIX? I found out that using RVM to install Ruby might be the best option. However, installing RVM itself seems like really maddening. I found an article from IBM website on how to install RVM but there are so many prerequisites for it that I feel like it will take me days to get all that stuff installed and get working: However, RVM does have some prerequisites. Before you continue, check your system and be sure that you have the bash, git,

Ruby 1.9.2 not installing on OSX?

你。 提交于 2020-01-17 01:40:15
问题 I've got Xcode 3.2.1 I've installed Git and RVM I've installed Ruby 1.9.2, it's installed 100% I run ruby -v but instead of seeing ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] I see ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] I don't see what I could be going wrong 回答1: Try rvm 1.9.2 Or rvm --default 1.9.2 It is possible to use a .rvmrc to do that for the directory you cd into as well. 回答2: Have you selected the version of ruby you want to use with rvm? As

Rbenv not using the correct version

扶醉桌前 提交于 2020-01-16 18:29:05
问题 In my rails project, when I try to run bundle install , I get the following error: Your Ruby version is 2.3.7, but your Gemfile specified 2.5.3 However, when I run ruby --version I get: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18] ...and running rbenv version gives me: 2.5.3 (set by /Users/jamesmulholland/proj/repo-name/.ruby-version) What is cauing this the wrong version of Ruby to be used here, and how do I fix it? Other Context and Failed Fixes Running rbenv versions gives:

Why bundler doesn't see customized gem source?

爱⌒轻易说出口 提交于 2020-01-16 04:12:30
问题 First of all the thing is that I'm behind firewall so I can't use https://rubygems.org/ $ bundle install rails bundle install requires at least 0 argument: "bundle install". git@gitdev $ bundle install Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Using rake (10.0.4) Gem::RemoteFetcher::FetchError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (https://s3.amazonaws.com

make RVM also load gems at vendor/gems

喜欢而已 提交于 2020-01-16 03:21:50
问题 I have a project (tracks) that ships its gems under vendor/gems . Some of these gems are no longer available trough rubygems, so a rake gems:install fails. I want rubygems to load gems from both the rvm-gem-dirs ( /usr/local/rvm/gems/ruby-1.8.7-p334@tracks, /usr/local/rvm/gems/ruby-1.8.7-p334@global ) and from the vendor/gems . How can I add such a dir to the rubygems load path? Is that possible at all? 回答1: Add the vendor/gems directory to the GEM_PATH environment variable. GEM_PATH=$GEM

OsX, can't use Homebrew because of Ruby permission

北城余情 提交于 2020-01-15 09:32:22
问题 I have seen many related questions and posts, but I just can't fix my problems. I am running El Capitan and I want to have Homebrew and Ruby running. But if I want to run Homebrew I get permission errors like: bio89093:~ jonbra$ brew doctor /Library/Ruby/Site/2.0.0/rubygems.rb:1219:in `register_default_spec': undefined method `default_gems_use_full_paths?' for Gem:Module (NoMethodError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb

Getting error for libxml2.2.dylib “file is not of required architecture”

这一生的挚爱 提交于 2020-01-14 10:40:50
问题 I'm trying to use rvm to install Ruby 1.9.2 on my Mac running Snow Leopard. My .bash_profile contains ARCHFLAGS="-arch x86_64" To install ruby, I run: rvm install 1.9.2 -C --enable-shared I get an error during compiling. Here is the make.error.log: [2010-01-20 10:03:00] make ld: in /usr/local/lib/libxml2.2.dylib, file is not of required architecture collect2: ld returned 1 exit status make[1]: *** [../../.ext/i386-darwin10.2.0/tcltklib.bundle] Error 1 make: *** [mkmain.sh] Error 1 EDIT: I

Upgrading Ruby installation on Mac OS running Snow Leopard 10.6.5

こ雲淡風輕ζ 提交于 2020-01-14 05:58:07
问题 I have a Mac Os running Snow Leopard 10.6.5 and I am trying to upgrade my Ruby installation. Before I did anything, I run the following commands and I had the following results: $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] $ which ruby /usr/bin/ruby So, to upgrade my installation, I installed first macports and then Ruby using Ruby Version Manager (RVM). 1. bash < <(curl http://rvm.beginrescueend.com/releases/rvm-install-head) 2. mkdir -p ~/.rvm/src/ && cd ~/.rvm