Can't Install Gem on OSX 10.9.2 #2209

Closed
smorin opened this Issue Apr 5, 2014 · 1 comment

Projects

None yet

3 participants

smorin commented Apr 5, 2014
501  gem install jekyll
  502  sudo gem install jekyll
  503  sudo gem update --system
  504  sudo gem install jekyll
  505  locate gcc
  506  which gcc 
  507  ln -s /usr/bin/gcc /usr/bin/gcc-4.2
  508  sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
  509  sudo gem install jekyll

Steve-Morins-iMac:~ smorin$ gem install jekyll
Fetching: liquid-2.5.5.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Steve-Morins-iMac:~ smorin$ sudo gem install jekyll
Fetching: liquid-2.5.5.gem (100%)
Successfully installed liquid-2.5.5
Fetching: fast-stemmer-1.0.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

creating Makefile

make "DESTDIR="
compiling porter.c
porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
~~ ^
porter.c:359:27: note: place parentheses around the '&&' expression to silence this warning
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
^
( )
1 warning generated.
compiling porter_wrap.c
linking shared-object stemmer.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: *** [stemmer.bundle] Error 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2/ext/gem_make.out
Steve-Morins-iMac:~ smorin$ sudo gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.2.2.gem (100%)
Successfully installed rubygems-update-2.2.2
Parsing documentation for rubygems-update-2.2.2
Installing ri documentation for rubygems-update-2.2.2
Installing darkfish documentation for rubygems-update-2.2.2
Installing RubyGems 2.2.2
RubyGems 2.2.2 installed
Parsing documentation for rubygems-2.2.2
Installing ri documentation for rubygems-2.2.2

=== 2.2.1 / 2014-01-06

Bug fixes:

  • Platforms in the Gemfile.lock GEM section are now handled correctly. Bug
    #767 by Diego Viola.
  • RubyGems now displays which gem couldn't be uninstalled from the home
    directory. Pull request #757 by Michal Papis.
  • Removed unused method Gem::Resolver#find_conflict_state. Pull request #759
    by Smit Shah.
  • Fixed installing gems from local files without dependencies. Issue #760 by
    Arash Mousavi, pull request #764 by Tim Moore.
  • Removed TODO about syntax that works in Ruby 1.8.7. Pull request #765 by
    Benjamin Fleischer.
  • Switched Gem.ruby_api_version to use RbConfig::CONFIG['ruby_version'] which
    has the same value but is overridable by packagers through
    --with-ruby-version= when configuring ruby. Bug #770 by Jeremy Evans.
  • RubyGems now prefers the bundler API for gem install to reduce HTTP
    requests. (This change was intended for RubyGems 2.2.0 but was missed.)
    This should address bug #762 by Dan Peterson and bug #766 by mipearson.
  • Added Gem::BasicSpecification#source_paths so documentation or analysis
    tools can work properly as require_paths no longer returns extension source
    directories. Bug #758 Vít Ondruch.
  • Gem.read_binary can read read-only files again. This caused file://
    repositories to stop working. Bug #761 by John Anderson.
  • Fixed specification file sorting for Ruby 1.8.7 compatibility. Pull
    request #763 by James Mead

=== 2.2.0 / 2013-12-26

Special thanks to Vít Ondruch and Michal Papis for testing and finding bugs in
RubyGems as it was prepared for the 2.2.0 release.

Major enhancements:

  • RubyGems can check for gem dependencies files (gem.deps.rb or Gemfile) when
    rubygems executables are started and uses the found dependencies. This
    means rake will work similar to bundle exec rake. To enable this set
    the RUBYGEMS_GEMDEPS environment variable to the location of your
    dependencies file.

    See Gem::use_gemdeps for further details.

  • A RubyGems directory may now be shared amongst multiple ruby versions. Upon
    activation RubyGems will automatically compile missing extensions for the
    current platform when the built objects are missing. Issue #596 by Michal
    Papis

    By default different platforms do not share gem install locations so this
    must be configured by setting GEM_HOME to a common directory. Some gems use
    fixed paths for requiring extensions and are not compatible with sharing gem
    directories.

    The default sharing location may be configured by RubyGems packagers through
    Gem.default_ext_dir_for. Pull Request #744 by Vít Ondruch.

