gem

Gem not installing package

偶尔善良 提交于 2019-12-23 22:35:05
问题 So I'm trying to install a package $ sudo gem install compass to be specific. It installs correctly and shows up when I do a list: $ gem list *** LOCAL GEMS *** chunky_png (1.2.5) compass (0.12.2) fssm (0.2.9) sass (3.1.20) but for some reason when I try to run compass nothing happens. It says the command is not found. What am I doing wrong? $ compass bash: compass: command not found I'm running Ubuntu if that helps. 回答1: Confirm that there is output for locate -r /compass.rb$ , then echo

Gem::LoadError: Add `gem 'mysql'` to your Gemfile

早过忘川 提交于 2019-12-23 21:07:42
问题 Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded. Add `gem 'mysql'` to your Gemfile. I have been getting this error when I was following this guide: http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html and running $ cd activerecord $ bundle exec rake test_sqlite3 After searching around for a bit, I've been told I need to modify the Gemfile and add gem 'mysql' then run bundle install . However, I am not able to see mysql in the list. Resolving

actionwebservice and rails 3 /

非 Y 不嫁゛ 提交于 2019-12-23 19:55:37
问题 I'm on a rails 3 project trying to install actionwebservice using: gem 'rails', '3.0.4' gem 'actionwebservice', :git => 'https://github.com/ywen/actionwebservice.git' And I get the error: Bundler could not find compatible versions for gem "activerecord": In Gemfile: actionwebservice depends on activerecord (= 2.3.5) rails (= 3.0.4) depends on activerecord (3.0.4) Any suggestions? 回答1: I had the same problem. Try this gem: https://github.com/dnordberg/actionwebservice gem 'actionwebservice',

Unicorn worker timeout on AWS boxes

随声附和 提交于 2019-12-23 19:08:42
问题 I'm trying to setup a Unicorn on an AWS box, but the workers just keep timing out and I don't know why. I'm using a Ubuntu Server 14.04 LTS AMI, installing everything needed for a standard Ruby on Rails installation. Using rails new, I generate an empty app and attempting to access it the first time seems to be fast, but after that the workers just timeout continuously and takes forever to serve the webpage. Loading a standard WEBrick server does not have this problem and loads pages almost

Ruby Gem for mysql 5.5 in windows

大兔子大兔子 提交于 2019-12-23 17:24:32
问题 We are going to use mysql 5.5 in our application for production. I did some online search and it seems that mysql2 0.2.6 is the one for mysql5.5. Is this gem good for windows as well? Any tips on how to install and manage for production? Thanks. 回答1: The gems (either mysql or mysql2) provides an version-independent layer to the version of MySQL you are running. However, if you're using a pre-compiled gem, it will require a version specific MySQL library be installed in your system. To avoid

Where is the CheckoutController#edit in spree?

旧巷老猫 提交于 2019-12-23 16:30:02
问题 I need to play with edit action of the CheckoutController, and I see it in server logs, I see it in documentation but I can't find it in gem's code. Where's the magic? Spree version is 1.2.2 回答1: You can find it inside the spree_core gem in spree_core-1.3.0/app/controllers/spree/checkout_controller.rb You might find useful to use tools such as ack to search files. I found it by running ack-grep CheckoutController inside the gems directory. Note that ack-grep is just an alias for ack to avoid

Can I rename my Gemfile to Gemfile.rb

霸气de小男生 提交于 2019-12-23 15:57:38
问题 Without a file extension I can't get syntax highlighting to persist. That's not the end of the world, but I'd appreciate having it. Will it break Rails if I rename Gemfile as Gemfile.rb ? 回答1: It looks like you can rename it, but bundler will not automatically find it. However, you can just prepend every bundler command with BUNDLE_GEMFILE=Gemfile.rb and it'll work: BUNDLE_GEMFILE=Gemfile.rb bundle install You might also look at http://gembundler.com/man/bundle-config.1.html -- It mentions a

Error when running gem specific_install

断了今生、忘了曾经 提交于 2019-12-23 15:32:15
问题 I am trying to run 'gem specific_install' (https://github.com/rdp/specific_install) to install another gem from a Github repository: sudo gem specific_install https://github.com/RemoteRepository/foo_gem.git After being prompted for my Github Username and password, I am able to download the gem. However, I get the following error: ERROR: While executing gem ... (NoMethodError) undefined method `build' for Gem::Package:Module Apparently, other people have the same error based on a comment to a

Install Compass on OS X Yosemite

送分小仙女□ 提交于 2019-12-23 15:27:20
问题 I'm trying to install compass using GEM but i have a lot of error. My macbook pro is running OS X Yosemite. Anyone have the same problem ? Thank you for your time. Have a nice day sudo gem install compass Password: ERROR: Error installing compass: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20141019-17085-1dv9dek.rb extconf.rb /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal

Install Nokogiri on Yosemite 10.10.3

左心房为你撑大大i 提交于 2019-12-23 13:02:33
问题 I have: Mac OS X Yosemite 10.10.3 MacPorts (not Brew) Ruby 2 in system (not RVM) I want to install Nokogiri and tried: port install nokogiri and got: Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150323-30174-1mqhl4i.rb extconf.rb checking if the C compiler accepts ... yes checking if the C compiler accepts -Wno-error=unused