Make sure to install the include files and other files for development process too! For some Linux distributions the header files for library xyz are in a package having "xyz-devel" or "xyz-developer" in the name.
The software is available at the SourceForge project page http://sourceforge.net/projects/dklibs.
After unpacking the source archive change into the dklibs-print "$projectversion"; directory and run
./configure make make install
Use
./configure make -f Makefile-shared-linux make -f Makefile-shared-linux install
to create and install a shared library version.
Make sure the /usr/local/lib directory is in the search path of
ld.so.
In /etc/ld.so.conf.d create a file usr-local.conf:
/usr/local/lib
Run
ldconfig
Use
./configure make -f Makefile-shared-solaris-workshop make -f Makefile-shared-solaris-workshop install
to build and install the shared library version.
Make sure /usr/local/lib is in the search path for shared libraries, i.e. by setting the LD_LIBRARY_PATH environment variable:
if [ "X$LD_LIBRARY_PATH" = "X" ] then LD_LIBRARY_PATH="/usr/local/lib" else LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" fi export LD_LIBRARY_PATH
To create a directory structure to create a package use the pp (package prefix) feature of the Makefile:
./configure --prefix=/opt/dklibs make make pp=/tmp/packages/dklibs install
The software is compiled to be run from /opt/dklibs, but the installation goes to /tmp/packages/dklibs, you will find /tmp/packages/dklibs/opt/dklibs with bin, lib, include and other subdirectories.
To use the Perl XS modules you need to install shared library
versions of the dklibs library set.
Change into the perlxs subdirectory and run
for i in DKraus* do cd $i (perl Makefile.PL && make && make install) 2>&1 | tee ../$i.out cd .. done
Windows users should download the dklibs-user-*.exe file from
the dklibs-win32 package in the downloads are of the SourceForge
project page http://sourceforge.net/projects/dklibs/.
The dklibs-user-*.exe file installs binaries and documentation on
the local hard disk, the dklibs-base-*.exe file only installs the
binaries and creates documentation start menu entries pointing to
web resources.
Start the installation process by double-clicking the executable
setup file.
Choose a language (either German or English).
In the welcome screen click ``Next''.
Choose a destination directory where to install the software and
click ``Next''.
Change the installation type to ``Custom installation''.
If you use Windows XP or above activate the 64-bit file size
support.
Activate ``Libraries and header files'' if one of the following two conditions is true:
Activate ``DLL support'' if you want to use the dklibs libraries
Perl XS modules.
Click ``Next'' to confirm your settings.
Although you could change the start menu folder name I recommend
to use the suggested name.
Click ``Next'' to confirm the installation settings.
A progess bar is shown while the installation is
running.
I suggest to read the readme.html file and follow the
``Additional installation steps'' section or the instructions in
the ``Post installation steps'' section in this file.
Some directory names or button names on your computer may differ from the names shown here depending on your Windows version and language.
Building the libraries and the programs using the libraries on
Windows systems from source requires manual changes in the
makefiles. Good skills in using the development tools and a
significant amount of time is needed to do that.
The inst_w32.html file gives more information about
building and installing the libraries and programs.