Code Monkey home page Code Monkey logo

Comments (7)

brainbuz avatar brainbuz commented on July 17, 2024 1

Its not hard to install but you need to get the dependencies and sometimes symlink things that aren't where make expects them, here's my latest install on Ubuntu Xenial as a shell script.
#!/bin/bash

PG_TARGET=$1
apt-get install "postgresql-server-dev-$PG_TARGET"
apt-get install "build-essential" "git" "libpam0g-dev"
apt-get install "libedit-dev" "libselinux1-dev" "openssl" "libssl-dev"

ln -s "/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2" "/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so"

git clone "https://github.com/ossc-db/pg_bulkload.git" /opt/pg_bulkload

cd /opt/pg_bulkload
make clean
make
make install

ln -s /opt/pg_bulkload/bin/pg_bulkload /usr/local/sbin/pg_bulkload
sudo -u postgres psql postgres < /opt/pg_bulkload/lib/pg_bulkload.sql

from pg_bulkload.

bwtakacy avatar bwtakacy commented on July 17, 2024

Currently it is the only way to build from source in Ubuntu.

from pg_bulkload.

ooyamams avatar ooyamams commented on July 17, 2024

Hi!
It seems to me that you should ask pgapt (PostgreSQL Debian and Ubuntu Repository Team).
https://redmine.postgresql.org/projects/pgapt/issues

from pg_bulkload.

egalot avatar egalot commented on July 17, 2024

Hi @brainbuz, I get the following errors during the make:

/usr/bin/ld: cannot find -lpgcommon
/usr/bin/ld: cannot find -lpgport

I have peformed the installation of the pg development packages using: sudo apt-get install postgresql-server-dev-10

Any additional tips?

Thanks
Emil

from pg_bulkload.

brainbuz avatar brainbuz commented on July 17, 2024

egalot I haven't needed to build with either pg 10 or with bionic yet .
/usr/bin/ld is gnu linker so you are either missing a dependency or need to help the linker find it with a symlink. I would guess that since you installed the dev package you need to figure out the missing symlink(s).

from pg_bulkload.

egalot avatar egalot commented on July 17, 2024

from pg_bulkload.

egalot avatar egalot commented on July 17, 2024

Well I was too quick to call victory on this one, although the application compiled, additional steps did not execute properly and thus the application fails to properly register itself as a postgres module. I am still hoping to find a solution.

from pg_bulkload.

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.