old-www/LDP/solrhe/Securing-Optimizing-Linux-R.../chap29sec238.html

331 lines
4.5 KiB
HTML

<HTML
><HEAD
><TITLE
>Compile</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.60"><LINK
REL="HOME"
TITLE="Securing and Optimizing Linux"
HREF="index.html"><LINK
REL="UP"
TITLE="Software -Network Server, web/Apache"
HREF="netweb-Apache.html"><LINK
REL="PREVIOUS"
TITLE="Linux MM Shared Memory Library "
HREF="shrdmemlib.html"><LINK
REL="NEXT"
TITLE="Linux Apache Web Server"
HREF="chap29sec239.html"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Securing and Optimizing Linux: RedHat Edition -A Hands on Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="shrdmemlib.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 29. Software -Network Server, web/Apache</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="chap29sec239.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="AEN18766"
>29.2. Compile</A
></H1
><P
>&#13;
Move into the new mm directory and type the following commands on your terminal:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>&#13; ./configure \
--disable-shared \
--prefix=/usr
</PRE
></TD
></TR
></TABLE
>
This tells MM to set itself up for this particular hardware setup with:
<P
></P
><UL
><LI
><P
>&#13; Disable shared libraries.
</P
></LI
></UL
>
</P
><P
>&#13; Now, we must compile and install MM Shared Memory Library in the server:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>&#13; [root@deep ]/mm-1.1.2# <B
CLASS="command"
>make</B
>
[root@deep ]/mm-1.1.2# <B
CLASS="command"
>make test</B
>
[root@deep ]/mm-1.1.2# <B
CLASS="command"
>make install</B
>
</PRE
></TD
></TR
></TABLE
>
The <B
CLASS="command"
>make test</B
> command will make some important tests on the program to verify that it works, and respond properly before the installation.
</P
><P
>&#13; Please do Cleanup later:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>&#13; [root@deep /]# <B
CLASS="command"
>cd</B
> /var/tmp
[root@deep ]/tmp# <B
CLASS="command"
>rm</B
> -rf mm-version/ mm-version.tar.gz
</PRE
></TD
></TR
></TABLE
>
The <B
CLASS="command"
>rm</B
> command will remove all the source files we have used to compile and install mm. It will also remove the mm compressed archive from the <TT
CLASS="filename"
>/var/tmp</TT
> directory.
</P
><P
>&#13; Further documentation, for more details there are several man pages you can read:
<P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><SPAN
CLASS="citerefentry"
><SPAN
CLASS="refentrytitle"
>MM</SPAN
>(3)</SPAN
></DT
><DD
><P
>&#13; Shared Memory Library
</P
></DD
><DT
><SPAN
CLASS="citerefentry"
><SPAN
CLASS="refentrytitle"
>mm-config</SPAN
>(1)</SPAN
></DT
><DD
><P
>&#13; MM library configuration/build utility
</P
></DD
></DL
></DIV
>
</P
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN18801"
>29.2.1. Installed files</A
></H2
><P
>&#13; These are the files installed by the program MM on your system.
<P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><TT
CLASS="filename"
>/usr/bin/mm-config</TT
></TD
></TR
><TR
><TD
><TT
CLASS="filename"
>/usr/include/mm.h</TT
></TD
></TR
><TR
><TD
><TT
CLASS="filename"
>/usr/lib/libmm.la</TT
></TD
></TR
><TR
><TD
><TT
CLASS="filename"
>/usr/lib/libmm.a</TT
></TD
></TR
><TR
><TD
><TT
CLASS="filename"
>/usr/man/man1/mm-config.1</TT
></TD
></TR
><TR
><TD
><TT
CLASS="filename"
>/usr/man/man3/mm.3</TT
></TD
></TR
></TBODY
></TABLE
><P
></P
>
</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="shrdmemlib.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="chap29sec239.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Linux MM Shared Memory Library</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="netweb-Apache.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Linux Apache Web Server</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>