Build-Linux-local

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
m (libPNG depends on zlib)
(dependencies)
Line 18: Line 18:
== [http://ftp.gnu.org/gnu/libtool/ libtool] ==
== [http://ftp.gnu.org/gnu/libtool/ libtool] ==
 +
* depends on m4
 +
* depends on autoconf
 +
<code>
<code>
./configure --prefix=$HOME
./configure --prefix=$HOME
Line 29: Line 32:
== [http://apr.apache.org/download.cgi APR-util] ==
== [http://apr.apache.org/download.cgi APR-util] ==
 +
* depends on APR
 +
<code>
<code>
./configure --prefix=$HOME --with-apr=$HOME
./configure --prefix=$HOME --with-apr=$HOME
Line 34: Line 39:
== [http://apr.apache.org/download.cgi APR-iconv] ==
== [http://apr.apache.org/download.cgi APR-iconv] ==
 +
* depends on APR
 +
<code>
<code>
./configure --prefix=$HOME --with-apr=$HOME
./configure --prefix=$HOME --with-apr=$HOME
Line 45: Line 52:
== [http://httpd.apache.org/download.cgi Apache httpd] ==
== [http://httpd.apache.org/download.cgi Apache httpd] ==
 +
* depends on APR
 +
Apache 2.2:
Apache 2.2:
Line 72: Line 81:
== [http://libpng.sourceforge.net/ libPNG] ==
== [http://libpng.sourceforge.net/ libPNG] ==
-
depends on zlib
+
* depends on zlib
<code>
<code>
Line 84: Line 93:
== [http://www.libgd.org/Downloads libGD] ==
== [http://www.libgd.org/Downloads libGD] ==
 +
* depends on libJPEG
 +
* depends on libPNG
 +
<code>
<code>
./configure --prefix=$HOME --with-jpeg=$HOME
./configure --prefix=$HOME --with-jpeg=$HOME
Line 89: Line 101:
== [http://www.graphviz.org/Download_source.php Graphviz] ==
== [http://www.graphviz.org/Download_source.php Graphviz] ==
 +
* depends on libGD
 +
* depends on Freetype
 +
<code>
<code>
export PATH=/usr/bin:/bin:$PATH
export PATH=/usr/bin:/bin:$PATH
Line 96: Line 111:
== [http://www.php.net/downloads.php PHP] ==
== [http://www.php.net/downloads.php PHP] ==
 +
* depends on libGD
 +
* depends on Freetype
 +
<code>
<code>
./configure --prefix=$HOME --with-libxml-dir=$HOME --with-apxs2=$HOME/apache/bin/apxs --with-mysql=$HOME --with-gd --with-jpeg-dir=$HOME --with-png-dir=$HOME --with-freetype-dir=$HOME
./configure --prefix=$HOME --with-libxml-dir=$HOME --with-apxs2=$HOME/apache/bin/apxs --with-mysql=$HOME --with-gd --with-jpeg-dir=$HOME --with-png-dir=$HOME --with-freetype-dir=$HOME
Line 111: Line 129:
== [http://search.cpan.org/~timb/DBI/lib/DBI/DBD.pm DBD Perl extension] ==
== [http://search.cpan.org/~timb/DBI/lib/DBI/DBD.pm DBD Perl extension] ==
 +
* depends on Perl
 +
<code>
<code>
perl Makefile.PL --cflags=-I$HOME/include/mysql "--libs=-L/usr/lib -lmysqlclient.so"
perl Makefile.PL --cflags=-I$HOME/include/mysql "--libs=-L/usr/lib -lmysqlclient.so"
Line 116: Line 136:
== [http://www.webdav.org/neon/ Neon] ==
== [http://www.webdav.org/neon/ Neon] ==
 +
* depends on OpenSSL
 +
<code>
<code>
./configure --prefix=$HOME --with-ssl --enable-shared --with-libs=$HOME/lib
./configure --prefix=$HOME --with-ssl --enable-shared --with-libs=$HOME/lib
Line 130: Line 152:
== [http://subversion.tigris.org/ Subversion] ==
== [http://subversion.tigris.org/ Subversion] ==
 +
* depends on APR
 +
* depends on APR-util
 +
* depends on Neon
 +
* optionally depends on Perl
 +
* optionally depends on Python
 +
<code>./configure --prefix=$HOME --with-apr=$HOME --with-apr-util=$HOME --with-neon=$HOME --with-apxs=$HOME/apache/bin/apxs</code>
<code>./configure --prefix=$HOME --with-apr=$HOME --with-apr-util=$HOME --with-neon=$HOME --with-apxs=$HOME/apache/bin/apxs</code>
Line 148: Line 176:
./configure --prefix=$HOME --with-perl=$HOME/bin/perl
./configure --prefix=$HOME --with-perl=$HOME/bin/perl
</code>
</code>
 +
== [http://gmplib.org/#DOWNLOAD GMP] ==
== [http://gmplib.org/#DOWNLOAD GMP] ==
Line 157: Line 186:
== [http://www.mpfr.org/mpfr-current/#download MPFR]  ==
== [http://www.mpfr.org/mpfr-current/#download MPFR]  ==
 +
* depends on GMP
 +
<code>
<code>
./configure --prefix=$HOME  --with-gmp=$HOME
./configure --prefix=$HOME  --with-gmp=$HOME
Line 164: Line 195:
== [http://gcc.gnu.org/releases.html GCC] ==
== [http://gcc.gnu.org/releases.html GCC] ==
 +
* depends on GMP
 +
* depends on MPFR
 +
<code>
<code>
tar xjf gcc-4.3.2.tar.bz2
tar xjf gcc-4.3.2.tar.bz2

Revision as of 20:55, 15 September 2008

Instructions to build and install Linux packages as private instance in a user home


Contents

autoconf

./configure --prefix=$HOME

make

make install

m4

./configure --prefix=$HOME

libtool

  • depends on m4
  • depends on autoconf

./configure --prefix=$HOME


APR

./configure --prefix=$HOME

APR-util

  • depends on APR

./configure --prefix=$HOME --with-apr=$HOME

APR-iconv

  • depends on APR

./configure --prefix=$HOME --with-apr=$HOME


OpenSSL

./config --prefix=$HOME threads zlib shared

Apache httpd

  • depends on APR

Apache 2.2:

./configure --prefix=$HOME/apache --enable-dav --enable-dav-fs --enable-deflate --with-apr=$HOME --with-apr-util=$HOME

old: ./configure --prefix=$HOME --enable-info --enable-rewrite --enable-speling --enable-deflate --enable-mime-magic --enable-dav --enable-dav-fs --enable-ssl --enable-auth --with-apr=$HOME --with-apr-util=$HOME

Apache 2.0.x:

old: ./configure --prefix=$HOME --enable-dav --enable-dav-fs --enable-deflate

libJPEG

./configure --prefix=$HOME --enable-shared

make

make install

make install-lib

zlib

./configure --prefix=$HOME --shared

libPNG

  • depends on zlib

./configure --prefix=$HOME

Freetype

./configure --prefix=$HOME

libGD

  • depends on libJPEG
  • depends on libPNG

./configure --prefix=$HOME --with-jpeg=$HOME

Graphviz

  • depends on libGD
  • depends on Freetype

export PATH=/usr/bin:/bin:$PATH

./configure --prefix=$HOME CC=gcc-2.95 CXX=gcc-2.95

PHP

  • depends on libGD
  • depends on Freetype

./configure --prefix=$HOME --with-libxml-dir=$HOME --with-apxs2=$HOME/apache/bin/apxs --with-mysql=$HOME --with-gd --with-jpeg-dir=$HOME --with-png-dir=$HOME --with-freetype-dir=$HOME

MySQL

./configure --prefix=$HOME --with-tcp-port=<PORT> --with-mysqld-user=<USER>

Perl

DBD Perl extension

  • depends on Perl

perl Makefile.PL --cflags=-I$HOME/include/mysql "--libs=-L/usr/lib -lmysqlclient.so"

Neon

  • depends on OpenSSL

./configure --prefix=$HOME --with-ssl --enable-shared --with-libs=$HOME/lib

BDB

cd ...

../release/config

make

Subversion

  • depends on APR
  • depends on APR-util
  • depends on Neon
  • optionally depends on Perl
  • optionally depends on Python

./configure --prefix=$HOME --with-apr=$HOME --with-apr-util=$HOME --with-neon=$HOME --with-apxs=$HOME/apache/bin/apxs

old: ./configure --prefix=$HOME --with-apr=$HOME --with-apr-util=$HOME --with-neon=$HOME --with-apache=$HOME/httpd-2.2.4

make swig-pl

make install-swig-pl

make swig-py

make install-swig-py

Git

./configure --prefix=$HOME --with-perl=$HOME/bin/perl


GMP

./configure --prefix=$HOME

make&&make install

MPFR

  • depends on GMP

./configure --prefix=$HOME --with-gmp=$HOME

make&&make install

GCC

  • depends on GMP
  • depends on MPFR

tar xjf gcc-4.3.2.tar.bz2

mkdir build

cd build

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib

../gcc-4.3.2/configure --prefix=$HOME --with-gmp=$HOME --with-mpfr=$HOME --enable-languages=c,c++,fortran

make

make install

Personal tools