[go: up one dir, main page]

Menu

[72b583]: / www / installation.php  Maximize  Restore  History

Download this file

70 lines (58 with data), 2.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
include("header.php");
?>
<h2>Installing pslib</h2>
<p>The following installation instructions are targeting towards Linux
based systems, though other Unix system should work as well.
<h3>Binary</h3>
<p>Before compiling from source make sure you have checked the pslib
<a href="http://sourceforge.net/project/showfiles.php?group_id=10725">download section</a>
at sourceforge for binary releases.
debian users should take the version available in sarge. If you
need a package for woody then just grap the sources and compile it
yourself or let me know.
<h3>Source</h3>
Installing pslib is as easy one would expect from a library using
the autotools. In general you are set by running
<pre>
./configure
make
make install
</pre>
Use the configure option <code>--prefix</code> to set the base installation
directory. The default is set to <code>/usr/local</code>. pslib depends
on libpng and libjpeg for embedding png and jpeg images. configure will
look for it by default
in <code>/usr</code> and <code>/usr/local</code>. If it is at different
location then specify it with <code>--with-png=&lt;DIR&gt;</code> and
<code>--with-jpeg=&lt;DIR&gt;</code>. If you
do not want png or jpeg support at all, then pass <code>--with-png=no</code>
or <code>--with-jpeg=no</code>
to configure.
<p>Compiling from source will optionally require docbook-to-man
to create the man pages. It is usually available on all Linux
distributions.
<p>If you are running an rpm based system I propose to build a
binary rpm package instead of installing straight into the system.
Either take the source rpm
package or the original source tar.gz file (make sure it is named
<code>pslib-&lt;version&gt;.tar.gz</code>) and run
<pre>
rpm -tb &lt;source.tar.gz&gt;
</pre>
This will create a runtime (pslib) and a development (pslib-devel) package.
<h3>CVS</h3>
Those remaining brave 'must have the newest version' users of pslib may
take the sources straight from the <a href="http://pslib.cvs.sourceforge.net/pslib/">CVS repository</a>.
<p>First login as anonymous
<p><code>cvs -d ":pserver:anonymous@pslib.cvs.sourceforge.net:/cvsroot/pslib" login</code>
<p>When asked for a password just hit return.
<p>Next check out pslib with
<p><code>cvs -d ":pserver:anonymous@pslib.cvs.sourceforge.net:/cvsroot/pslib" checkout pslib</code>
<p>It will create a directory <code>pslib</code> containing the source
code for the library.
For the language bindings checkout <code>bindings</code>. Some tests
and examples are in <code>tests</code>.
<?php
include("footer.php");
?>