gem

ERROR: Failed to build gem native extension

两盒软妹~` 提交于 2019-12-11 02:48:45
问题 gem install unf_ext -v '0.0.6' localhost:workflow_boyun ryan007$ gem install unf_ext -v '0.0.6' Building native extensions. This could take a while... ERROR: Error installing unf_ext: ERROR: Failed to build gem native extension. /Users/ryan007/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb checking for main() in -lstdc++... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You

mysql ruby gem not installing on Windows 7

天大地大妈咪最大 提交于 2019-12-11 02:39:37
问题 Not a duplicate. This question is mysql gem and the other question is mysql2 gem. They do have the same answer though, but the other question's answer doesn't tell what the solution is explicitly. The answer is hidden in the comments. See yellow text of the answer for this question contains the solution. Below is an error I'm receiving when trying to install the mysql gem on Windows. C:\>gem install mysql Temporarily enhancing PATH to include DevKit... Building native extensions. This could

Rails - getting errors installing the spreadsheet gem using rubygems

这一生的挚爱 提交于 2019-12-11 02:08:30
问题 I want to be able to deal with excel spreadhseets in rails. So I am using the spreadsheet library. However, when I use rubygems to install the spreadsheet, I get an exception: Successfully installed spreadsheet-0.7.1 1 gem installed Installing ri documentation for spreadsheet-0.7.1... unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK for lib/spreadsheet/excel/internals.rb, skipping unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK

Installing Ruby Gem on Raspbian Error: Failed to Build Gem Native Extension

自古美人都是妖i 提交于 2019-12-11 01:53:50
问题 I'm trying to install a ruby gem (Jekyll) and I keep getting the following error. ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from extconf.rb:1:in `<main>' I'm using a Raspberry Pi. When asking Ruby it's version, I get the following: user@raspberrypi ~ $ ruby

how to reopen a class in gems

…衆ロ難τιáo~ 提交于 2019-12-11 01:44:48
问题 I have same class in main application and a gem (mountable engine). I want to reopen the class(defined in main applicaion) in the gem. Main application has app/models/test.rb class Test def original_method end end in Gemfile gem 'gem_name' In the gem app/models/test.rb class Test def add_method end end But main application raises an error that Test#original_method is not defined. It looks like Test class is overwritten in the gem. Why not reopen? How can I solve the problem?? EDIT

How to require a Ruby gem directly from its path?

折月煮酒 提交于 2019-12-11 01:37:38
问题 In order to work with rubyzip i installed the gems: gem install --local rubyzip-1.1.7.gem gem install --local zip-zip-0.3.gem In my code i call the gems using the require method: require 'zip/zip' require 'zip/filesystem' I want to use require to load the gems directly from their location on my machine. i want somthing like this: require 'path_to_my_zip_gem' Where path_to_my zip_gem contains the gem files 回答1: Basically, it's because require method loads files by name from paths listed in $:

Rails4 and Devise (NoMethod error)

三世轮回 提交于 2019-12-11 01:10:14
问题 I am learning how to build web application on ruby with rails gem. Following this tutorial: http://12devs.co.uk/articles/writing-a-web-application-with-ruby-on-rails/ All was good & clear before I started to install Devise gem for user authentication feature. I am getting error after doing rails generate devise:install Error report is this epic (looks like I messed up some dependencies somehow): sergey@sergey-VirtualBox:~/Bookmarks$ rails generate devise:install /home/sergey/.rvm/gems/ruby-2

Rails Gemfile: use one line in development, another in production

a 夏天 提交于 2019-12-11 00:37:29
问题 We run Unicorn on Heroku in production but use Webrick in development on a local machine. We are unable to install Unicorn on the local machine. Is it possible to have Rails load the Unicorn gem only in production? Right now, our solution is to comment out the Unicorn gem when running the app locally and uncomment the gem when pushing to Heroku. We're on Rails 3.2.12. Gemfile: source 'http://rubygems.org' gem 'rails', '3.2.12' gem 'jquery-rails' # # ===========================================

pg gem install on Mac OS Lion with rvm

跟風遠走 提交于 2019-12-10 22:43:09
问题 212-178-13-214:~ igorfedoronchuk$ gem install pg Building native extensions. This could take a while... /Users/igorfedoronchuk/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 ERROR: Error installing pg: ERROR: Failed to build gem native extension. /Users/igorfedoronchuk/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb checking for pg_config... yes Using config values from /usr/bin/pg

How to remove gems from Rails project?

℡╲_俬逩灬. 提交于 2019-12-10 21:36:46
问题 I'm trying to remove a gem from my project so I went into the gem file and commented it out. ... gem some_gem # gem 'gem_I_dont_want' gem another_gem .... Then I run bundle To check that the gem is gone, I type bundle show But I still see the gem there ... * some_gem * gem_I_dont_want * another_gem Am I not understanding how bundle works? Is there something more I'm suppose to do? 回答1: The gem could be a dependency of another gem which would explain its presence in bundle show . If the gem