I have created a omega subtheme with drush omega-wizard. Trying to fire up omega guard with drush omega-guard gives me this:
There was a problem with your setup:
[error] Resolving dependencies... Bundler can't satisfy your Gemfile's
dependencies. Install missing gems with bundle install.
Running bundle install resolves the first couple of dependencies - addressable, sass, sass-maps, breakpoint and the it fails with the following message:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/brix/.rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb creating Makefile
make clean
make compiling hitimes.c make: *** [hitimes.o] Segmentation fault: 11
make failed, exit code 2
Gem files will remain installed in
/Users/brix/.rvm/gems/ruby-1.9.3-p547#omega.haandvaerk/gems/hitimes-1.2.2
for inspection. Results logged to
/Users/brix/.rvm/gems/ruby-1.9.3-p547#omega.haandvaerk/extensions/x86_64-darwin-13/1.9.1/hitimes-1.2.2/gem_make.out
An error occurred while installing hitimes (1.2.2), and Bundler cannot
continue. Make sure that gem install hitimes -v '1.2.2' succeeds
before bundling.
I am on OS X Yosemite - 10.10.1
I had same problem on Ubuntu 14.04, and I was not able to install hitimes, but I found out some shell problems with gnome or sth, with solution here
. I don't know anything about mac, but I hope my experience become a light in finding your path :D
Related
Context:
I ran gem uninstall --all in a "scorched-earth" attempt to debug a persistent Capybara error I was experiencing. My plan was to then run bundle install in the folder where my Gemfile is, and re-install the necessary gems with their correct versions. However, running that command resulted in the following:
Could not find addressable-2.3.6 in any of the sources
So I attempted to install the addressable gem by itself (i.e. gem install addressable), and that seemed to work fine. However when I re-ran bundle install, I got the following:
Could not find websocket-driver-0.3.4 in any of the sources
Attempting the same strategy (gem install websocket-driver) resulted in the following:
Fetching: websocket-driver-0.3.4.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing websocket-driver:
ERROR: Failed to build gem native extension.
/Users/richiethomas/.rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb
creating Makefile
make clean
make
compiling websocket_mask.c
make: *** [websocket_mask.o] Segmentation fault: 11
make failed, exit code 2
Gem files will remain installed in /Users/richiethomas/.rvm/gems/ruby-1.9.3-p547/gems/websocket-driver-0.3.4 for inspection.
Results logged to /Users/richiethomas/.rvm/gems/ruby-1.9.3-p547/extensions/x86_64-darwin-13/1.9.1/websocket-driver-0.3.4/gem_make.out
The contents of the gem_make.out file referenced above are:
creating Makefile
make clean
make
compiling websocket_mask.c
make: *** [websocket_mask.o] Segmentation fault: 11
make failed, exit code 2
My best guess is that I was too hasty in uninstalling all the things, and accidentally uninstalled something related to ruby and/or C compilation. I can't be sure though, because I don't know what a "make" is, or why it failed (according to the .out file).
UPDATE:
I tried running xcode-select --install from the command line, hoping this would solve any potential compilation errors, but no joy.
I ran rvm reinstall ruby-1.9.3 --with-gcc=clang, and this allowed me to install the version of websocket-driver that I wanted.
What helped me on Win 7 x64 was
gem install --verbose websocket-driver
But that not always works for some reason
I'm failing to install Jekyll using gem in Ruby. Here's the output messages:
D:\Ruby21\bin>gem install jekyll
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
D:/Ruby21/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR=" clean
Makefile:238: *** multiple target patterns. Stop.
make "DESTDIR="
Makefile:238: *** multiple target patterns. Stop.
make failed, exit code 2
Gem files will remain installed in D:/Ruby21/lib/ruby/gems/2.1.0/gems/redcarpet-3.2.0 for inspection.
Results logged to D:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/redcarpet-3.2.0/gem_make.out
D:\Ruby21\bin>
Unlike the other issue here, where the error breaks in the Makefile on line 222, mine breaks in the Makefile on line 238.
I can tell it has nothing to do with spaces in my installation path (since I installed Ruby in the root of my D drive). But anything from there is beyond my scope.
I'm using Windows Vista x86. I have installed Ruby 2.1.0 stable.
Does anyone know how to fix this?
Nevermind, I didn't solve the problem, but rather I used a workaround.
I installed Cygwin-x86 on my laptop, then installed Ruby and Rubygem, finally installed Jekyll and managed to go past the redcarpet-v3.2.0 build error.
To install Jekyll in Cygwin:
Run cygwin-setup.exe.
Install appropriate packages: Ruby, rubygem, make, gcc, git, libxslt, libxml2. Some more packages may be required here.
Install jekyll using gem install jekyll. Wait.
Type in command: vim ~/.bashrc
Scroll to the end and add export PATH=$PATH:".gem/ruby/gems/jekyll-2.4.0/bin"
That's how the Jekyll is installed on Cygwin.
Later on, you may need the following:
Subversion
bzip2
apt-cyg
patch
curl
rvm
jemoji
jekyll-sitemap
And have to do a lot of ~/.bashrc editing, calling source $HOME/path/to/rvm and PATH fixing.
I try to install Jekyll with pages, using enter link description here.
The process stops when installing RedCloth (4.2.9): "Make sure that gem install RedCloth -v '4.2.9' succeeds before bundling."
The results below (I changed https in H due to url limitations in this Question).
I run OS X 10.9.2
Step 1 = OK
mikea:mego mikea$ ruby --version
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
Step 2 = OK
mikea:mego mikea$ sudo gem install bundler
Password:
Successfully installed bundler-1.5.3
Parsing documentation for bundler-1.5.3
1 gem installed
Step 3 = NOK
mikea:mego mikea$ bundle install
Fetching gem metadata from H://rubygems.org/.......
Fetching additional metadata from h://rubygems.org/..
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-cflags=-w
checking for main() in -lc... yes
creating Makefile
make "DESTDIR="
compiling redcloth_attributes.c
compiling redcloth_inline.c
compiling redcloth_scan.c
linking shared-object redcloth_scan.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [redcloth_scan.bundle] Error 1
Gem files will remain installed in /Users/mikea/.bundler/tmp/25125/gems/RedCloth-4.2.9 for inspection.
Results logged to /Users/mikea/.bundler/tmp/25125/gems/RedCloth-4.2.9/ext/redcloth_scan/gem_make.out
An error occurred while installing RedCloth (4.2.9), and Bundler cannot
continue.
Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling.
I solved this by install rbenv with brew, and then install ruby 2.1.1 through rbenv. Finally change the ruby version to 2.1.1. Here is the command:
$brew update
$brew install rbenv
$rbenv install 2.1.1
$rbenv global 2.1.1
log out. Now you can try your 3 step.
I did not use hue answer to install rbenv with brew. Maybe you can use it.
I solved the problem by using Terminal, first go to the folder in Sites and then type:
jekyll serve --watch --baseurl ""
I installed compass and sass and everything worked correctly. But now I am trying to install singularity and breakpoint and I am getting this error over and over:
Sayras-iMac:~ sayralopez$ sudo gem install breakpoint
Building native extensions. This could take a while...
ERROR: Error installing breakpoint:
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/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ffi-1.9.3 for inspection.
Results logged to /Library/Ruby/Gems/1.8/extensions/universal-darwin-12/1.8/ffi-1.9.3/gem_make.out
I am still a newb at terminal commands, so I have no idea what is going on. I tried reinstalling and updating ruby and it still wont work. Any idea what could be going on and how to fix it?
MANY THANKS!
Install Ruby Version Manager first:
$ ruby install rvm
After installing rvm, I was able to install breakpoint and sigularity (and susy!)
Hope that helps!
I was trying to fix a strange problem in Rails so I resorted to uninstalling all the gems (using a command found here: http://geekystuff.net/2009/01/14/remove-all-ruby-gems/) and then running bundle install.
The removal was successful, but when I ran bundle install, I got the following error:
Installing activeresource (3.2.13)
Using bundler (1.3.5) Installing
rack-ssl (1.3.3)
Installing json (1.8.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension .
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb creating Makefile
make
generating generator-i386-mingw32.def
compiling generator.c
linking shared-object json/ext/generator.so
make install
/usr/bin/install -c -m 0755 generator.so
c:/RailsInstaller/Ruby1.9.3/lib/ruby/ge
ms/1.9.1/gems/json-1.8.0/lib/json/ext /usr/bin/install: cannot remove
`c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
/gems/json-1.8.0/lib/json/ext/generator.so': Permission denied make:
*** [c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/j
son/ext/generator.so] Error 1
Gem files will remain installed in
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9 .1/gems/json-1.8.0 for
inspection.
Results logged to
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.
0/ext/json/ext/generator/gem_make.out An error occurred while
installing json (1.8.0), and Bundler cannot continue.
Make sure that
gem install json -v '1.8.0' succeeds before bundling.
I've spent a fair amount of time but still can't figure out what's wrong. Please advise.
I downloaded and ran Rails Installer. This time when I ran bundle install, the problem was gone.
It might be the white space in your Ruby path:
NOTE: The path to your must not contain any
whitespaces (like in “C:\Program Files\Ruby193”). This is very
important because whitespaces in the path to your ruby installation
will cause certain error messages as soon as you try to install gems
which require the DevKit.
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
hth
Frank