rubygems

Unable to install MySQL2 gem on Windows 7

北城余情 提交于 2019-12-28 02:55:22
问题 I am getting the following error message while installing, let me know if I need to post more details. I followed instructions from the following location: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit I am using ruby 1.9.2p136 (2010-12-25) [i386-mingw32]. Here is what I get: E:\work_desk\trunk>gem install mysql2 -v 0.2.4 Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to

Can't access RubyGems - possibly due to SSL? [duplicate]

冷暖自知 提交于 2019-12-28 02:07:53
问题 This question already has answers here : SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (37 answers) Closed 4 years ago . New Ruby on Rails dev here, just trying to install and get set up. I'm following this guide on how to get started. However, when I get to 3.2 Creating the Blog Application, I run into an issue when I run rails new blog . When I try that, I get an error that says An error occurred while installing rake 10.4.2, and Bundler

How to avoid “cannot load such file — utils/popen” from homebrew on OSX

旧巷老猫 提交于 2019-12-28 01:39:13
问题 I'm getting an error when I run brew in the terminal: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- utils/popen (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/Library/Homebrew/utils.rb:6:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib

cannot load such file — bundler/setup (LoadError)

ⅰ亾dé卋堺 提交于 2019-12-27 12:13:11
问题 I'm setting Rails 4 application with Ruby 2.0, but I'm getting "Web application could not be started" and get this trace: cannot load such file -- bundler/setup (LoadError) /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/lib/phusion_passenger/loader_shared_helpers.rb:212:in `run_load_path_setup_code' /usr/lib/ruby/gems/1.8

How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”

纵然是瞬间 提交于 2019-12-27 12:00:48
问题 Running a Ruby on Rails (RoR) app or Ruby code which uses the ActiveRecord framework, you get the error message: Please install the postgresql adapter: gem install activerecord-postgresql-adapter Trying to run: gem install activerecord-postgresql-adapter also fails, leaving you at a loss. 回答1: The problem is not what anyone wrote. The problem is that the name of the postgresql database adapter is "postgresql", not "postgres", though the name of the GEM is "pg". The definition in the database

Error installing mysql2: Failed to build gem native extension

耗尽温柔 提交于 2019-12-27 08:46:05
问题 I am having some problems when trying to install mysql2 gem for Rails. When I try to install it by running bundle install or gem install mysql2 it gives me the following error: Error installing mysql2: ERROR: Failed to build gem native extension. How can I fix this and successfully install mysql2 ? 回答1: On Ubuntu/Debian and other distributions using aptitude: sudo apt-get install libmysql-ruby libmysqlclient-dev Package libmysql-ruby has been phased out and replaced by ruby-mysql . This is

NoMethodError in Users#unsubscribe

南楼画角 提交于 2019-12-25 16:40:39
问题 I am working on implementing unsubscribe link to my rails mailer. Unfortunately, my code breaks with this: NoMethodError in Users#unsubscribe - undefined method `unsubscribe_hash' for nil:NilClass which points to /app/views/users/unsubscribe.html.erb line #3 <h4>Unsubscribe from Mysite Emails</h4> <p>By unsubscribing, you will no longer receive email...</p> <%= simple_form_for(@user, unsubscribe_path(id: @user.unsubscribe_hash)) do |f| %> <%= f.hidden_field(:subscription, value: false) %> <%=

Can't get the 'Follow' button to work with Acts_As_Follower

为君一笑 提交于 2019-12-25 15:55:25
问题 I'm using Acts_as_follower in a wishlist app I'm working on. I think it should be working, but the button to actually follow another user is not. The follow button is in my user index view, and I can see it there, but it doesn't respond to being clicked. Any help would be appreciated. Here's my code: index.html.erb <div class="container"> <% @users.each do |u| %> <div class="col-sm-8 col-lg-4"> <div id="gifts"> <div class="box panel panel-default"> <h2><%= link_to u.name, u %></h2> <p> <table

Can't get the 'Follow' button to work with Acts_As_Follower

杀马特。学长 韩版系。学妹 提交于 2019-12-25 15:55:16
问题 I'm using Acts_as_follower in a wishlist app I'm working on. I think it should be working, but the button to actually follow another user is not. The follow button is in my user index view, and I can see it there, but it doesn't respond to being clicked. Any help would be appreciated. Here's my code: index.html.erb <div class="container"> <% @users.each do |u| %> <div class="col-sm-8 col-lg-4"> <div id="gifts"> <div class="box panel panel-default"> <h2><%= link_to u.name, u %></h2> <p> <table

Error FOR gem install nokogiri AND bundle install FOR Middleman app

。_饼干妹妹 提交于 2019-12-25 13:15:15
问题 I’m starting a Middleman app from scratch. Whenever I attempt to run the server, i.e. middleman server I get an error (below) that tells me “error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue.” However, when I attempt to install nokogiri (1.6.6.2), I get another error (below) that says me “ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension.” I then attempt to bundle install my gemfile but receive another error. Can anyone tell me what I