Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 1921

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<HTML
><HEAD
><TITLE
>Obtaining and compiling the source</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Glibc Installation HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="The installation of glibc itself"
HREF="the-install-of-glibc-itself.html"><LINK
REL="PREVIOUS"
TITLE="The installation of glibc itself"
HREF="the-install-of-glibc-itself.html"><LINK
REL="NEXT"
TITLE="The installation"
HREF="the-installation.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Glibc Installation HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="the-install-of-glibc-itself.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 4. The installation of glibc itself</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="the-installation.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="obtaining-and-compiling-the-source"
></A
>4.1. Obtaining and compiling the source</H1
><P
>There are several versions of glibc available, but not in all cases are 
new versions really better than the old ones. The best thing you
can do to find out which works and which ones you should not use is to
check out the different forums on the Internet.  If you have
someone to ask, talk to him about the topic.  Maybe he already has
installed the new version and might be able to tell you that version x.y.z is a
PITA, but version a.b.c works really well!</P
><P
>I decided to install glibc-2.2.4, as I was told it
works well, but it is your decision which one to choose.</P
><P
>Ok, now let's go to work:</P
><P
><P
></P
><OL
TYPE="1"
><LI
><P
>Get the source from <A
HREF="ftp.gnu.org/gnu/glibc/"
TARGET="_top"
>ftp.gnu.org/gnu/glibc/</A
>; as I said, I used version 2.2.4.</P
></LI
><LI
><P
>Unpack the source: <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>tar -xzvf glibc-2.2.4.tar.gz</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>In addition, you will need a package called 
<SPAN
CLASS="QUOTE"
>"linuxthreads,"</SPAN
> found in the <TT
CLASS="filename"
>linuxthreads</TT
> 
directory on
    <A
HREF="ftp.gnu.org"
TARGET="_top"
>ftp.gnu.org</A
>.  The file is called: <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>glibc-linuxthreads-2.2.4.tar.gz</PRE
></FONT
></TD
></TR
></TABLE
> Make sure you get the version that 
corresponds to your glibc source tree.</P
></LI
><LI
><P
>Copy the linuxthreads package to your glibc source directory: <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>cp glibc-linuxthreads-2.2.4.tar.gz glibc-2.2.4</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>Change to the glibc directory: <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>cd glibc-2.2.4</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>Unpack linuxthreads: <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>tar xzvf linux-threads-2.2.4.tar.gz</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>Configure the package:<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>./configure --enable-add-ons=linuxthreads</PRE
></FONT
></TD
></TR
></TABLE
> This will configure the
    package in such a way that the linuxthreads are included in the
    compile; this is necessary for compliance with other
    Linux systems.  For example, programs you compile will probably
    not run on another machine if you forget to include this
    package.</P
></LI
><LI
><P
>Afterwards, start the compilation of glibc:
    <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>make</PRE
></FONT
></TD
></TR
></TABLE
> This may take some time (about half an hour on my
    Duron XP, running with 1.5 GHz).</P
></LI
></OL
>
</P
><P
>&#13;Now that the library is compiled, everything is ready for the
installation, but things are not as easy this time.
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="the-install-of-glibc-itself.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="the-installation.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The installation of glibc itself</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="the-install-of-glibc-itself.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>The installation</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>