SORU
3 NİSAN 2011, Pazar


Neden Mac OS yükleme Nokogiri libiconv eksik başarısız mı?

Mac OS 10.9.3 üzerindeki Nokogiri yüklemek için çalışıyorum ve ben denemek ne olursa olsun, bu yükleme aşağıdaki hata mesajı: sonunda başarısız olur

$ sudo gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
Building native extensions with: '--with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib'
This could take a while...
Building nokogiri using packaged libraries.
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
Building nokogiri using packaged libraries.
checking for iconv.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
checking for libiconv_open() in iconv.h... no
checking for libiconv_open() in -liconv... no
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out

Sonra aşağıdaki çok yardımcı çevresinde bulunan web dahil olmak üzere bina ve yükleme libxml2 ve libxslt kullanarak demlemek ve bina libiconv kaynakları olarak tanımlanan "Installing Nokogiri"), hata aynı kalacak.

Nokogiri için yüklemeyi çalıştırmak için çalışırken, libxml2 ve libxslt iyi ama libiconv bulunamadı gibi görünüyor.

Bunlardan daha iyi bir bilgisi olan herkes Nokogiri yüklü almak için nasıl biliyor?

CEVAP
28 Mayıs 2011, CUMARTESİ


Ben de aynı sorun vardı. Ne yazık ki "Installing Nokogiri" İconv sorunlarını kapsamaz. Sorun çözüldü.

İlk homebrew, hayatınızı kolaylaştıracak yükleyin. Eğer zaten yüklü ise, güncelleme gibi en son formüller kapmak için emin olun:

brew update

Not:) 10.9 olarak böyle büyük mükafat komut araçları libiconv yüklemek için izin vermek için yüklemeniz gerekebilir.

xcode-select --install

kurun libiconv daha yeni bir sürüm

brew install libiconv

iconv libs yeni: bağlayın

brew link libiconv

kurun bir cevher

gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • CodingMadeEasy

    CodingMadeEa

    25 EYLÜL 2010
  • Julia Graf

    Julia Graf

    6 Mayıs 2006
  • MADFINGER Games a.s.

    MADFINGER Ga

    21 NİSAN 2009