Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby-pg fails to compile on CentOS with ruby 1.8.7 #98

Closed
ged opened this issue Jan 3, 2012 · 3 comments
Closed

ruby-pg fails to compile on CentOS with ruby 1.8.7 #98

ged opened this issue Jan 3, 2012 · 3 comments

Comments

@ged
Copy link
Owner

ged commented Jan 3, 2012

Original report by Ian Delahorne (Bitbucket: [Ian Delahorne](https://bitbucket.org/Ian Delahorne), ).


@ged
Copy link
Owner Author

ged commented Jan 3, 2012

Original comment by Ian Delahorne (Bitbucket: [Ian Delahorne](https://bitbucket.org/Ian Delahorne), ).


Oops, hit enter too soon...

On CentOS 5.5 with Ruby 1.8.7 built by AegisCo, the ruby-devel packages has the st.h file in /usr/lib64/ruby/1.8/st.h. This isn't picked up with pg.h including "ruby/st.h" instead of "st.h"

/usr/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... yes
checking for PQisthreadsafe()... yes
checking for PQprepare()... yes
checking for PQexecParams()... yes
checking for PQescapeString()... yes
checking for PQescapeStringConn()... yes
checking for PQgetCancel()... yes
checking for lo_create()... yes
checking for pg_encoding_to_char()... yes
checking for PQsetClientEncoding()... yes
checking for rb_encdb_alias()... no
checking for rb_enc_alias()... no
checking for struct pgNotify.extra in libpq-fe.h... yes
checking for unistd.h... yes
checking for ruby/st.h... no
pg currently requires the ruby/st.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=/usr/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
        --with-pqlib
        --without-pqlib
        --enable-static-build
        --disable-static-build


#  rpm -qi ruby-devel
Name        : ruby-devel                   Relocations: (not relocatable)
Version     : 1.8.7.299                         Vendor: AegisCo
Release     : 7                             Build Date: Sat 13 Aug 2011 10:59:11 PM GMT
Install Date: Sat 10 Dec 2011 12:19:26 AM GMT      Build Host: ip-10-38-31-5.ec2.internal
Group       : Development/Languages         Source RPM: ruby-1.8.7.299-7.src.rpm
Size        : 1070589                          License: Ruby or GPLv2
Signature   : DSA/SHA1, Sun 21 Aug 2011 01:36:41 AM GMT, Key ID 17d87282dc8cde10
Packager    : James Sulinski <js@aegisco.com>
URL         : http://www.ruby-lang.org/
Summary     : A Ruby development environment.
Description :
Header files and libraries for building a extension library for the
Ruby or an application embedded Ruby.


# rpm -ql ruby-devel
/usr/lib64/libruby.so
/usr/lib64/ruby/1.8/config.h
/usr/lib64/ruby/1.8/defines.h
/usr/lib64/ruby/1.8/digest.h
/usr/lib64/ruby/1.8/dl.h
/usr/lib64/ruby/1.8/dlconfig.h
/usr/lib64/ruby/1.8/dln.h
/usr/lib64/ruby/1.8/env.h
/usr/lib64/ruby/1.8/intern.h
/usr/lib64/ruby/1.8/missing.h
/usr/lib64/ruby/1.8/node.h
/usr/lib64/ruby/1.8/re.h
/usr/lib64/ruby/1.8/regex.h
/usr/lib64/ruby/1.8/ruby.h
/usr/lib64/ruby/1.8/rubyio.h
/usr/lib64/ruby/1.8/rubysig.h
/usr/lib64/ruby/1.8/st.h
/usr/lib64/ruby/1.8/util.h
/usr/lib64/ruby/1.8/version.h
/usr/share/doc/ruby-devel-1.8.7.299
/usr/share/doc/ruby-devel-1.8.7.299/COPYING
/usr/share/doc/ruby-devel-1.8.7.299/COPYING.ja
/usr/share/doc/ruby-devel-1.8.7.299/ChangeLog
/usr/share/doc/ruby-devel-1.8.7.299/GPL
/usr/share/doc/ruby-devel-1.8.7.299/LEGAL
/usr/share/doc/ruby-devel-1.8.7.299/LGPL
/usr/share/doc/ruby-devel-1.8.7.299/README.EXT
/usr/share/doc/ruby-devel-1.8.7.299/README.EXT.ja

@ged
Copy link
Owner Author

ged commented Jan 3, 2012

Original comment by Ian Delahorne (Bitbucket: [Ian Delahorne](https://bitbucket.org/Ian Delahorne), ).


Builds with [[https://bitbucket.org/larskanis/ruby-pg/changeset/0cf272cb383f]]

@ged
Copy link
Owner Author

ged commented Jan 3, 2012

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


Duplicate of #97.

@ged ged closed this as completed Jan 3, 2012
@ged ged added this to the Pending milestone Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant