http://pqxx.org/development/libpqxx/

I'm in the process of creating a macport for libpqxx. I could use
some help from anyone with experience in building postgresql or
libpqxx on OSX, esp. against the macport libraries.

Thanks, Darren

Search Discussions

  • Dave Page at Sep 20, 2008 at 7:27 am

    On Sat, Sep 20, 2008 at 7:30 AM, Darren Weber wrote:
    http://pqxx.org/development/libpqxx/

    I'm in the process of creating a macport for libpqxx. I could use
    some help from anyone with experience in building postgresql or
    libpqxx on OSX, esp. against the macport libraries.
    Never built libpqxx or a MacPort), but I'm used to building Postgres
    and other PG apps and the fu required to get universal binaries. What
    do you need?

    --
    Dave Page
    EnterpriseDB UK: http://www.enterprisedb.com
  • Darren Weber at Sep 20, 2008 at 4:25 pm
    Hi Dave,

    Thanks for getting back to me. Please find attached a draft Portfile
    for libpqxx-2.6.9 (the stable version). It's easy to read the
    Portfile to see what is going on. I think it should work fine, but I
    would appreciate any advice about any configure options that should be
    enabled.

    I've got a problem within macports (not specific to pg or libpqxx).
    MacPorts will not locate the pg_config.sh file during the macport
    build. I can't just modify the $PATH env because the macport build
    ignores it. There is an internal variable called $binpath in
    macports, but it's read-only. I can't figure out how to get the
    macport configure process to find the right pg_config. Any help
    appreciated.

    Thanks, Darren

    PS, If you want to try out this Portfile, take a look at the macports
    guide (esp. sections 4,5):
    http://guide.macports.org/chunked/
    Then follow the instructions to create your local repository here:
    http://guide.macports.org/chunked/development.local-repositories.html
    Then put this Portfile into databases/libpqxx within your repository.


    On Sat, Sep 20, 2008 at 12:27 AM, Dave Page wrote:
    On Sat, Sep 20, 2008 at 7:30 AM, Darren Weber
    wrote:
    http://pqxx.org/development/libpqxx/

    I'm in the process of creating a macport for libpqxx. I could use
    some help from anyone with experience in building postgresql or
    libpqxx on OSX, esp. against the macport libraries.
    Never built libpqxx or a MacPort), but I'm used to building Postgres
    and other PG apps and the fu required to get universal binaries. What
    do you need?

    --
    Dave Page
    EnterpriseDB UK: http://www.enterprisedb.com
  • Dave Page at Sep 22, 2008 at 7:30 am

    On Sat, Sep 20, 2008 at 5:25 PM, Darren Weber wrote:
    Hi Dave,

    Thanks for getting back to me. Please find attached a draft Portfile
    for libpqxx-2.6.9 (the stable version). It's easy to read the
    Portfile to see what is going on. I think it should work fine, but I
    would appreciate any advice about any configure options that should be
    enabled.
    There's nothing much to configure from what I can see.
    I've got a problem within macports (not specific to pg or libpqxx).
    MacPorts will not locate the pg_config.sh file during the macport
    build. I can't just modify the $PATH env because the macport build
    ignores it. There is an internal variable called $binpath in
    macports, but it's read-only. I can't figure out how to get the
    macport configure process to find the right pg_config. Any help
    appreciated.
    Can you do something like:

    configure { system "cd ${workpath}/${distname}-${version} &&
    ${configure.env} && PATH=/foo/bar:$PATH ./configure ${configure.args}"
    }

    Alternatively, the libpqxx docs say you can set ${PG_CONFIG} to the
    path to pg_config, so perhaps you can set that in configure.env (that
    sounds like the cleanest option).

    --
    Dave Page
    EnterpriseDB UK: http://www.enterprisedb.com
  • Dave Page at Sep 23, 2008 at 8:12 am
    Hi Darren

    On Mon, Sep 22, 2008 at 8:05 PM, Darren Weber
    wrote:
    Alternatively, the libpqxx docs say you can set ${PG_CONFIG} to the
    path to pg_config, so perhaps you can set that in configure.env (that
    sounds like the cleanest option).
    I tried this, but it's not working. I cannot find the documentation
    of this option - where did you see it?
    In the README: http://pqxx.org/development/libpqxx/browser/trunk/README
    I'll take this up on the libpqxx-general email list,
    http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
    Gborg is long gone (though the lists are still there at present). I
    don't know if the libpqxx guys have moved yet, or are still using the
    old lists.

    --
    Dave Page
    EnterpriseDB UK: http://www.enterprisedb.com

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedSep 20, '08 at 6:30a
activeSep 23, '08 at 8:12a
posts5
users2
websitepostgresql.org...
irc#postgresql

2 users in discussion

Dave Page: 3 posts Darren Weber: 2 posts

People

Translate

site design / logo © 2021 Grokbase