rvm

Why can't I load Nokogiri?

爷,独闯天下 提交于 2019-12-10 03:43:56
问题 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(

How to make fish shell use an rvm ruby by default

风流意气都作罢 提交于 2019-12-09 16:13:45
问题 I'm using fish shell 2.10 on Mac OS X 10.9.1. I would like to use a Ruby that I have installed using RVM as the default in my terminals, however I can't seem to make this work. I've tried rvm use 2.1.0 --default but upon opening a new terminal I still get the following: > which ruby /usr/bin/ruby Running the rvm command causes the ruby to be loaded: > which ruby /usr/bin/ruby > rvm [...] > which ruby /Users/alex/.rvm/rubies/ruby-2.1.0/bin/ruby But it's annoying to have to do this every time I

how do you activate or set the default rake?

ぐ巨炮叔叔 提交于 2019-12-09 15:46:52
问题 I have seen many You have already activated rake 0.9.x, but your Gemfile requires rake 0.x.x errors. Of course, they can be solved (temporarily or always) by some methods like the following. bundle exec rake The method above works but you always have to type bundle exec. It can also be solved by bundle update But bundle update also updates your other gems. Some say it can be solved by gem uninstall unwanted_rake_version Yes, the unwanted rake can be installed but it is still marked as

RVM Sass Compass issue with localhost sites

不想你离开。 提交于 2019-12-09 15:36:25
问题 I have spent over 5 hours trying to solve this and feel that since I haven't done it before I should ask some help now... I have a site I inherited with Sass/Compass put together. I have it set up on my localhost and it works fine for that site. I have a second localhost site I want to use it on. So I went to the theme folder in terminal - (/sites/all/theme/newtheme/) I tried to start watching a sass folder with compass and keep getting these errors... /Library/Ruby/Site/1.8/rubygems

I'm getting “RVM is not a function” error on Mac OS X, and no posted solutions work

北战南征 提交于 2019-12-09 14:43:55
问题 I'm on Mac OS x 10.8.2 ("Mountain Lion"), and I successfully installed RVM 1.17.8 and its dependencies. I'm able to use it to install Ruby versions using rvm install 1.9.2 , but I can't execute rvm use <version> without getting this error: RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use `/bin/bash --login` as the command. Please visit https://rvm.io/integration

Using RVM Gemsets & Bundler & RubyMine

柔情痞子 提交于 2019-12-09 12:51:08
问题 I use RVM to manage Ruby versions. In my project I use Bundler to manage gems for the project. RVM also have gemsets. Gem in gemset don't have a connection with Bundler's gem. ← Is this correct? I came to this conclusion because gem files stored in different locations: RVM gemset: ~/.rvm/gems/ruby-2.0.0-p247@myApp Bundler: [my_app_dir]/vendor/bundle/gems So app uses Bundler gems, not RVM gemset gems. But when I add gem to my Gemfile, RubyMine IDE shows me warning, that this gem is not in RVM

How to use RVM to install Ruby 1.9.3 when Xcode 4.3.2 is installed and gcc is missing?

孤街浪徒 提交于 2019-12-09 12:11:52
问题 I got a new iMac with Lion and installed Xcode 4.3.2. After running curl -L get.rvm.io | bash -s stable I opened up a new bash , and used $ rvm install 1.9.3 to install Ruby 1.9.3, but there were errors and the log said that the C compiler is not there. And rvm requirements says: $ rvm requirements [...] Xcode 4.3+ users - please be warned - only ruby-1.9.3-p125+ is partially supported - in case of any compilation issues: * downgrade to Xcode 4.1 * uninstall Xcode and install osx-gcc

Can't install passenger 3 on Snow Leopard (with RVM and ruby 1.9.2)

梦想的初衷 提交于 2019-12-09 11:34:47
问题 I've been trying to install passenger with no success yet. I've installed the gem, but when I run passenger-install-apache2-module it tells me This installer must be able to write to the following directory: /Users/myname/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0 But it can't do that, because you're running the installer as myname. Please re-run this installer as root. but if I do sudo passenger-install-apache2-module I get /Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb

How can I remove Ruby on Rails 4 beta?

若如初见. 提交于 2019-12-09 10:18:17
问题 I'm new to Ruby and Rails and I installed the latest beta version of Rails 4 on my Mac, before I installed RVM to manage my versions. The Rails 4 beta is becoming a huge pain in the ass because it's the default version in every new tab I open in the terminal. How can I uninstall the Rails 4 beta and all references to it? 回答1: Except of uninstalling rails you need to uninstall railties gem - rails exec is only wrapper that will select most up-to-date railties gem. $ gem uninstall rails -v=4.0

Running “bundle install” fails and asks me to run “bundle install”

孤街醉人 提交于 2019-12-09 09:49:54
问题 In fact, all gem-related commands result in the same error message, when run from inside the existing rails app I cloned from a git repo. $ bundle install Could not find tzinfo-0.3.27 in any of the sources Run `bundle install` to install missing gems. $ gem list Could not find tzinfo-0.3.27 in any of the sources Run `bundle install` to install missing gems. $ bundle update Could not find tzinfo-0.3.27 in any of the sources Run `bundle install` to install missing gems. $ rails -v Could not