rvm

Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v

孤街醉人 提交于 2019-12-16 19:53:15
问题 Here's the console output: sergio@sergio-VirtualBox:~$ rvm list rvm rubies ruby-1.9.3 [ i386 ] sergio@sergio-VirtualBox:~$ rvm use 1.9.3 Using /usr/share/ruby-rvm/gems/ruby-1.9.3 sergio@sergio-VirtualBox:~$ ruby -v The program 'ruby' can be found in the following packages: * ruby1.8 * ruby1.9.1 Try: sudo apt-get install <selected package> So what's going on? Do I need to reboot my machine? Or should it work right off the bat? I'm using Ubuntu 11.10, any help is appreciated. 回答1: You have

Cannot install ruby-1.9.2 in Mac OSX 10.8.1 due to symlink error

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:49:53
问题 First, I tried the common rvm install. rvm install 1.9.2 However, the following error was shown: The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. Then I run rvm requirements and find these following part of output useful Right now Ruby requires gcc to compile, but Xcode 4.2 and later no longer ship with gcc. Instead they ship with llvm-gcc (to which gcc is a symlink) and clang, neither of which are supported

RVM doesn't work for 1.9.1 but works for 1.8.6 and 1.8.7

岁酱吖の 提交于 2019-12-14 03:49:15
问题 UPDATE 6/25/10 Using Google, I am not the only person to encounter this problem. Apparently this problem has to do with readline . Has anyone out there encountered this issue? (see error at make.error.log below) As google suggests, I compiled readline: curl -O ftp://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz tar xzvf readline-6.1.tar.gz cd readline-6.1 ./configure --prefix=/usr/local make sudo make install Update II Following the advice of the above update (compile readline), has led me to

Segmentation fault when running 'rails s'

╄→гoц情女王★ 提交于 2019-12-14 03:45:41
问题 After doing a bundle install, I run 'rails s' it runs into this error. $ rails s /Users/XXXX/.rvm/gems/ruby-1.8.7-p352@r3/gems/json-1.5.3/ext/json/ext/json/ext/parser.bundle: [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin10.8.0] Abort trap Any help would be greatly appreciated. Thanks! 回答1: rvm gemset empty rvm use ree@my-gemset gem install bundler bundle install This solved the issue for me. Must be some extension got compiled against the wrong version of Ruby

Bundler::GemfileError on Rails app on Passenger after switching to Capistrano

梦想与她 提交于 2019-12-14 02:22:19
问题 I have a rails app that runs on Phusion Passenger with Apache in production. Everything worked when I used to manually deploy (by SSH-ing in to the server and fetching the latest updates, etc.), but I recently switched to Capistrano to make life easier on my team members. Now, when I try to access the site, Passenger throws the following error: Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (There was an error in your Gemfile, and Bundler cannot

Ruby cannot find required libraries even though gem is installed

时光总嘲笑我的痴心妄想 提交于 2019-12-14 01:00:33
问题 I have spent literally days trying to install ruby 1.9.2 and get it working with gems :-/ I eventually gave up on my Mac OSX 10.6 machine and below is the current state on my Ubuntu machine. Any advice would be greatly appreciated! # ruby test.rb <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- mongo (LoadError) from <internal:lib/rubygems/custom_require>:29:in `require' from test.rb:1:in `<main>' # cat test.rb require 'mongo' db = Mongo::Connection.new.db("mydb

Error: “Could not find rake”, yet Rake is installed

你说的曾经没有我的故事 提交于 2019-12-13 16:08:23
问题 Why am I receiving this Rake error: $ rake --version /Volumes/Data/sampablokuper/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rake (>= 0) amongst [] (Gem::LoadError) from /Volumes/Data/sampablokuper/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /Volumes/Data/sampablokuper/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem' from /Volumes/Data

Can't install Ruby 2.0.0 with rvm

不想你离开。 提交于 2019-12-13 12:22:07
问题 I tried to install Ruby 2.0.0 with rvm install 2.0.0 this was my output: Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx/10.8/x86_64, might require sudo password Password: DEBUG: Copying /Users/Family/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences

Installing Ruby via RVM fails to configure [closed]

廉价感情. 提交于 2019-12-13 11:30:05
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I'm trying to install Ruby via RVM by running rvm install 1.9.3 but am getting a bunch of errors: Error running env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active

How do I use bundle exec in Aptana Studio 3.0.9 to run the debugger?

▼魔方 西西 提交于 2019-12-13 07:16:23
问题 Aptana seems to start in the sh shell. So I'm trying to switch to zsh , and execute commands to start a rails app. I've changed my debug executable so that it runs a unix executable with the following contents: #!/usr/bin/env ruby exec("zsh | (echo $SHELL && [[ -s '$HOME/.rvm/scripts/rvm' ]] && source '$HOME/.rvm/scripts/rvm' && rvm use 1.8.7@tinderbox && (bundle exec script/server -p3001 &))") So, when I click my debug executable from the debug menu on the toolbar, the debug perspective