rvm

Install Ruby with Mountain Lion, Xcode 4.5, and RVM?

≡放荡痞女 提交于 2019-12-07 06:42:54
问题 rvm install 1.9.3 --with-gcc=clang (as suggested by Can't install Ruby under Lion with RVM – GCC issues) doesn't work because neither Mac OS X 10.8.2 (Mountain Lion) nor Xcode 4.5 comes with clang . Is it possible to compile Ruby with llvm ? According to Matthias Schmidt's "How to install Ruby 1.9.3 on Mac OS X with LLVM and rbenv", Ruby is now fully compatible with LLVM. But, I still get: error: C compiler cannot create executables UPDATE: Actually, I found clang here /Applications/Xcode.app

Making ruby gems respond to terminal commands

江枫思渺然 提交于 2019-12-07 06:10:51
问题 I am extremely new to ruby as well as gem making. I made a simple gem that webscrapes some information depending on the input. However, to use my gem I need to go into the interpreter (irb) and require my gem and then call the method with some parameters. Suppose the gem is called foo . Suppose the method is called print_website(x) # where x is a string . I want to be able to do something like: $ foo test.com and it should automatically call the method and execute it. Thanks in advance!

Running “rvm get stable” in my terminal doesn't do anything. How do I update RVM?

▼魔方 西西 提交于 2019-12-07 05:06:36
问题 When I do "rvm get stable" nothing happens. Last login: Sat Feb 11 18:22:14 on ttys000 Adams-MacBook-Pro:~ adam$ rvm -v rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] Adams-MacBook-Pro:~ adam$ rvm get stable notice nothing happened. It didn't update. Adams-MacBook-Pro:~ adam$ rvm -v rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] Adams-MacBook-Pro:~ adam$ How do I update my RVM? 回答1: I believe rvm get stable is a

RVM, Ruby 1.9.2, Rails 2.3.8, Passenger and “invalid byte sequence in US-ASCII”

删除回忆录丶 提交于 2019-12-07 04:51:16
问题 I just started the upgrade process from Ruby 1.8.7 to Ruby 1.9.2 (using RVM). I have all my applications running using 'script/server' (or 'rails server') with 1.9.2, however, only Rails 3.0.0 RC applications work with Passenger. The error message given by Rails 2.3.8 applications is: invalid byte sequence in US-ASCII I'm guessing that this is a Passenger issue. I installed Passenger 2.2.15 using the RVM guide found here. Any ideas how to fix this bug? Thanks. I've updated to include a stack

Why do I get “write permission” errors installing Rails?

时间秒杀一切 提交于 2019-12-07 04:03:53
问题 When I use rvm use 1.9.2 , I get Rails v3.0.0: vikas@admin1-DL-H61MXEL:~$ rvm use 1.9.2 --default Using /home/vikas/.rvm/gems/ruby-1.9.2-p320 vikas@admin1-DL-H61MXEL:~$ rails -v Rails 3.0.0 When I use rvm use 2.0.0 , I get Rails v3.2.13: vikas@admin1-DL-H61MXEL:~$ rvm use 2.0.0 Using /home/vikas/.rvm/gems/ruby-2.0.0-p195 vikas@admin1-DL-H61MXEL:~$ rails -v Rails 3.2.13 I need Rails v3.2.13 with Ruby 1.9.2. When I used rvm use 1.9.2 --default and gem install rails -v 3.2.13 , I got the

Why doesn't RVM work in a bash script like it works in an interactive shell?

ぐ巨炮叔叔 提交于 2019-12-07 04:01:09
问题 If you type the command in console, it works. But if you put them in a bash script, problem comes. #!/bin/bash rvm use 1.8.7 rvm list # This shows the ruby used in parent shell's rvm. 回答1: In the script you are most likely not loading rvm as a function. http://rvm.io/rvm/basics/ 回答2: The shell functions installed by RVM aren't necessarily exported to subshells. In your shell script, you can re-initialize RVM with something like the same command line that's in your .bash_profile or .bashrc: [[

Why do I need to use “rvm use default” after opening new terminal window?

China☆狼群 提交于 2019-12-07 03:09:43
问题 On opening a new terminal window (Mac OSX 10.7.2) and entering rails , I get the always fun 'rails is not currently installed..." message. But I enter rvm use default 1.9.2 and all is good with the world. Where did I go wrong? 回答1: Zabba is right in the comments when he says the correct command to use is rvm use 1.9.2 --default . RVM considers default to be a Ruby, equivalent to the Ruby set to the default. If I type rvm use default into my terminal, I get this output: $ rvm use default Using

Duplicated key at line 80 ignored: “name” rvm

萝らか妹 提交于 2019-12-07 02:19:56
问题 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

RubyGems error after updating system

不羁岁月 提交于 2019-12-06 20:10:17
问题 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,

How to install SystemTimer on 1.9.2?

梦想的初衷 提交于 2019-12-06 18:02:56
问题 I've just upgraded my app from 1.8.7 to 1.9.2 using RVM and had to add RubyGems and Bundler, ran bundle install and got everything to work except SystemTimer. Google-fu returns nothing and I see others have had issue with it in 1.9 but some have gotten it to work. Any ideas? pawel:bodb pawel$ sudo gem install SystemTimer Building native extensions. This could take a while... /Users/pawel/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: warning: Insecure world