Build distcc from source code
2011-01-19 18:12
495 查看
distcc is a useful tool to speed up the build. We can dowload it from:
http://code.google.com/p/distcc/.
60-second instructions
1.For each machine, download distcc, unpack, and do
./configure && make && sudo make install
2.On each of the servers, run distccd --daemon, with --allow options to restrict access.
3.Put the names of the servers in your environment:
export DISTCC_POTENTIAL_HOSTS='localhost red green blue'
4.Build!
cd ~/work/myproject; pump make -j8 CC=distcc
Our own steps to get and build it:
1. Download it.
$ pwd
/home/zedware
$ wget http://distcc.googlecode.com/files/distcc-3.1.tar.bz2
2. Try to build it.
$ tar -xjfv distcc-3.1.tar.bz2
$ cd distcc-3.1
$ ./configure --prefix=/home/zedware/usr && make && make install
Oops. Failed with some errors. We should take a look at:
http://code.google.com/p/distcc/issues/detail?id=29.
3. Compile and build Python 2.4 or latter.
We don't have root permissions, install it to /home/zedware/usr/bin.
4. Set environments and build distcc again.
$ export PYTHON=/home/zedware/usr/bin/python && ./configure --prefix=/home/zedware/usr
$ make
$ make install
Use setenv in csh, export in bash.
Goto "60-second instructions".
http://code.google.com/p/distcc/.
60-second instructions
1.For each machine, download distcc, unpack, and do
./configure && make && sudo make install
2.On each of the servers, run distccd --daemon, with --allow options to restrict access.
3.Put the names of the servers in your environment:
export DISTCC_POTENTIAL_HOSTS='localhost red green blue'
4.Build!
cd ~/work/myproject; pump make -j8 CC=distcc
Our own steps to get and build it:
1. Download it.
$ pwd
/home/zedware
$ wget http://distcc.googlecode.com/files/distcc-3.1.tar.bz2
2. Try to build it.
$ tar -xjfv distcc-3.1.tar.bz2
$ cd distcc-3.1
$ ./configure --prefix=/home/zedware/usr && make && make install
Oops. Failed with some errors. We should take a look at:
http://code.google.com/p/distcc/issues/detail?id=29.
3. Compile and build Python 2.4 or latter.
We don't have root permissions, install it to /home/zedware/usr/bin.
4. Set environments and build distcc again.
$ export PYTHON=/home/zedware/usr/bin/python && ./configure --prefix=/home/zedware/usr
$ make
$ make install
Use setenv in csh, export in bash.
Goto "60-second instructions".
相关文章推荐
- how to build and install vim from source code
- How to build NCL and NCAR Graphics from source code
- Build update.zip from your own android source code
- Build OpenSolaris from source code
- How to build the Robotics Library from source code on Windows
- Build RPM package from source code
- How to build NCL and NCAR Graphics from source code
- Android kernel build from source code and from prebuilt
- A tool returned an error code from "Performing Post-Build Event"
- Generate source code from wsdl
- Atlas Control Toolkit and Source Code for the Build-in Asp.Net 2.0 Providers
- Build clang from source
- Learning English From Android Source Code:1
- How To Build xfstools, xfsprogs And xfsdump From Source On Ubuntu
- Smart Client Case Study Source Code Download from MSDN China
- Smart Client Case Study Source Code Download from MSDN China
- vs2005_the breakpoint will not currently be hit. The source code is different from the original verison.
- How to build windows azure PowerShell Source Code
- How to build and debug android source code
- compile mysql from source code