Build-Linux-local

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
m (subversion)
Current revision (17:08, 4 October 2008) (view source)
m (Apache mod_jk)
 
(48 intermediate revisions not shown.)
Line 1: Line 1:
Instructions to build and install Linux packages as private instance in a user home
Instructions to build and install Linux packages as private instance in a user home
-
[[category:build]]
 
-
== autoconf ==
+
== [http://www.gnu.org/software/autoconf/#downloading autoconf] ==
 +
<code><pre>
./configure --prefix=$HOME
./configure --prefix=$HOME
 +
make
 +
make install
 +
</pre></code>
-
== m4 ==
+
== [http://www.seindal.dk/rene/gnu/download.htm m4] ==
 +
<code>
./configure --prefix=$HOME
./configure --prefix=$HOME
 +
</code>
-
== libtool ==
+
== [http://ftp.gnu.org/gnu/libtool/ libtool] ==
 +
* depends on m4
 +
* depends on autoconf
 +
 
 +
<code>
./configure --prefix=$HOME
./configure --prefix=$HOME
 +
</code>
-
== APR ==
+
== [http://apr.apache.org/download.cgi APR] ==
 +
<code>
./configure --prefix=$HOME
./configure --prefix=$HOME
 +
</code>
 +
 +
== [http://apr.apache.org/download.cgi APR-util] ==
 +
* depends on APR
-
== APR-util ==
+
<code>
./configure --prefix=$HOME --with-apr=$HOME
./configure --prefix=$HOME --with-apr=$HOME
 +
</code>
-
== APR-iconv ==
+
== [http://apr.apache.org/download.cgi APR-iconv] ==
 +
* depends on APR
 +
 
 +
<code>
./configure --prefix=$HOME --with-apr=$HOME
./configure --prefix=$HOME --with-apr=$HOME
 +
</code>
-
== OpenSSL ==
+
== [http://www.openssl.org/source/ OpenSSL] ==
 +
<code>
./config --prefix=$HOME threads zlib shared
./config --prefix=$HOME threads zlib shared
 +
</code>
 +
 +
== [http://httpd.apache.org/download.cgi Apache httpd] ==
 +
* depends on APR
-
== httpd ==
 
Apache 2.2:
Apache 2.2:
Line 32: Line 56:
old: <code>./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</code>
old: <code>./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</code>
-
 
Apache 2.0.x:
Apache 2.0.x:
Line 38: Line 61:
old: <code>./configure --prefix=$HOME --enable-dav --enable-dav-fs --enable-deflate</code>
old: <code>./configure --prefix=$HOME --enable-dav --enable-dav-fs --enable-deflate</code>
-
== libJPEG ==
+
== [http://tomcat.apache.org/connectors-doc/index.html Apache mod_jk] ==
 +
* depends on Apache httpd and Apache Tomcat
 +
<code>
 +
./configure --prefix=$HOME/apache --with-apxs=$HOME/apache/bin/apxs
 +
make
 +
make install
 +
</code>
 +
 
 +
== [http://www.ijg.org/files/jpegsrc.v6b.tar.gz libJPEG] ==
 +
<code><pre>
./configure --prefix=$HOME --enable-shared
./configure --prefix=$HOME --enable-shared
make
make
make install
make install
make install-lib
make install-lib
 +
</pre></code>
-
== Freetype ==
+
== [http://zlib.net/ zlib] ==
 +
<code>
 +
./configure --prefix=$HOME --shared
 +
</code>
 +
 
 +
== [http://libpng.sourceforge.net/ libPNG] ==
 +
* depends on zlib
 +
 
 +
<code>
./configure --prefix=$HOME
./configure --prefix=$HOME
 +
</code>
 +
 +
== [http://freetype.sourceforge.net/download.html Freetype] ==
 +
<code>
 +
./configure --prefix=$HOME
 +
</code>
 +
 +
== [http://www.libgd.org/Downloads libGD] ==
 +
* depends on libJPEG
 +
* depends on libPNG
 +
 +
<code>
 +
./configure --prefix=$HOME --with-jpeg=$HOME --with-png=$HOME
 +
</code>
-
== libGD ==
+
== [http://www.graphviz.org/Download_source.php Graphviz] ==
-
./configure --prefix=$HOME --with-jpeg=$HOME
+
* depends on libGD
 +
* depends on Freetype
-
== graphviz ==
+
<code><pre>
export PATH=/usr/bin:/bin:$PATH
export PATH=/usr/bin:/bin:$PATH
./configure --prefix=$HOME CC=gcc-2.95 CXX=gcc-2.95
./configure --prefix=$HOME CC=gcc-2.95 CXX=gcc-2.95
 +
</pre></code>
-
== PHP ==
+
== [http://www.php.net/downloads.php PHP] ==
-
./configure --prefix=$HOME --with-libxml-dir=$HOME --with-apxs2=$HOME/apache/bin/apxs --with-mysql=$HOME --with-gd --with-freetype-dir=$HOME --with-jpeg-dir=$HOME --with-png-dir=$HOME
+
* depends on libGD
 +
* depends on Freetype
 +
<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
 +
</code>
-
== MySQL ==
+
== [http://dev.mysql.com/downloads/mysql MySQL] ==
-
./configure --prefix=$HOME --with-tcp-port=3307 --with-mysqld-user=sky
+
<code>
 +
./configure --prefix=$HOME --with-tcp-port=<PORT> --with-mysqld-user=<USER>
 +
</code>
 +
== [http://www.cpan.org/src/README.html Perl] ==
 +
<code>
-
== DBD Perl extension ==
+
</code>
-
perl Makefile.PL --cflags=-I/home2/sky/include/mysql "--libs=-L/usr/lib -lmysqlclient.so"
+
 +
== [http://search.cpan.org/~timb/DBI/lib/DBI/DBD.pm DBD Perl extension] ==
 +
* depends on Perl
-
== neon ==
+
<code>
 +
perl Makefile.PL --cflags=-I$HOME/include/mysql "--libs=-L/usr/lib -lmysqlclient.so"
 +
</code>
 +
 
 +
== [http://www.webdav.org/neon/ Neon] ==
 +
* depends on OpenSSL
 +
 
 +
<code>
./configure --prefix=$HOME --with-ssl --enable-shared --with-libs=$HOME/lib
./configure --prefix=$HOME --with-ssl --enable-shared --with-libs=$HOME/lib
 +
</code>
 +
 +
== [http://www.oracle.com/technology/software/products/berkeley-db/db/index.html BDB] ==
 +
<code>
 +
cd ...
 +
 +
../release/config
 +
 +
make
 +
</code>
 +
 +
== [http://subversion.tigris.org/ Subversion] ==
 +
* depends on APR
 +
* depends on APR-util
 +
* depends on Neon
 +
* optionally depends on Perl
 +
* optionally depends on Python
-
== Subversion ==
 
<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>
old: <code>./configure --prefix=$HOME --with-apr=$HOME --with-apr-util=$HOME --with-neon=$HOME --with-apache=$HOME/httpd-2.2.4</code>
old: <code>./configure --prefix=$HOME --with-apr=$HOME --with-apr-util=$HOME --with-neon=$HOME --with-apache=$HOME/httpd-2.2.4</code>
-
== git ==
+
<code><pre>
 +
make swig-pl
 +
make install-swig-pl
 +
make swig-py
 +
make install-swig-py
 +
</pre></code>
 +
 
 +
== [http://git.or.cz/#download Git] ==
 +
<code>
./configure --prefix=$HOME --with-perl=$HOME/bin/perl
./configure --prefix=$HOME --with-perl=$HOME/bin/perl
 +
</code>
-
== GCC ==
+
== [http://gmplib.org/#DOWNLOAD GMP] ==
 +
<code><pre>
 +
./configure --prefix=$HOME
 +
make&&make install
 +
</pre></code>
 +
 
 +
== [http://www.mpfr.org/mpfr-current/#download MPFR]  ==
 +
* depends on GMP
 +
 
 +
<code><pre>
 +
./configure --prefix=$HOME  --with-gmp=$HOME
 +
make&&make install
 +
</pre></code>
 +
 
 +
== [http://gcc.gnu.org/releases.html GCC] ==
 +
* depends on GMP
 +
* depends on MPFR
 +
 
 +
<code><pre>
 +
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
 +
</pre></code>
 +
 
 +
== [http://download.wikimedia.org/mediawiki/ MediaWiki] ==
 +
* depends on httpd, PHP
 +
* Plugin [http://www.mediawiki.org/wiki/Extension:ConfirmEdit reCaptcha]
 +
* Plugin [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi SyntaxHighlight_GeSHi]
 +
* Plugin [http://www.chronarion.org/mimetex.htm mimeTeX]
 +
* [http://www.mediawiki.org/wiki/Extension:Poem Plugin] [[Gedicht|Poem]]
 +
 
 +
== [http://www.webalizer.org/download.html Webalizer] ==
 +
* depends on libGD with PNG support
 +
 
 +
<code><pre>
 +
cp Makefile.std Makefile
 +
vi Makefile  # edit Makefile:
 +
- replace /usr/local/ by insert ${HOME}
 +
- change /etc to ${HOME}/etc
 +
- change -ldb to -ldb-4.3
 +
make
 +
make install
 +
</pre></code>
 +
 
 +
[[category:build]]
 +
[[category:Linux]]

Current revision

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

Apache mod_jk

  • depends on Apache httpd and Apache Tomcat

./configure --prefix=$HOME/apache --with-apxs=$HOME/apache/bin/apxs make make install

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 --with-png=$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

MediaWiki

Webalizer

  • depends on libGD with PNG support
cp Makefile.std Makefile
vi Makefile  # edit Makefile:
 - replace /usr/local/ by insert ${HOME}
 - change /etc to ${HOME}/etc
 - change -ldb to -ldb-4.3
make
make install
Personal tools