Rails Gem Load Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any
Rails Could Not Find Bundler
questions you might have Meta Discuss the workings and policies could not find 'bundler' (>= 0) among 13 total gem(s) (gem::loaderror) of this site About Us Learn more about Stack Overflow the company Business Learn more about /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs' hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow
Path Set To Rvm Ruby But Gem_home And Or Gem_path Not Set
is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Rails Server Error: “Could not find RubyGem rails (>=0) (Gem:: LoadError)” up vote 0 down vote favorite Hardest bug that I've encountered -- would love y'alls help! (Still learning and
Could Not Find 'bundler' (>= 0) Among 19 Total Gem(s) (gem::loaderror)
a beginner). I tried deploying on Heroku earlier and now my app doesn't work on both Heroku and locally. Trying to now fix only the local situation. Other things that I changed were the database.yml file. It now uses postgresql for all, but in my GemFile I specified sqlite3 for testing. rails s /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem' from /usr/bin/rails:18 My Gemfile: source 'https://rubygems.org' #ruby '2.0.0' gem 'rails', '3.2.3' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' group :development, :test do gem 'sqlite3' end group :production do gem 'pg' end # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platform => :ruby gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails' gem 'paperclip' Ran b
here for a quick overview of the site Help Center Detailed answers to any rvm implode questions you might have Meta Discuss the workings and policies
Error: Error Installing Rails: Error: Failed To Build Gem Native Extension.
of this site About Us Learn more about Stack Overflow the company Business Learn more about gem install rails version hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow http://stackoverflow.com/questions/18338755/rails-server-error-could-not-find-rubygem-rails-0-gem-loaderror is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Gem::LoadError when starting Rails server up vote 0 down vote favorite I did a fresh install of Ubuntu 12.04 yesterday and am working with Ruby/Rails for the first time in http://stackoverflow.com/questions/12025023/gemloaderror-when-starting-rails-server this environment, and copied the project directly from my Windows machine. I installed rubygems, then cd'd to the project directory and ran bundle install, which worked without any errors. When trying to start the server though (rails s) , the server never starts and I get an exception: /usr/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError) from /usr/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:256:in to_spec'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:1208:ingem' from /usr/local/bin/rails:18 My Gemfile is as folows: source 'http://rubygems.org' gem 'rails', '3.2.6' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' gem 'execjs' gem 'therubyracer' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platforms => :ruby gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails' gem 'devise' # To use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' # To use
on Rails on my Mac. Everything runs perfect until I type "localhost:3000" on my browser. For some reason is telling my mysql2 https://teamtreehouse.com/community/mysql2-gem-is-not-loading-mac gem is not loaded, this is the error: Gem::LoadError Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2' to your Gemfile (and ensure its version http://qiita.com/oshin/items/f5ff336f63366c364909 is at the minimum required by ActiveRecord). I am new to Rails and after browsing around for two hours looking for a solution, all I found was hundreds of people could not having the same problem, but no precise answer. I will appreciate any help, and I thank any answer in advance. Thanks! Steve Hunter Treehouse Moderator 41,513 Points Steve Hunter Steve Hunter Treehouse Moderator 41,513 Points 1y ago Hi there, Can you explain what steps you have take with you app. Are you following a course on Treehouse? You've installed the Mac could not find Ruby on Rails and started the web server, right? Do you get messages in the console to say how far the process gets? In your Gemfile; do you have mysql2 installed as a line like gem 'mysql2'. Steve. 14 Answers MOD Kevin Korte Treehouse Moderator 26,207 Points Kevin Korte Kevin Korte Treehouse Moderator 26,207 Points about 1 year ago First, I assume you have gem 'mysql2' in your Gemfile in your rails root directory. Make sure you do. And you've ran bundle install. If you still have this problem, I'd delete your Gemfile.lock (it'll be auto generated on the next bundle install). You can also try running bundle update mysql2 Try those. Which version of rails are you running? Mauris Alonso 5,929 Points Mauris Alonso Mauris Alonso 5,929 Points about 1 year ago Yes, Gem mysql2 is installed. Bundle install & update were done. I deleted the gemfile.lock and I also did bundle updated mysql2. Still the same. I have Rails 4.2.4, Ruby version 2.2.3p173. Just in case this have something to do with it, my mysql server version i
攻撃的または迷惑な内容を含んでいます 不適切な内容を含んでいます 送信26ストック1コメントストックストック済み解除追記: Rails4.2.5以降では以下の問題は解消しています Error log: but the gem is not loaded??? な、なぜ... /Users/user/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to yo ur Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError) from /Users/user/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec' from /Users/user/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:50:in `establish_connection' from /Users/user/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railtie.rb:120:in `block (2 levels) in