gem

rspec --init not working/ `mkd ir': Invalid argument - ./C: (Errno::EINVAL)

别说谁变了你拦得住时间么 提交于 2019-12-17 20:55:24
问题 I'm following codeschool's class on rspec. Installing worked fine. I made a file called rspec-zombie for the project. Fine. But when I tried rspec --init in powershell, I got an unholy error message. I'm under the impression there are supposed to be some files made inside the directory, which aren't there. It follows. C:\Users\Roman\The-Odin-Project\rspec-zombie> rspec --init create .rspec C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory

ERROR: Error installing ffi: ERROR: Failed to build gem native extension

僤鯓⒐⒋嵵緔 提交于 2019-12-17 19:33:18
问题 Got the DevKit installed and re-ran the ffi install….got this as an output: C:\Documents and Settings\******>gem install ffi Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include... no checking for rb_thread_blocking_region()... yes checking for ruby_thread_has_gvl_p()...

Why do I get an error installing the JSON gem in Ubuntu?

社会主义新天地 提交于 2019-12-17 18:43:13
问题 Using Ubuntu, when I run " bundle install " to set up my Rails environment, it throws an error during the JSON gem installation: Installing json (1.7.3) with native extensions Gem::Installer::ExtensionBuildError: 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>' Gem

Forking a gem for a Rails project

泄露秘密 提交于 2019-12-17 17:25:06
问题 I've found myself twice in this situation: I install a gem on my system and start using it from my Rails project. Eventually I need to make some changes to that gem. How should I proceed? Ideally I'd like to check out the source code of that gem somewhere, like ~/third_party/gems, work on it and have my Rails project use that instead. Is that possible? In all the cases the gems were at github so I would probably for it at github, clone it, make my chances and maintain my own branch. I suppose

OS-X, Rails: “Failed to build gem native extension”

旧时模样 提交于 2019-12-17 10:53:32
问题 I'm stuck trying to install rails on my mac. I have OS X 10.6.8 and I have confirmed that I have Ruby, version 1.8.7 I ran sudo gem update and sudo gem update --system to get the latest versions of the software. However, when I run sudo gem install rails I get this error: ERROR: Error installing rails: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library

sqlite3-ruby gem: Failed to build gem native extension

隐身守侯 提交于 2019-12-17 10:37:17
问题 Update: Check out this follow-up question: Gem Update on Windows - is it broken? On Windows, when I do this: gem install sqlite3-ruby I get the following error: Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb install sqlite3-ruby --platform Win32 checking for fdatasync() in rt.lib... no checking for sqlite3.h... no nmake 'nmake' is not recognized as an internal or external

“gem install rails” fails with DNS error

自作多情 提交于 2019-12-17 09:33:10
问题 $ rvm use Using /home/owner/.rvm/gems/ruby-2.1.2 $ gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.network" port 80 (http://your-dns-needs-immediate-attention.network/quick/Marshal.4.8/thread_safe-0.3.4.gemspec.rz) $ gem update --system ... $ gem -v 2.4.1 $ gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNREFUSED:

“gem install rails” fails with DNS error

浪尽此生 提交于 2019-12-17 09:33:05
问题 $ rvm use Using /home/owner/.rvm/gems/ruby-2.1.2 $ gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.network" port 80 (http://your-dns-needs-immediate-attention.network/quick/Marshal.4.8/thread_safe-0.3.4.gemspec.rz) $ gem update --system ... $ gem -v 2.4.1 $ gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNREFUSED:

bundle install / update: libv8 (therubyracer) installation fails (with native extensions)

梦想与她 提交于 2019-12-17 09:22:08
问题 I recently wanted to update my gem bundle but ran into installation problems with libv8 (requirement for therubyracer): Installing libv8 (3.3.10.3) with native extensions /usr/local/rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /usr/local/rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb Checking for Python...*** extconf.rb failed *** Could

Cannot install JSON gem in rails using windows

依然范特西╮ 提交于 2019-12-17 06:45:13
问题 I am doing a bundle install and all of the gems work fine except JSON when it get to the JSON gem I receive this error. Installing json (1.6.1) with native extensions c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:55 2:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::E xtensionBuildError) c:/Ruby192/bin/ruby.exe extconf.rb checking for re.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack