skalibs
Software
www.skarnet.org
How to install skalibs
Like any other piece of software (and information generally),
skalibs comes with NO WARRANTY.
Requirements
System
Build-time
- A standard C development environment
Run-time
No dependencies.
Installation
skalibs follows the
slashpackage convention.
- Create a /package directory:
mkdir -p /package
chmod 1755 /package
cd /package
- Download the latest version of skalibs,
skalibs-0.47.tar.gz,
into /package.
- Unpack the skalibs package:
tar -zxpvf skalibs-0.47.tar.gz
# if you do not have GNU tar, check with your gunzip and tar manual pages.
rm skalibs-0.47.tar.gz
cd prog/skalibs-0.47
- If you're trying to build skalibs in a cross-compilation environment,
then read that page.
The following instructions assume that you are installing skalibs as a native
standalone package.
- If you want to use another compiler and linker than the default,
edit conf-compile/conf-cc and conf-compile/conf-ld as needed.
Edit conf-compile/conf-stripbins if you need to change the way the
binaries are stripped. (Since skalibs does not export any executables, this
has no real influence.) Edit conf-compile/conf-striplibs if you
need to change the way the libraries are stripped.
- If you want EGD support, edit conf-compile/conf-egd so that the
first line contains the full path to your EGD socket.
- If for some reason your
slashpackage
installation is in $prefix/package, for instance if you're
not root, then unpack the skalibs package into $prefix/package
and tell it about your prefix:
echo $prefix > conf-compile/conf-sp_root
The build system will then install the software into a
slashpackage tree residing in $prefix.
Note that this is not recommended, because it
makes you lose the ability to hardcode paths into your scripts,
which is the main benefit of a slashpackage installation.
- Then compile and set up skalibs:
package/install
The libraries will be available under /package/prog/skalibs/library/
and the header files under /package/prog/skalibs/include/.
System-dependent files that other packages may use to automatically configure
for your system can be found under /package/prog/skalibs/sysdeps/.
- To report success :
cat package/name package/version sysdeps/sysdeps sysdeps/sysdeps.h | mail ska-sysdeps@skarnet.org
- You can then delete the compile subdirectory to save disk space.