2012年3月27日 星期二

how to compile source code

1.install comile tools
#apt-get install build-essential fakeroot dpkg-dev

2.make a folder and get source code and independent packages
#make build
#cd build
#apt-get source squid3
#apt-get build-dep squid3

3.unpack the source code
#dpkg-source -x squid3_3.0.STABLE19-1ubuntu0.2.dsc

4.just compile package
#cd squid3-3.0.STABLE19/
#dpkg-buildpackage -rfackroot -b

5.if you want to use customize parameters, you can use
#DEB_BUILD_OPIONS="--enable-xxx " fackroot debian/rules binary

6.install packages
#cd ..
#dpkg -i squid3_3.0.STABLE19-1ubuntu0.2_amd64.deb

沒有留言:

張貼留言