Minor enhancements:

  • RubyGems checks the 'allowed_push_host' metadata value when pushing a gem to
    prevent an accidental push to a public repository (such as rubygems.org).
    If you have private gems you should set this value in your gem specification
    metadata. Pull request #603 by Seamus Abshere.
  • gem list now shows results for multiple arguments. Pull request #604 by
    Zach Rabinovich.
  • gem pristine --extensions will restore only gems with extensions. Issue
    #619 by Postmodern.
  • Gem::Specification#files is now sorted. Pull request #612 by Justin George.
  • For gem list and friends, "LOCAL" and "REMOTE" headers are omitted if
    only local or remote gem information is requested with --quiet. Pull
    request #615 by Michal Papis.
  • Added Gem::Specification#full_require_paths which is like require_paths, but
    returns a fully-qualified results. Pull request #632 by Vít Ondruch.
  • RubyGems now looks for the https_proxy environment variable for https://
    sources. RubyGems will fall back to http_proxy if there is no https_proxy.
    Issue #610 by mkristian.
  • RubyGems now creates directories in .gem files. Issue #631 by marksolaris.
  • RubyGems raises an exception when a specification includes its gem. Issue
    #623 by notEthan.
  • RubyGems now displays relevant release note information when updating
    RubyGems. Issue #647 by Trevor Wennblom.
  • Deprecated Gem::Installer::ExtensionBuildError in favor of
    Gem::Ext::BuildError. The old constant is an alias for the new constant.
  • When extensions are built the gem_make.out file is always written now, even
    on success. This will help with debugging bad builds that report success.
  • If a specification fails to validate RubyGems shows a link to the
    specification reference guide. Issue #656 by Markus Heiler.
  • When using gem install -g, RubyGems now detects the presence of an
    Isolate, Gemfile or gem.deps.rb file.
  • Added Gem::StubSpecification#stubbed? to help determine if a user should run
    gem pristine to speed up gem loading. Pull request #694 and #701 by Jon
    Leighton.
  • RubyGems now warns when a gem has a pessimistic version dependency that may
    be too strict.
  • RubyGems now warns when a gem has an open-ended dependency.
  • RubyGems now raises an exception when a dependency for a gem is defined
    twice.
  • Marked the license specification attribute as recommended. Pull request
    #713 by Benjamin Fleischer.
  • RubyGems uses io/console instead of stty when available. Pull request
    #740 by Nobuyoshi Nakada
  • Relaxed Gem.ruby tests for platforms that override where ruby lives. Pull
    Request #755 by strzibny.

Bug fixes:

  • RubyGems now returns an error status when any file given to gem which
    cannot be found. Ruby bug #9004 by Eugene Vilensky.
  • Fixed command escaping when building rake extensions. Pull request #721 by
    Dmitry Ratnikov.
  • Fixed uninstallation of gems when GEM_HOME is a relative directory. Issue
    #708 by Ryan Davis.
  • Default gems are now ignored by Gem::Validator#alien. Issue #717 by David
    Bahar.
  • Fixed typos in RubyGems. Pull requests #723, #725, #731 by Akira Matsuda,
    pull request #736 by Leo Gallucci, pull request #746 by DV Suresh.
  • RubyGems now holds exclusive locks on cached gem files to prevent incorrect
    updates. Pull Request #737 by Smit Shah
  • Improved speed of gem install --ignore-dependencies. Patch by Terence
    Lee.

RubyGems installed the following executables:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/gem

Ruby Interactive (ri) documentation was installed. ri is kind of like man
pages for ruby libraries. You may access it like this:
ri Classname
ri Classname.class_method
ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.

RubyGems system software updated
Steve-Morins-iMac:~ smorin$ sudo gem install jekyll
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling porter.c
porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
~~ ^
porter.c:359:27: note: place parentheses around the '&&' expression to silence this warning
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
^
( )
1 warning generated.
compiling porter_wrap.c
linking shared-object stemmer.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: *** [stemmer.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/fast-stemmer-1.0.2/gem_make.out
Steve-Morins-iMac:~ smorin$ locate gcc

WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.

Steve-Morins-iMac:~ smorin$ which gcc
/usr/bin/gcc
Steve-Morins-iMac:~ smorin$ ls /usr/bin/gc
gcc gcov
Steve-Morins-iMac:~ smorin$ ln -s /usr/bin/gcc /usr/bin/gcc-4.2
ln: /usr/bin/gcc-4.2: Permission denied
Steve-Morins-iMac:~ smorin$ sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
Steve-Morins-iMac:~ smorin$ sudo gem install jekyll
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling porter.c
porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
~~ ^
porter.c:359:27: note: place parentheses around the '&&' expression to silence this warning
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
^
( )
1 warning generated.
compiling porter_wrap.c
linking shared-object stemmer.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: *** [stemmer.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/fast-stemmer-1.0.2/gem_make.out

Owner
parkr commented Apr 6, 2014

Duplicate of #2125.

@parkr parkr closed this Apr 6, 2014
@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.