Build-Linux-local

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
(MediaWiki Plugin Links)
(<pre>)
Line 4: Line 4:
== [http://www.gnu.org/software/autoconf/#downloading autoconf] ==
== [http://www.gnu.org/software/autoconf/#downloading autoconf] ==
-
<code>
+
<code><pre>
./configure --prefix=$HOME
./configure --prefix=$HOME
-
 
make
make
-
 
make install
make install
-
</code>
+
</pre></code>
== [http://www.seindal.dk/rene/gnu/download.htm m4] ==
== [http://www.seindal.dk/rene/gnu/download.htm m4] ==
Line 65: Line 63:
== [http://www.ijg.org/files/jpegsrc.v6b.tar.gz libJPEG] ==
== [http://www.ijg.org/files/jpegsrc.v6b.tar.gz libJPEG] ==
-
<code>
+
<code><pre>
./configure --prefix=$HOME --enable-shared
./configure --prefix=$HOME --enable-shared
-
 
make
make
-
 
make install
make install
-
 
make install-lib
make install-lib
-
</code>
+
</pre></code>
== [http://zlib.net/ zlib] ==
== [http://zlib.net/ zlib] ==
Line 104: Line 99:
* depends on Freetype
* depends on Freetype
-
<code>
+
<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
-
</code>
+
</pre></code>
== [http://www.php.net/downloads.php PHP] ==
== [http://www.php.net/downloads.php PHP] ==
Line 162: Line 156:
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>
-
<code>
+
<code><pre>
make swig-pl
make swig-pl
-
 
make install-swig-pl
make install-swig-pl
-
 
make swig-py
make swig-py
-
 
make install-swig-py
make install-swig-py
-
</code>
+
</pre></code>
== [http://git.or.cz/#download Git] ==
== [http://git.or.cz/#download Git] ==
Line 179: Line 170:
== [http://gmplib.org/#DOWNLOAD GMP] ==
== [http://gmplib.org/#DOWNLOAD GMP] ==
-
<code>
+
<code><pre>
./configure --prefix=$HOME
./configure --prefix=$HOME
-
 
make&&make install
make&&make install
-
</code>
+
</pre></code>
== [http://www.mpfr.org/mpfr-current/#download MPFR]  ==
== [http://www.mpfr.org/mpfr-current/#download MPFR]  ==
* depends on GMP
* depends on GMP
-
<code>
+
<code><pre>
./configure --prefix=$HOME  --with-gmp=$HOME
./configure --prefix=$HOME  --with-gmp=$HOME
-
 
make&&make install
make&&make install
-
</code>
+
</pre></code>
== [http://gcc.gnu.org/releases.html GCC] ==
== [http://gcc.gnu.org/releases.html GCC] ==
Line 198: Line 187:
* depends on MPFR
* depends on MPFR
-
<code>
+
<code><pre>
tar xjf gcc-4.3.2.tar.bz2
tar xjf gcc-4.3.2.tar.bz2
-
 
mkdir build
mkdir build
-
 
cd build
cd build
-
 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
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
../gcc-4.3.2/configure --prefix=$HOME --with-gmp=$HOME --with-mpfr=$HOME --enable-languages=c,c++,fortran
-
 
make
make
-
 
make install
make install
-
</code>
+
</pre></code>
== [http://download.wikimedia.org/mediawiki/ MediaWiki] ==
== [http://download.wikimedia.org/mediawiki/ MediaWiki] ==

Revision as of 09:29, 16 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

MediaWiki

Personal tools