Skip to content

Instantly share code, notes, and snippets.

@chadmiko
Last active December 11, 2015 02:08
Show Gist options
  • Save chadmiko/4528013 to your computer and use it in GitHub Desktop.
Save chadmiko/4528013 to your computer and use it in GitHub Desktop.

Revisions

  1. chadmiko revised this gist Jan 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -33,6 +33,6 @@ Results logged to /Users/user/.rvm/gems/ruby-1.9.3-rc1@some_gemset/gems/rmagick-
    An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
    Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.

    **See hammalik comment on original Gist which worked best for me:**
    **See hishammalik comment on original Gist which worked best for me:**

    Had similar problem like arthurnn, but the proper solution is to described here: https://coderwall.com/p/wnomjg. Didn't have to do anything else.
  2. chadmiko revised this gist Jan 14, 2013. 1 changed file with 2 additions and 8 deletions.
    10 changes: 2 additions & 8 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -33,12 +33,6 @@ Results logged to /Users/user/.rvm/gems/ruby-1.9.3-rc1@some_gemset/gems/rmagick-
    An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
    Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.

    Here's what I did:

    1. Install XCode 4.4
    2. Install Unix Developer Tools (from apple's website. didn't work from xcode)
    3. Instal XQuartz 2.7.2
    4. Reinstall ImageMagick (with homebrew)
    5. sudo su && cd /usr/bin && ln -s llvm-gcc-4.2 gcc-4.2
    6. cd your_app && bundle install
    **See hammalik comment on original Gist which worked best for me:**

    Had similar problem like arthurnn, but the proper solution is to described here: https://coderwall.com/p/wnomjg. Didn't have to do anything else.
  3. @chalmagean chalmagean created this gist Jul 25, 2012.
    44 changes: 44 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    For those of you who get this error after upgrading to mountain lion:


    Installing rmagick (2.13.1) with native extensions
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/user/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb
    checking for Ruby version >= 1.8.5... yes
    extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config.
    checking for /usr/bin/gcc-4.2... no
    No C compiler found in ${ENV['PATH']}. See mkmf.log for details.
    *** 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 may need configuration options.

    Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/user/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby


    Gem files will remain installed in /Users/user/.rvm/gems/ruby-1.9.3-rc1@some_gemset/gems/rmagick-2.13.1 for inspection.
    Results logged to /Users/user/.rvm/gems/ruby-1.9.3-rc1@some_gemset/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
    An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
    Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.

    Here's what I did:

    1. Install XCode 4.4
    2. Install Unix Developer Tools (from apple's website. didn't work from xcode)
    3. Instal XQuartz 2.7.2
    4. Reinstall ImageMagick (with homebrew)
    5. sudo su && cd /usr/bin && ln -s llvm-gcc-4.2 gcc-4.2
    6. cd your_app && bundle install