Giter VIP home page Giter VIP logo

Comments (7)

ged avatar ged commented on July 21, 2024

Original comment by jdavis (Bitbucket: jdavis, GitHub: jdavis).


On debian and ubuntu, it looks like libpq-fe.h is provided by the package "libpq-dev". Can you try installing that package (or equivalent on your distribution)?

from ruby-pg.

ged avatar ged commented on July 21, 2024

Original comment by Michael Granger (Bitbucket: ged, GitHub: ged).


Jeff, it looks like he has Postgres installed in his home directory, and the mkmkf.log confirms that the include dir from the installation is being included in the CPPFLAGS.

@syliang, would you mind testing something out for me? Create a file called test.c or something and paste this into it:

#!c
#include <libpq-fe.h>

Then run this command:

gcc -E -I. -I/export/home/invantest/tools/ruby/1.8.7/lib/ruby/1.8/i686-linux -I. \
  -D_FILE_OFFSET_BITS=64  -I/export/home/invantest/tools/pgsql/8.3.3/include \
  -g -O2    test.c -o test.i

and either reply with the output, or attach it if you prefer. Thanks!

from ruby-pg.

ged avatar ged commented on July 21, 2024

Original comment by syliang (Bitbucket: syliang, GitHub: syliang).


Hi Michael,

The command run ok and the test.i is attached for your reference.

from ruby-pg.

ged avatar ged commented on July 21, 2024

Original comment by syliang (Bitbucket: syliang, GitHub: syliang).


Hi Guy,

I know what is the error already. I done a stupid mistake that I didn't notice the machine did not install with GCC. After I install the GCC, pg gem install successful. The error seem to be not reflect the real error but anyway it works. Thanks and sorry guys for wasting your time.

from ruby-pg.

ged avatar ged commented on July 21, 2024

Original comment by Michael Granger (Bitbucket: ged, GitHub: ged).


No problem, I'm glad we got it figured out!

from ruby-pg.

ged avatar ged commented on July 21, 2024

Original comment by deepak_shinde (Bitbucket: deepak_shinde, ).


sudo apt-get install devpq-dev

from ruby-pg.

ged avatar ged commented on July 21, 2024

Original comment by Fernando Basso (Bitbucket: fernando_basso, ).


I am having the same problem in arch linux. PostgreSQL 9.5, pg 0.18.4. Trying to require it gives the “incompatible library version blah/blah/pg_ext.so” message.

from ruby-pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.