title: Install GD Library on RedHat machine for twiki
body: <p>My ultimate goal is to run a <a href="http://twiki.org/" rel="nofollow noreferrer">twiki</a> website for my research group.</p>
  <p>I have space on RedHat server that is running Apache, etc., but upon which I do not have root access. Since I cannot install perl modules with the current permissions, I've decided to manually install a local version of perl. Got that working no problem. The following modules are required to get twiki to work:</p>
  <ul>
  <li>FreezeThaw - <a href="http://search.cpan.org/%7Eilyaz/FreezeThaw" rel="nofollow noreferrer">http://search.cpan.org/~ilyaz/FreezeThaw</a></li>
  <li>CGI::Session - <a href="http://search.cpan.org/%7Emarkstos/CGI-Session" rel="nofollow noreferrer">http://search.cpan.org/~markstos/CGI-Session</a></li>
  <li>Error - <a href="http://search.cpan.org/%7Eshlomif/Error" rel="nofollow noreferrer">http://search.cpan.org/~shlomif/Error</a></li>
  <li>GD - <a href="http://search.cpan.org/%7Elds/GD" rel="nofollow noreferrer">http://search.cpan.org/~lds/GD</a></li>
  <li>HTML::Tree - <a href="http://search.cpan.org/%7Epetek/HTML-Tree" rel="nofollow noreferrer">http://search.cpan.org/~petek/HTML-Tree</a></li>
  <li>Time-modules - <a href="http://search.cpan.org/%7Emuir/Time-modules" rel="nofollow noreferrer">http://search.cpan.org/~muir/Time-modules</a></li>
  </ul>
  <p>I have installed FreezeThaw, CGI, Error, and it fails on GD with the following error:</p>
  <blockquote>
  <p><strong>UNRECOVERABLE ERROR</strong> Could not find gdlib-config in the search path.</p>
  <p>Please install libgd 2.0.28 or higher. If you want to try to</p>
  <p>compile anyway, please rerun this script with the option --ignore_missing_gd.</p>
  </blockquote>
  <p>In searching for how to get around this newest obstacle, I found a previous SO question: <a href="https://stackoverflow.com/questions/1627143/how-to-install-gd-library-with-strawberry-perl">How to install GD library with Strawberry Perl</a> asked about installing this and the top answer <a href="http://www.libgd.org/FAQ_C_Compile" rel="nofollow noreferrer">suggested manually compiling</a> gdlib. You'll note, however, that that link is broken. The base site: <a href="http://www.libgd.org/" rel="nofollow noreferrer">http://www.libgd.org/</a> is basically down saying to go to the project's <a href="https://bitbucket.org/pierrejoye/gd-libgd" rel="nofollow noreferrer">bitbucket</a> page.</p>
  <p>So I got the tarball from that page and am trying to install it. The following problems occur when I follow the instructions included. README.TXT says: &quot;If the sources have been fetched from CVS, run bootstrap.sh [options].&quot;</p>
  <p>Running bootstrap.sh yields:</p>
  <blockquote>
  <p>configure.ac:64: warning: macro `AM_ICONV' not found in library</p>
  <p>configure.ac:10: required directory ./config does not exist cp: cannot</p>
  <p>create regular file `config/config.guess': No such file or directory</p>
  <p>configure.ac:11: installing `config/config.guess' configure.ac:11:</p>
  <p>error while copying cp: cannot create regular file</p>
  <p>`config/config.sub': No such file or directory configure.ac:11:</p>
  <p>installing `config/config.sub' configure.ac:11:     error while</p>
  <p>copying cp: cannot create regular file `config/install-sh': No such</p>
  <p>file or directory configure.ac:28: installing `config/install-sh'</p>
  <p>configure.ac:28:     error while copying cp: cannot create regular</p>
  <p>file `config/missing': No such file or directory configure.ac:28:</p>
  <p>installing `config/missing' configure.ac:28:     error while copying</p>
  <p>configure.ac:577: required file `config/Makefile.in' not found</p>
  <p>configure.ac:577: required file `config/gdlib-config.in' not found</p>
  <p>configure.ac:577: required file `test/Makefile.in' not found</p>
  <p>Makefile.am:14: Libtool library used but `LIBTOOL' is undefined</p>
  <p>Makefile.am:14:   The usual way to define `LIBTOOL' is to add</p>
  <p><code>AC_PROG_LIBTOOL' Makefile.am:14:   to </code>configure.ac' and run</p>
  <p><code>aclocal' and </code>autoconf' again. Makefile.am:14:   If `AC_PROG_LIBTOOL'</p>
  <p>is in `configure.ac', make sure Makefile.am:14:   its definition is in</p>
  <p>aclocal's search path. cp: cannot create regular file</p>
  <p>`config/depcomp': No such file or directory Makefile.am: installing</p>
  <p>`config/depcomp' Makefile.am:     error while copying Failed</p>
  </blockquote>
  <p>And it says I should also install the following 3rd party libraries:</p>
  <ol>
  <li><p>zlib, available from <a href="http://www.gzip.org/zlib/" rel="nofollow noreferrer">http://www.gzip.org/zlib/</a>
  Data compression library</p>
  </li>
  <li><p>libpng, available from <a href="http://www.libpng.org/pub/png/" rel="nofollow noreferrer">http://www.libpng.org/pub/png/</a>
  Portable Network Graphics library; requires zlib</p>
  </li>
  <li><p>FreeType 2.x, available from <a href="http://www.freetype.org/" rel="nofollow noreferrer">http://www.freetype.org/</a>
  Free, high-quality, and portable font engine</p>
  </li>
  <li><p>JPEG library, available from <a href="http://www.ijg.org/" rel="nofollow noreferrer">http://www.ijg.org/</a>
  Portable JPEG compression/decompression library</p>
  </li>
  <li><p>XPM, available from <a href="http://koala.ilog.fr/lehors/xpm.html" rel="nofollow noreferrer">http://koala.ilog.fr/lehors/xpm.html</a>
  X Pixmap library</p>
  </li>
  </ol>
  <p>Which I am ignoring for now.</p>
  <p>Switching to the generic instructions it says follow the advice in the INSTALL file; which says: &quot;cd to the directory containing the package's source code and type ./configure to configure the package for your system.&quot; Which flat does not work: I've cd'ed into every directory of the tarball and running that command does nothing.</p>
  <p>So, trying to install twiki required me to install perl, which required me to install the perl modules: FreezeThaw, CGI, Error, HTML, Time-modules, and GD -- which itself required me to install gdlib -- which further suggested I install zlib, libpng, FreeType 2.x, JPEG library, and XPM. And of course, I'm stuck at the installing gdlib stage.</p>
  <p><strong>My question is</strong>: what other process can possibly demean humanity to such a level? I cannot fathom the depths of cruelty that lay ahead of me as I dive ever deeper into this misery onion. Should I just end it all? Can meaning be brought from this madness? Will the sun come up tomorrow, and if so, does it even matter?</p>
  <p>But seriously, any suggestions on what to do differently/better would be much appreciated -- I can't remember what a child's laughter sounds like anymore.</p>