Difference between revisions of "Libdbi"
From CBLFS
Jump to navigationJump to searchWeibullguy (talk | contribs) m |
|||
(6 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
|-valign="top" | |-valign="top" | ||
!Download Source: | !Download Source: | ||
− | | http://downloads.sourceforge.net/libdbi/libdbi- | + | | http://downloads.sourceforge.net/libdbi/libdbi-{{Libdbi-Version}}.tar.gz |
|} | |} | ||
Line 11: | Line 11: | ||
== Dependencies == | == Dependencies == | ||
− | {{Note|To make this library useful you must also have [[ | + | === Optional === |
+ | * [[OpenJade]] | ||
+ | |||
+ | {{Note|To make this library useful you must also have [[libdbi-drivers]] installed.}} | ||
== Non-Multilib == | == Non-Multilib == | ||
Line 17: | Line 20: | ||
Compile the package: | Compile the package: | ||
− | ./configure --prefix=/usr && | + | ./configure --prefix=/usr \ |
+ | --disable-docs && | ||
make | make | ||
Line 23: | Line 27: | ||
make install | make install | ||
+ | |||
+ | Create a [[Pkg-config]] .pc file: | ||
+ | |||
+ | cat > /usr/lib/pkgconfig/dbi-0.8.pc << "EOF" | ||
+ | prefix=/usr | ||
+ | exec_prefix=${prefix} | ||
+ | libdir=${exec_prefix}/lib | ||
+ | includedir=${prefix}/include/dbi | ||
+ | |||
+ | Name: libdbi | ||
+ | Description: Database-independent abstraction layer | ||
+ | Version: 0.8,3 | ||
+ | Cflags: -I${includedir} | ||
+ | Libs: -L${libdir} -ldbi | ||
+ | EOF | ||
== Multilib == | == Multilib == | ||
Line 30: | Line 49: | ||
Compile the package: | Compile the package: | ||
− | CC="gcc ${BUILD32}" ./configure --prefix=/usr && | + | CC="gcc ${BUILD32}" ./configure --prefix=/usr \ |
+ | --disable-docs && | ||
make | make | ||
Line 36: | Line 56: | ||
make install | make install | ||
+ | |||
+ | Create a [[Pkg-config]] .pc file: | ||
+ | |||
+ | cat > /usr/lib/pkgconfig/dbi-0.8.pc << "EOF" | ||
+ | prefix=/usr | ||
+ | exec_prefix=${prefix} | ||
+ | libdir=${exec_prefix}/lib | ||
+ | includedir=${prefix}/include/dbi | ||
+ | |||
+ | Name: libdbi | ||
+ | Description: Database-independent abstraction layer | ||
+ | Version: 0.8,3 | ||
+ | Cflags: -I${includedir} | ||
+ | Libs: -L${libdir} -ldbi | ||
+ | EOF | ||
=== N32 === | === N32 === | ||
Line 42: | Line 77: | ||
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ | CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ | ||
− | --libdir=/usr/lib32 && | + | --libdir=/usr/lib32 --disable-docs && |
make | make | ||
Line 48: | Line 83: | ||
make install | make install | ||
+ | |||
+ | Create a [[Pkg-config]] .pc file: | ||
+ | |||
+ | cat > /usr/lib32/pkgconfig/dbi-0.8.pc << "EOF" | ||
+ | prefix=/usr | ||
+ | exec_prefix=${prefix} | ||
+ | libdir=${exec_prefix}/lib32 | ||
+ | includedir=${prefix}/include/dbi | ||
+ | |||
+ | Name: libdbi | ||
+ | Description: Database-independent abstraction layer | ||
+ | Version: 0.8,3 | ||
+ | Cflags: -I${includedir} | ||
+ | Libs: -L${libdir} -ldbi | ||
+ | EOF | ||
=== 64Bit === | === 64Bit === | ||
Line 54: | Line 104: | ||
CC="gcc ${BUILD64}" ./configure --prefix=/usr \ | CC="gcc ${BUILD64}" ./configure --prefix=/usr \ | ||
− | --libdir=/usr/lib64 && | + | --libdir=/usr/lib64 --disable-docs && |
make | make | ||
Line 60: | Line 110: | ||
make install | make install | ||
+ | |||
+ | Create a [[Pkg-config]] .pc file: | ||
+ | |||
+ | cat > /usr/lib64/pkgconfig/dbi-0.8.pc << "EOF" | ||
+ | prefix=/usr | ||
+ | exec_prefix=${prefix} | ||
+ | libdir=${exec_prefix}/lib64 | ||
+ | includedir=${prefix}/include/dbi | ||
+ | |||
+ | Name: libdbi | ||
+ | Description: Database-independent abstraction layer | ||
+ | Version: 0.8,3 | ||
+ | Cflags: -I${includedir} | ||
+ | Libs: -L${libdir} -ldbi | ||
+ | EOF | ||
+ | |||
+ | [[Category:General Libs]] |
Latest revision as of 18:48, 25 January 2009
Download Source: | http://downloads.sourceforge.net/libdbi/libdbi-0.8.3.tar.gz |
---|
Contents
Introduction to Libdbi
libdbi implements a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl. Writing one generic set of code, programmers can leverage the power of multiple databases and multiple simultaneous database connections by using this framework.
Project Homepage: http://libdbi.sourceforge.net/
Dependencies
Optional
To make this library useful you must also have libdbi-drivers installed.
Non-Multilib
Compile the package:
./configure --prefix=/usr \ --disable-docs && make
Install the package
make install
Create a Pkg-config .pc file:
cat > /usr/lib/pkgconfig/dbi-0.8.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/dbi Name: libdbi Description: Database-independent abstraction layer Version: 0.8,3 Cflags: -I${includedir} Libs: -L${libdir} -ldbi EOF
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32}" ./configure --prefix=/usr \ --disable-docs && make
Install the package
make install
Create a Pkg-config .pc file:
cat > /usr/lib/pkgconfig/dbi-0.8.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/dbi Name: libdbi Description: Database-independent abstraction layer Version: 0.8,3 Cflags: -I${includedir} Libs: -L${libdir} -ldbi EOF
N32
Compile the package:
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ --libdir=/usr/lib32 --disable-docs && make
Install the package
make install
Create a Pkg-config .pc file:
cat > /usr/lib32/pkgconfig/dbi-0.8.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib32 includedir=${prefix}/include/dbi Name: libdbi Description: Database-independent abstraction layer Version: 0.8,3 Cflags: -I${includedir} Libs: -L${libdir} -ldbi EOF
64Bit
Compile the package:
CC="gcc ${BUILD64}" ./configure --prefix=/usr \ --libdir=/usr/lib64 --disable-docs && make
Install the package
make install
Create a Pkg-config .pc file:
cat > /usr/lib64/pkgconfig/dbi-0.8.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib64 includedir=${prefix}/include/dbi Name: libdbi Description: Database-independent abstraction layer Version: 0.8,3 Cflags: -I${includedir} Libs: -L${libdir} -ldbi EOF