| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="36Troubleshootingyourinstallation.html">
|
|
|
8 |
<LINK REL="Next" HREF="4QuickStartDynamicImageGeneration.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="36Troubleshootingyourinstallation.html">Previous</A>
|
|
|
26 |
<A HREF="4QuickStartDynamicImageGeneration.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H2><A NAME="3_7">3.7 Compiling PHP 4</A></H2>
|
|
|
29 |
<P><I> This is not meant to be a complete discussion about configuring
|
|
|
30 |
or compiling PHP. It is meant as an example of a configuration of PHP
|
|
|
31 |
that is known to work well with JpGraph.</I></P>
|
|
|
32 |
<P> Below is an example of a standard configuration that can be used to
|
|
|
33 |
configure and compile PHP for use with the JpGraph Library</P>
|
|
|
34 |
<P> Please note that depending on the specific installation requirements
|
|
|
35 |
other options might have to be specified, specifically the paths to
|
|
|
36 |
external libraries might need to be adjusted.</P>
|
|
|
37 |
<PRE>
|
|
|
38 |
./configure --prefix=/usr/share \
|
|
|
39 |
--datadir=/usr/share/php \
|
|
|
40 |
--with-apxs=/usr/sbin/apxs \
|
|
|
41 |
--libdir=/usr/share \
|
|
|
42 |
--includedir=/usr/include \
|
|
|
43 |
--bindir=/usr/bin \
|
|
|
44 |
--with-config-file-path=/etc \
|
|
|
45 |
--enable-mbstring --enable-mbregex \
|
|
|
46 |
--with-pdflib=/usr \
|
|
|
47 |
--with-mysql \
|
|
|
48 |
--with-ttf-dir=/usr/lib \
|
|
|
49 |
--with-freetype-dir=/usr/lib \
|
|
|
50 |
--with-gd --enable-gd-imgstrttf --enable-gd-native-ttf \
|
|
|
51 |
--with-zlib-dir=/usr/lib \
|
|
|
52 |
--with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-xpm-dir=/usr/X11R6 \
|
|
|
53 |
--with-tiff-dir=/usr/lib \
|
|
|
54 |
--enable-ftp \
|
|
|
55 |
--enable-memory-limit --enable-safe-mode \
|
|
|
56 |
--bindir=/usr/bin \
|
|
|
57 |
--enable-bcmath -enable-calendar \
|
|
|
58 |
--enable-ctype --with-ftp \
|
|
|
59 |
--enable-magic-quotes \
|
|
|
60 |
--enable-inline-optimization \
|
|
|
61 |
--with-bz2 \
|
|
|
62 |
--with-iconv
|
|
|
63 |
</PRE>
|
|
|
64 |
<HR NOSHADE>
|
|
|
65 |
<A HREF="toc.html">Contents</A>
|
|
|
66 |
<A HREF="36Troubleshootingyourinstallation.html">Previous</A>
|
|
|
67 |
<A HREF="4QuickStartDynamicImageGeneration.html">Next</A>
|
|
|
68 |
</BODY>
|
|
|
69 |
</HTML>
|