Olamaz PostgreSQL ile Mavericks içinde pg gem yükleyin.app | Netgez.com
SORU
26 Kasım 2013, Salı


Olamaz PostgreSQL ile Mavericks içinde pg gem yükleyin.app

PostgreSQL ile kullanmak için pg gem yüklemeye çalışıyorum.benim yerel makine üzerinde uygulaması. Mavericks kullanıyorum.

PostgreSQL.app yüklü ve gayet iyi çalışıyor, ama gem çalışmak için alınamıyor. Aşağıdaki yaptım:

  1. Komut 'ARCHFLAGS="-arch x86_64" -- ---pg-config=/Uygulamalar/PostgreSQL.gem install pg env kullanılan app/İçerik/MacOS/bin/pg_config' İsim.uygulama belgeleri
  2. Güncellenmiş ve 4.2 GCC Apple Homebrew yüklü
  3. Yüklü Xcode Geliştirici Araçları
  4. Güncelleştirilmiş bir başvuru YOLU dolarımı iki İsim.bin ve lib dizinleri app

Hiçbir başarı ile. Burada alıyorum belirli bir hata iletisi:

Building native extensions with: '--with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config'
This could take a while...
ERROR:  Error installing pg:
    ERROR: Failed to build gem native extension.

    /Users/Brian/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config
Using config values from /Applications/Postgres.app/Contents/MacOS/bin/pg_config
sh: /Applications/Postgres.app/Contents/MacOS/bin/pg_config: No such file or directory
sh: /Applications/Postgres.app/Contents/MacOS/bin/pg_config: No such file or directory
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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
    --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/Brian/.rvm/rubies/ruby-2.0.0-p353/bin/ruby
    --with-pg
    --without-pg
    --with-pg-config
    --with-pg-dir
    --without-pg-dir
    --with-pg-include
    --without-pg-include=${pg-dir}/include
    --with-pg-lib
    --without-pg-lib=${pg-dir}/

Size sunabileceği herhangi bir yardım takdir ediyorum. Teşekkürler!

CEVAP
26 Kasım 2013, Salı


Muhtemelen --with-pg-config, yanlış yol gerçekten orada olup olmadığını kontrol edin.

kullanmak zorunda kaldım benim sistem örneğingem install pg -- --with-pg-config=/Applications/Postgres93.app/Contents/MacOS/bin/pg_config.

Güncelleştirilmiş 7 Haziran 2014

En son İsim Uygulaması pg_config yeni ge komutu olur Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config: app toplayıcı bulunmaktadır

gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config

Güncelleştirilmiş 5 Temmuz 2014

pg_config yeniden hareket etti; Bu benim için çalıştı

gem install pg -- --with-pg-config=/Applications/Postgres93.app/Contents/MacOS/bin/pg_config

Güncelleme 19 Ekim 2014 Bu benim için çalıştı:

gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config

sudo find / -name "pg_config" yol bulmak için kullanın

Güncelleştirilmiş 3 Ocak 2015

PostgreSQL.app PostgreSQL 9.4 ve yol için güncellendi değişti.

gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config

Bunu PaylaÅŸ:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VÄ°DEO

Rastgele Yazarlar

  • Electro Posé

    Electro PosÃ

    21 ÅžUBAT 2013
  • Google Analytics

    Google Analy

    25 ÅžUBAT 2008
  • Caramella Girls

    Caramella Gi

    19 Mayıs 2008