rvm

Why do “gem” and “sudo gem” have different installation directories?

☆樱花仙子☆ 提交于 2019-11-30 10:14:34
I remember I used gem install rails to install Rails, but today when I want to install another gem, by typing gem install ruby-recaptcha it fails, saying: You don't have write permissions into the ... Then I found my gem environment and sudo gem environment have different results: For gem environment : RubyGems Environment: - RUBYGEMS VERSION: 1.8.15 - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.0.1] - INSTALLATION DIRECTORY: /Users/hx/.rvm/gems/ruby-1.9.2-p290 - RUBY EXECUTABLE: /Users/hx/.rvm/rubies/ruby-1.9.2-p290/bin/ruby - EXECUTABLE DIRECTORY: /Users/hx/.rvm/gems

TextMate, rvm and TM_RUBY

我怕爱的太早我们不能终老 提交于 2019-11-30 10:01:39
In the TextMate RVM instructions the text it says to set TM_RUBY to /Users/wayne/.rvm/bin/textmate_ruby and in the image it shows it set to rvm-auto-ruby . I decided to set it to rvm-auto-ruby thinking that it would use RVM's default Ruby version. When running Command R in the RSpec.bundle having TM_RUBY set to rvm-auto-ruby will result in a load error . When you set it to textmate_ruby it works. The only problem here is that TextMate doesn't always use the default version of Ruby since it's hardcoded in that file. /Users/jspooner/.rvm/bin/textmate_ruby : #!/usr/bin/env bash if [[ -s "/Users

How do I associate a new rvm install with existing ruby versions?

雨燕双飞 提交于 2019-11-30 09:19:01
问题 I was having a problem with RVM, so I uninstalled and re-installed it. The truth is I actually tried rbenv, but that didn't work out for me so I am trying to get rvm up and running again - without having to install duplicate versions of Ruby. I have at least 1 existing version of Ruby installed: ruby --version ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0] But when I do rvm list I get a blank list: bash-3.2$ rvm list rvm rubies # Default ruby not set. Try 'rvm alias create

cannot load such file — rubygems.rb

怎甘沉沦 提交于 2019-11-30 08:55:58
To open this project (revel) I need to be using ruby-2.1.2. I have both ruby-2.1.0 and ruby-2.1.2 installed, but I think the 2.1.2 version is corrupt for some reason and I can't seem to use it. |~/desktop/ix/projects/revel> rvm use 2.1.2 Using /Users/lianoosh/.rvm/gems/ruby-2.1.2 <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>' |~/desktop/ix/projects/revel> gem list <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>' |~/desktop

After installing ruby gems, running the new gem returns “Could not find” errors

杀马特。学长 韩版系。学妹 提交于 2019-11-30 08:51:13
Fresh Ubuntu 10.04 install: I'm having some trouble getting my gem install process to play nicely. Any time I install a gem, it goes through a nice, straightforward process with no problems: $ gem install rails Successfully installed rails-3.2.2 1 gem installed And then to verify the version, perhaps a simple "rails -v"? Nope: $ rails -v /home/pragone/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError) from

Phusion Passenger is throwing errors after upgrading Ruby and Rails using rvm

落爺英雄遲暮 提交于 2019-11-30 08:34:17
I recently upgraded my Rails setup to 3.1.3 and I'm having issues with Phusion Passenger loading an older app on this server. I got everything running on a testapp but I'm still having issues with this one app. When I run the Webrick server on port 3000 my app runs perfectly but when attempting to access it through the virtual host I continue to get Passenger errors. Here's the info: Error being thrown by Passenger Ruby (Rack) application could not be started Error message: Could not find activesupport-3.0.7 in any of the sources (Bundler::GemNotFound) Exception class: PhusionPassenger:

Fast-stemmer installation problems

孤街浪徒 提交于 2019-11-30 05:43:52
问题 I'm having a hard time installing any of the ruby gems I want to because of a problem with fast-stemmer . I've put the error I'm getting below. Building native extensions. This could take a while... ERROR: Error installing fast-stemmer: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling porter.c porter.c:359:27: warning: '&&' within '||' [-Wlogical-op

sqlite3-ruby can't make on rvm 1.8.7

扶醉桌前 提交于 2019-11-30 05:11:06
Upgrading to Rails 3 by starting with RVM 1.8.7. OSX 10.5.8 Output: josh-crewss-macbook:~ joshcrews$ gem install sqlite3-rubyBuilding native extensions. This could take a while...ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /Users/joshcrews/.rvm/rubies/ruby-1.8.7-p174/bin/ruby extconf.rb checking for sqlite3.h... yes checking for sqlite3_libversion_number() in -lsqlite3... yes checking for rb_proc_arity()... no checking for sqlite3_column_database_name()... no checking for sqlite3_enable_load_extension()... no checking for sqlite3_load_extension()... no

xcodebuild: “No applicable devices found.” when exporting archive

自古美人都是妖i 提交于 2019-11-30 04:53:25
As of Xcode 7†, the xcodebuild export archive step has been giving us errors. Build command xcodebuild -exportArchive -archivePath "path/to/Thing.xcarchive" \ -exportPath "path/to/" \ -exportOptionsPlist path/to/PackageOptions-adhoc.plist yields 2015-10-08 16:28:27.409 xcodebuild[62682:464728] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7ff1a42d23f0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo=0x7ff1a72ddd80 {NSLocalizedDescription=No applicable devices found.} error: exportArchive: No applicable devices found. Error Domain

Should I check in `.ruby-gemset` and/or `.ruby-version`?

浪子不回头ぞ 提交于 2019-11-30 04:41:31
I've just updated RVM, and in place of the old .rvmrc , it auto-created .ruby-gemset and .ruby-version . I've always had .rvmrc files with contents like rvm use --create default@project_name . However, .ruby-version contains the specific Ruby version I'm running rather than default . I'm hesitant to check this in. Also, I heard someone say on a podcast that one shouldn't check in .ruby-gemset because others may have their own preferences about how to name gemsets. When should or shouldn't I check in .ruby-gemset and/or .ruby-version ? Specifically: What are some of the tradeoffs? How does the