Difference between revisions of "OpenDBX/Setup/Unix-like/Packages from source"
(sections) |
(Added doxygen as requirement) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
* debhelper | * debhelper | ||
* docbook2x | * docbook2x | ||
| + | * doxygen | ||
Yo can do this by using the apt-get utility: | Yo can do this by using the apt-get utility: | ||
| − | apt-get install fakeroot debhelper docbook2x | + | apt-get install fakeroot debhelper docbook2x doxygen |
| − | After these | + | After these requirements are met, unpack the .tar.gz, change into this directory and build the .deb packages: |
fakeroot debian/rules binary | fakeroot debian/rules binary | ||
Latest revision as of 12:04, 5 May 2012
.deb packages
Compiling and building packages for Debian-like distributions is simple and it prevents messing up your system. Make sure you have a few required packages installed:
- fakeroot
- debhelper
- docbook2x
- doxygen
Yo can do this by using the apt-get utility:
apt-get install fakeroot debhelper docbook2x doxygen
After these requirements are met, unpack the .tar.gz, change into this directory and build the .deb packages:
fakeroot debian/rules binary
If you want to build only one or a few backends you have to modify the debian/rules file inside the OpenDBX .tar.gz file. The line
backends := firebird mssql mysql odbc pgsql sqlite sqlite3 sybase
contains the backends which should be build and for which the development packages must be available.
The files will be installed to their standard locations (/usr/lib, /usr/lib/opendbx, /usr/include and /usr/bin) by the Debian package manager:
dpkg -i ../libopendbx1*x.y.z*.deb ../opendbx*_x.y.z*.deb
This would install the main library, all generated backend and the utilities.
.rpm packages
It's similar for rpm based distributions. There is a spec file inside the .tar.gz, which build the complete package automatically (be sure, you have installed all necessary libraries and header files):
rpm -ta opendbx-x.y.z.tar.gz
or with the newer command:
rpmbuild -ta opendbx-x.y.z.tar.gz
By default only the mysql, pgsql and sqlite3 backend is included when building rpm packages. The defaults can be overwritten via command line by adding "--with <backend>" or "--without <backend>", e.g.
rpmbuild -ta opendbx-x.y.z.tar.gz --with sqlite --without pgsql
The files will be installed to their standard locations (/usr/lib, /usr/lib/opendbx, /usr/include and /usr/bin) by the package manager:
rpm -i opendbx*x.y.z*.rpm
This would install the main library, all generated backend and the utility package.