Libpqxx: Difference between revisions
From CBLFS
Jump to navigationJump to search
Chipster19 (talk | contribs) Created page in 'general libraries' section, but the best is perhaps in 'Programming' section !! |
No edit summary |
||
| Line 37: | Line 37: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 \ | |||
./configure --prefix=/usr --enable-shared && | |||
make | |||
Install the package: | Install the package: | ||
make install && | |||
mv -v /usr/bin/pqxx-config{,-32} | |||
=== N32 === | === N32 === | ||
| Line 47: | Line 50: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 \ | |||
./configure --prefix=/usr --libdir=/usr/lib32 \ | |||
--enable-shared && | |||
make | |||
Install the package: | Install the package: | ||
make install && | |||
mv -v /usr/bin/pqxx-config{,-n32} | |||
=== 64Bit === | === 64Bit === | ||
| Line 57: | Line 64: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \ | |||
./configure --prefix=/usr --libdir=/usr/lib64 \ | |||
--enable-shared && | |||
make | |||
Install the package: | Install the package: | ||
make install && | |||
mv -v /usr/bin/pqxx-config{,-64} && | |||
ln -sfv multiarch_wrapper /usr/bin/pqxx-config | |||
= Contents = | = Contents = | ||
Revision as of 20:05, 30 December 2006
| Download Source: | http://thaiopensource.org/download/software/libpqxx/libpqxx-2.6.9.tar.gz |
|---|
Introduction to libpqxx
libpqxx is the official C++ client API for PostgreSQL. You can used it if you are writing software in C++ that needs to access databases managed by postgres.
Dependencies
Required
Optional
Non-Multilib
Compile the package:
./configure --prefix=/usr --enable-shared && make
Install the package:
make install
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 \
./configure --prefix=/usr --enable-shared &&
make
Install the package:
make install &&
mv -v /usr/bin/pqxx-config{,-32}
N32
Compile the package:
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 \
./configure --prefix=/usr --libdir=/usr/lib32 \
--enable-shared &&
make
Install the package:
make install &&
mv -v /usr/bin/pqxx-config{,-n32}
64Bit
Compile the package:
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \
./configure --prefix=/usr --libdir=/usr/lib64 \
--enable-shared &&
make
Install the package:
make install &&
mv -v /usr/bin/pqxx-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/pqxx-config
Contents
| Installed Programs: | pqxx-config |
|---|---|
| Installed Libraries: | libpqxx.{a,la,so} |
| Installed Directories: | /usr/include/pqxx |