rvm

Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) - How to resolve? [duplicate]

半腔热情 提交于 2019-11-28 08:28:17
问题 Possible Duplicate: Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) Hey I have seen this issue a lot across the web... Anybody resolve this with any success? My app is RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION The log output /Users/tjs/.rvm/gems/ruby-1.8.7-p352@rails2/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) from /Users/tjs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby

Gem Install Debugger Error

梦想的初衷 提交于 2019-11-28 08:09:11
I am running Rails v4.0.2 on Mac OS 10.9.2 and I had everything smoothly. All of a sudden I'm getting an error saying gems are missing when I try rails server . I run bundle install and this is the output: Fetching gem metadata from https://rubygems.org/....... Fetching additional metadata from https://rubygems.org/.. Using rake 10.1.1 Using i18n 0.6.9 Using minitest 4.7.5 Using multi_json 1.9.0 Using atomic 1.1.16 Using thread_safe 0.2.0 Using tzinfo 0.3.39 Using activesupport 4.0.2 Using builder 3.1.4 Using erubis 2.7.0 Using rack 1.5.2 Using rack-test 0.6.2 Using actionpack 4.0.2 Using mime

How do I fix Rubygems recent deprecation warning?

依然范特西╮ 提交于 2019-11-28 07:33:42
I have recently run updates: gem update --system gem update Now, I come with a lot of deprecation warnings each time I load a gem. For example, rails console : NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Users/user/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Users

Error loading Active Record gem with sinatra app using RVM

亡梦爱人 提交于 2019-11-28 07:18:38
问题 I set up a project level RVM gemset for a sinatra app I am starting that will connect to a local database with Active Record. In order to test it I tried to run the below test app: test.rb require 'rubygems' # may not be needed, depending on platform require 'sinatra' require 'activerecord' class Article < ActiveRecord::Base end get '/' do Test.establish_connection( :adapter => "sqlite3", :database => "hw.db" ) Test.first.content end (Taken from the answer to this question: What's the best

“bad ecpoint” SSL error on fresh RVM Ruby 1.9.3 install on OSX Mountain Lion

早过忘川 提交于 2019-11-28 06:26:02
问题 Trying to use Ruby 1.9.3 & rest-client to make https requests like: RestClient.get('https://google.com') always gives me a SSL error, OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint which I cannot figure out. bad ecpoint ? I've had no trouble making the same request with 1.9.3 & rest-client on another Mountain Lion machine. Notes about this machine: MacBook pro with fresh Mountain Lion install, where I originally had some trouble

WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.6.16

亡梦爱人 提交于 2019-11-28 06:19:55
I can’t work out why I’m getting this error from Nokogiri when I start up Rails. From the little I know, it seems like something else is causing an older version of libxml2 to be loaded, which Nokogiri then ends up using, rather than the version it was compiled against. What do I need to do to get this working without the warning (and with the right libxml2)? I’m running this on a Macbook with OS X 10.5.8: $ rake db:create (in /Users/gareth/Sites/Rails3/ngtest) WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.6.16 HI. You're using libxml2 version 2.6.16

RVM and OSX Lion - RVM 'forgets' gemsets on system restart

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 06:16:07
问题 I never seemed to have this problem while doing Rails work in Linux, but since changing to OSX everytime I reboot my machine, RVM loses its list of gemsets, but they aren't actually gone. For example, I have several gemsets already made, and I restart my computer. I run the following command: $ rvm gemset list gemsets for system (found in /Users/evan/.rvm/gems/system) * This of course causes havoc when I run rails s to start up my server. The only way I've managed to get the gemsets back is

Installing linecache19 for Ruby 1.9.2 via rvm

 ̄綄美尐妖づ 提交于 2019-11-28 05:55:50
I am having a problem with installing linecache19(dependency of ruby-debug19) for ruby 1.9.2 Here is my term output $ rvm use 1.9.2 Using /home/bogdan/.rvm/gems/ruby-1.9.2-p180 $ ruby -v ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] $ rvm exec gem install linecache19 --backtrace gem install linecache19 --backtrace rvm 1.6.20 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] ERROR: Error installing linecache19: linecache19 requires Ruby version >= 1.9.2. ERROR: Error installing linecache19: linecache19 requires Ruby version >= 1.9.2. Building native

Uninstalling rails and gems, getting error \"cannot uninstall, check 'gem list -d …'

左心房为你撑大大i 提交于 2019-11-28 05:06:27
I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here . The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because thats the version I need. So... I realized I was using the system ruby, and wasn't taking advantage of

rvmsudo vs sudo?

我怕爱的太早我们不能终老 提交于 2019-11-28 04:42:13
I just moved to RVM. sudo bundle install gives me and error:- sudo bundle install /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError) from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:248:in `activate' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1276:in `gem' from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/bundle:18:in `<main>' and rvmsudo bundle install works like a charm. Whats the difference. Whats going on behind the