Code Monkey home page Code Monkey logo

pgsql-http-rpm's Introduction

pgsql-http

CentOS/RH/Amazon RPMs for pgsql-http https://github.com/pramsey/pgsql-http and postgresql 9.2 (>=9.2.17), 9.3 (>= 9.3.4), 9.4 (>=9.4.1), and 9.6 (>=9.6.2) from the official repositories

Tested on CentOS 6.4 (unofficial curl packages), CentOS 7.1 and Amazon Linux 2014.03 (x86_64 in all cases)

pgsql-http is a HTTP client for PostgreSQL, able to retrieve a web page from inside the database.

Requirements

Use postgresql92* packages for PostgreSQL 9.2 (>= 9.2.17), postgresql93* packages for PostgreSQL 9.3 (>= 9.3.4), posgresql94* packages for PostgreSQL 9.4 (>= 9.4.1) or posgresql96* packages for PostgreSQL 9.6 (>= 9.6.2), in all cases from the official repositories (and not from your distribution repositories!)

To build:

  • postgresql92-devel >= 9.2.17, postgresql93-devel >= 9.3.4, postgresql94-devel >= 9.4.1 or postgresql96-devel >= 9.6.2
  • curl-devel >= 0.7.20
  • automake
  • gcc
  • git
  • rpm-build

To install the RPM for PostgreSQL

  • postgresql92 >= 9.2.17, postgresql93 >= 9.3.4, postgresql94 >= 9.4.1 or postgresql96 >= 9.6.2
  • postgresql92-server >= 9.2.17, postgresql93-server >= 9.3.4, postgresql94-server >= 9.4.1 or postgresql96-server >= 9.6.2
  • postgresql92-libs => 9.2.17, postgresql93-libs >= 9.3.4, postgresql94-libs >= 9.4.1 or postgresql96-libs >= 9.6.2

Building fresh RPMs

Clone the repo:

[email protected]:juliogonzalez/pgsql-http-rpm.git
cd pgsql-http-rpm

Build the pgsql-http RPM

Build the RPMs:

./pgsql-http-rpm -p 9.2 # for PostgreSQL 9.2

or

./pgsql-http-rpm -p 9.3 # for PostgreSQL 9.3

or

./pgsql-http-rpm -p 9.4 # for PostgreSQL 9.4

or

./pgsql-http-rpm -p 9.4 # for PostgreSQL 9.6

And install:

rpm -Uvh RPMS/$HOSTTYPE/postgresql-92-pgsql-http-1.1.2-1*.$HOSTTYPE.rpm # for PostgreSQL 9.2

or

rpm -Uvh RPMS/$HOSTTYPE/postgresql-93-pgsql-http-1.1.2-1*.$HOSTTYPE.rpm # for PostgreSQL 9.3

or

rpm -Uvh RPMS/$HOSTTYPE/postgresql-94-pgsql-http-1.1.2-1*.$HOSTTYPE.rpm # for PostgreSQL 9.4

or

rpm -Uvh RPMS/$HOSTTYPE/postgresql-96-pgsql-http-1.1.2-1*.$HOSTTYPE.rpm # for PostgreSQL 9.6

pgsql-http-rpm's People

Contributors

juliogonzalez avatar shawmanz32na avatar

Watchers

 avatar  avatar

pgsql-http-rpm's Issues

Errors during RPM build

Hello,

Please see the below errors during the RPM build.

./pgsql-http-rpm -p 9.3 for PostgreSQL 9.3
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Rp70s8

  • umask 022
  • cd /root/pgsql-http-rpm/BUILD
  • cd /root/pgsql-http-rpm/BUILD
  • rm -rf pgsql-http-a58d9d24acb982ab71ffb95c45fb48063f5a86a6
  • /bin/tar -xf -
  • /usr/bin/gzip -dc /root/pgsql-http-rpm/SOURCES/a58d9d24acb982ab71ffb95c45fb48063f5a86a6.tar.gz
  • STATUS=0
  • '[' 0 -ne 0 ']'
  • cd pgsql-http-a58d9d24acb982ab71ffb95c45fb48063f5a86a6
  • /bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.STgaUZ
  • umask 022
  • cd /root/pgsql-http-rpm/BUILD
  • cd pgsql-http-a58d9d24acb982ab71ffb95c45fb48063f5a86a6
  • PATH=/usr/pgsql-9.3/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin:/root/bin
  • make
    gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DLINUX_OOM_SCORE_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fpic -I. -I. -I/usr/include/pgsql93/server -I/usr/include/pgsql93/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o http.o http.c
    gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DLINUX_OOM_SCORE_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fpic -shared -o http.so http.o -L/usr/lib64/pgsql93 -Wl,--as-needed -lcurl
  • exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6wiT1R
  • umask 022
  • cd /root/pgsql-http-rpm/BUILD
  • cd pgsql-http-a58d9d24acb982ab71ffb95c45fb48063f5a86a6
  • rm -rf /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64
  • PATH=/usr/pgsql-9.3/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin:/root/bin
  • make install DESTDIR=/root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64
    /bin/mkdir -p '/root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/lib64/pgsql93'
    /bin/mkdir -p '/root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/share/pgsql93/extension'
    /bin/mkdir -p '/root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/share/pgsql93/extension'
    /usr/bin/install -c -m 755 http.so '/root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/lib64/pgsql93/http.so'
    /usr/bin/install -c -m 644 ./http.control '/root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/share/pgsql93/extension/'
    /usr/bin/install -c -m 644 ./http--1.1.sql ./http--1.0--1.1.sql '/root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/share/pgsql93/extension/'
  • mkdir -p /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/share/doc/postgresql-93-pgsql-http
  • cp README.md /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/share/doc/postgresql-93-pgsql-http/README.md
  • /usr/lib/rpm/check-buildroot
  • /usr/lib/rpm/brp-compress
  • /usr/lib/rpm/brp-strip /usr/bin/strip
  • /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
  • /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
    Processing files: postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64
    error: File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/lib/http.so
    error: File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/share/extension/http--1.1.sql
    error: File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/share/extension/http--1.0--1.1.sql
    error: File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/share/extension/http.control

RPM build errors:
File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/lib/http.so
File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/share/extension/http--1.1.sql
File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/share/extension/http--1.0--1.1.sql
File not found: /root/pgsql-http-rpm/BUILDROOT/postgresql-93-pgsql-http-1.1.1-2gita58d9d2.amzn1.x86_64/usr/pgsql-9.3/share/extension/http.control
There are errors. Check your log.

Do let me know if you need any further details.

Thanks
Mohammad

Add support to Postgres 9.2

Great work Julio!. Would you able to add support to Postgres 9.2? It will be useful for team who is using Postgres 9.2 version. Thanks in advance.

Thanks
Mohammad

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.