gem

Undefined method `end_with?' for “no such file to load — Win32API”:String (NoMethodError)

天大地大妈咪最大 提交于 2019-12-08 05:41:38
问题 I'm just setting up a new server and want to install the Twitter gem but am running into problems on Ubuntu 8.04/Ruby 1.8.6 It says that "multi_json requires RubyGems >= 1.3.6", but running "gem update --system" obviously tries and updates to RubyGems 1.5 which can't be done on Ruby 1.8.6 and fails with the following error: undefined method `end_with?' for "no such file to load -- Win32API":String (NoMethodError) from ./lib/rubygems/config_file.rb:55 from ./lib/rubygems/custom_require.rb:29

gem install compass not working

孤者浪人 提交于 2019-12-08 05:38:15
问题 having trouble running the line gem install compass in terminal. It's returning the following error. Is anyone able to help out with this problem? ERROR: Error installing compass: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby -r ./siteconf20150225-51908-cfetpz.rb extconf.rb checking for ffi.h... *** 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

How to use fb_graph gem to post from app on my page wall?

二次信任 提交于 2019-12-08 05:34:21
问题 Ok, so fb_graph looks pretty simple to use but Im kinda confused as how to use it. All I want to do, and when I post a blog entry from my rails app, have the app automatically post to my facebook page. I have my facebook app_id and app_secret already but Im confused as to what to do with this code: me = FbGraph::User.me(ACCESS_TOKEN) me.feed!( :message => 'Updating via FbGraph', :picture => 'https://graph.facebook.com/matake/picture', :link => 'https://github.com/nov/fb_graph', :name =>

Rails Gem with model-relationships for Rails Engines

ぐ巨炮叔叔 提交于 2019-12-08 04:23:35
问题 I'm just developing a Rails application which will have many Engines. However, I'm not able to edit relationships inside the Engines. To solve this issue, I want to create a relationships-Gem which will be included in the Application and defines the relationships (see: https://stackoverflow.com/a/11835899/603126). Let's assume, I have a User (namespaced and isolated) Engine and a Comment (namespaced and isolated) Engine. What I want is to override / extend the relationships inside the

Error installing json gem: The 'json' native gem requires installed build tools

狂风中的少年 提交于 2019-12-08 04:00:00
问题 When i'm trying to install this gem it claims that i need to have a devkit installed although i am sure i do have it. It also suggests that i need to update my systems variables in PATH which i have directly linked to the devkit file in ruby. I have seen other questions on Stack Overflow and they didn't work with my issue. here is the full error message: C:\Users\Mahamoud>gem install json ERROR: Error installing json: The 'json' native gem requires installed build tools. Please update your

Ruby 1.9.2 and pcap gem? Compiling error

纵饮孤独 提交于 2019-12-08 02:58:20
问题 I am having trouble installing the pcap gem with ruby 1.9.2... It works fine with 1.8.7. Anyone know whats going on? wuntee@wuntee:~$ rvm use system Now using system ruby. wuntee@wuntee:~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] wuntee@wuntee:~$ gem install pcap WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/wuntee/.gem/ruby/1.8/bin in your PATH, gem executables will not run. Building

Error running jekyll locally (rvm gemset issue)

[亡魂溺海] 提交于 2019-12-08 02:55:48
问题 I installed ruby 1.9.3 thru RVM, and now want to get the rekyll gem so that I can test my blog locally. When I gem install jekyll it intalls ok, but when i try to run jekyll --server i get an error: /Users/matt/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find jekyll (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError) from /Users/matt/.rvm/rubies/ruby-1.9.3-p194/lib

can't run sass after successfully installing it

…衆ロ難τιáo~ 提交于 2019-12-08 02:15:58
问题 I did sudo gem install sass , which succeeded. Running sudo sass -v works fine, but running as a normal user gives: $ sass -v -bash: /usr/bin/sass: Permission denied Indeed the executable's permissions are 700. I changed the permissions to 755, but that leads to: $ sass -v /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'sass' (>= 0) among 4 total gem(s) (Gem::LoadError) from /System/Library/Frameworks/Ruby

gem install pg -v 0.12.2 error on mac

有些话、适合烂在心里 提交于 2019-12-08 01:57:40
问题 I'm new to the world of programming and I'm having a bit of a time resolving a bundling error with ruby on rails. I'm running OSX 10.9.1, RVM for Ruby management, and I am using ruby 2.1.1. The error I receive is: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/Removed/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe

Rails S Won't Start the Server: Could not find rails (>= 0)?

半腔热情 提交于 2019-12-08 01:41:16
问题 I am fairly new to Ruby/Rails but I just have not found out how to get it started (it worked a few days ago). I am in the actuall app folder and then rails s /Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError) from /Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /Users/me/.rvm/rubies/ruby