rvm

Error while installing ruby2 with rvm

与世无争的帅哥 提交于 2019-12-05 06:20:51
问题 I was trying to install it this way: brew install autoconf brew install automake brew install libyaml rvm install ruby-head I was trying to install ruby2 with rvm but I got this error: ruby-head - #compiling Error running 'make ', please read /Users/boti/.rvm/log/ruby-head/make.log There has been an error while running make. Halting the installation. Ruby 'ruby-head' was build using clang - but it's not (fully) supported, expect errors. This is my compiling log: compiling ./missing

Duplicated key at line 80 ignored: “name” rvm

醉酒当歌 提交于 2019-12-05 06:08:29
This doesn't seem to have affected anything, it's just irritating in my terminal - I regularly receive the following warning (sometimes I receive multiple, calling out different lines, and sometimes the path after /gem/ varies, but other than that, this is the output: /Users/alecwilson/.rvm/gems/ruby-2.2.1/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: duplicated key at line 80 ignored: "name" It's most common when bundling and running rake test . Any idea on how to fix it? I'm generally pretty wary of editing files in my .rvm directory, as I've royally screwed it up before, and

Using RVM, bundler does not install in proper gemset when gems are installed in a different ruby version

拟墨画扇 提交于 2019-12-05 05:29:42
I am having trouble with rvm, bundler and gemsets. I have 3 rubies installed in rvm: rvm rubies macruby-0.7.1 [ x86_64 ] ree-1.8.7-2010.02 [ x86_64 ] => ruby-1.9.2-p0 [ x86_64 ] And gemsets like so: rvm gemsets macruby-0.7.1 [ x86_64 ] ree-1.8.7-2010.02 [ x86_64 ] ree-1.8.7-2010.02@chef [ x86_64 ] ree-1.8.7-2010.02@global [ x86_64 ] ree-1.8.7-2010.02@mobi [ x86_64 ] ree-1.8.7-2010.02@temple_rails [ x86_64 ] ruby-1.9.2-p0 [ x86_64 ] => ruby-1.9.2-p0@instapaper [ x86_64 ] ruby-1.9.2-p0@mobi [ x86_64 ] I have a .rvmrc that switches to ruby 1.9.2 and the "instapaper" gemset: rvm use ruby-1.9.2-p0

Why can't I load Nokogiri?

烈酒焚心 提交于 2019-12-05 05:20:29
I installed Nokogiri without any issues by running: $ sudo gem install nokogiri Building native extensions. This could take a while... Successfully installed nokogiri-1.5.9 1 gem installed Installing ri documentation for nokogiri-1.5.9... Installing RDoc documentation for nokogiri-1.5.9... When I run nokogiri.rb: #!/usr/bin/ruby -w require 'nokogiri' puts "Current directory is: #{ Dir.pwd }" Dir.chdir("/home/askar/xml_files1") do |dirname| puts "Now in: #{ Dir.pwd }" xml_files = Dir.glob("ShipmentRequest*.xml") if xml_files.empty? puts "#{ dirname } is empty." else xml_files.each do |file| doc

“no such file to load — bundler/setup” on Apache/Passenger server

江枫思渺然 提交于 2019-12-05 02:57:29
问题 I'm trying to deploy a draft of my first Rails app. It works great on my local WEBRick server. However, on my Ubuntu VPS running Apache2 & Passenger, when I navigate to the app in my browser, I get: Error message: no such file to load -- bundler/setup Exception class: LoadError With the following backtrace: 0 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 1 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `require' 2 /home/user/public/foo

LoadError by requiring a gem with :path or :git

三世轮回 提交于 2019-12-05 02:56:41
I've got a really strange problem here. I forked a gem on github to do some modifications, cloned my repo on my local machine, made the changes and changed the Gemfile of another project to fetch the gem from my local repository for testing it. Unfortunately I get a LoadError while requiring that gem in my ruby script. rvm current => ruby-1.9.3-p448 ruby --version => ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] bundle --version => Bundler version 1.3.5 Content of my Gemfile: source 'http://rubygems.org gem 'steps', :path => "/home/benny/workspace/steps" Bundle output: $ bundle -

Ubuntu 10 Ruby 1.9 Rails 3 not working?

别等时光非礼了梦想. 提交于 2019-12-05 02:06:02
问题 Hi hope there is someone out there that can help me, have been struggling with this for quite some time now. Im running Ubuntu 10 on the dev machine wich had ruby 1.8 on it, wich I removed . I installed Ruby 1.9.3 and rails3 using RVM and this tutorial http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ when I type ruby -v I get ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux] wich seems correct I created a new test app using rails new mysite wich created the new app

RubyGems error after updating system

谁说胖子不能爱 提交于 2019-12-05 01:22:05
When trying to launch the rails console after updating my ruby setup using 'sudo gem update --system', I then try execute the rails console by issuing rails c I get this error: Users/myusername/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find json (~> 1.4) amongst [Ascii85-1.0.1, abstract-1.0.0, actionmailer-3.1.1, actionmailer-3.1.0, actionmailer-3.0.9, actionmailer-3.0.5, actionmailer-3.0.3, actionpack-3.1.1, actionpack-3.1.0, actionpack-3.0.9, actionpack-3.0.5, actionpack-3.0.3, activemodel-3.1.1, activemodel-3.1.0, activemodel-3

RVM - MacPorts won't update through proxy

家住魔仙堡 提交于 2019-12-05 01:18:45
问题 I'm trying to use RVM to install ruby on my iMac. I start by typing the following: rvm list known I then target the version that I want to install (the guide I'm following recommends 1.9.2 instead of the base 1.8.7) with the following line: rvm install 1.9.2 Then I get this: 27698AM:~ butler15$ rvm install 1.9.2 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.7/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get

Install ruby headers with rvm

心不动则不痛 提交于 2019-12-05 01:10:30
问题 Travis CI uses RVM to provide Ruby, but it doen't seem to contain the headers: $ find /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/zlib.so /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/dl.so /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/syck.so /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib