18 Mayıs 2011, ÇARŞAMBA
Can't 'libpq-fe.h pg gem yüklemeye çalışırken başlık
Raylar 3.1 ön sürüm kullanıyorum. PostgreSQL kullanmak istiyorum ama sorun pg gem yüklüyor. Bana aşağıdaki hatayı veriyor:
demonchand@system-001:~/exercise/personal/pro$ gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/home/demonchand/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
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
--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=/home/demonchand/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
--with-pg
--without-pg
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
Gem files will remain installed in /home/demonchand/.rvm/gems/ruby-1.9.2-p0/gems/pg-0.11.0 for inspection.
Results logged to /home/demonchand/.rvm/gems/ruby-1.9.2-p0/gems/pg-0.11.0/ext/gem_make.out
Herkes bu sorunu nasıl çözerim bana söyleyebilir misiniz?
CEVAP
18 Mayıs 2011, ÇARŞAMBA
Bu başlık gibi görünüyor libpq-dev
package (en az aşağıdaki Ubuntu sürümleri: Natty, Berrak, Oneiric, Hassas Pangolin ve Trusty Tahr): parçasıdır
...
/usr/include/postgresql/libpq-fe.h
...
Yani libpq-dev
yüklemeyi deneyin:
- Ubuntu sistemler için:
sudo apt-get install libpq-dev
- RHEL sistemlerde:
yum install postgresql-devel
- Mac için:
brew install postgresql
Bunu Paylaş:
Yeni Google Analytics yüklemeye çalışı...
Erişim kullanıcı için 'kök'@...
Yazı tipi boyutu UİLabel programlı ola...
C başlık dosyaları ortadan kaldırmak g...
Log4Net: Dosya appender Çalışırken, uz...