|
楼主 |
发表于 2004-12-18 08:02:47
|
显示全部楼层
QUOTE
Building v1.4.X When RedHat announced their intention to stop supporting RH7.3, the build environment was switched to a Linux From Scratch (LFS) based system (at the v1.4a3 development stage). You no longer need a RedHat based development environment. To check if the LFS build scripts are up-to-date, and to see if the files are available, before you try and download them, use this command: ./make.sh checkBefore starting a build do a: ./make.sh prefetchThis will download all the needed files from the Internet. Should some files not be available, make.sh will report it to you. For these you might try a Google search and download them manually into the cache directory. To start the actual build process, use the following command (building may take quite some time, depending on your build system): ./make.sh buildThe ccache compiler cache has been included in the build process, so subsequent builds should be faster than the first. To start a new clean build do a: ./make.sh clean ./make.sh buildIt is possible to rebuild even quicker. If, for instance, you know that the cgi scripts for the web admin interface are the only files to have changed, delete the LFS apache log file, and run the build process again: rm log/apache_1.3.XX ./make.sh buildFor minor changes, other good candidates for deletion are /log/configroot, /log/misc-progs, /log/initscripts and /log/installer. Look inside each file to find out which files will be rebuilt. This method can save a huge amount of time, allowing you to rebuild very quickly. Building v1.4 on Debian 3.0 (Woody) Since the switch to lfs (v1.4a3), the special scripts like these for building v1.3 are no longer necessary. Starting from a minimal install, select C/C++ development in tasksel to have the compiler stuff for the lfs build phase.With dselect add the packages: wget, bzip2 and realpathThis should be all you need to successfully build your ipcop. We've had reports that problems with build errors in Apache libcrypto can be overcome by using a kernel equal or greater than 2.4.26 in a Debian build system. Before starting a build do a: ./make.sh prefetchThis will get you all the needed files from the internet (hopefully). Should some files not be available, make.sh will report it to you. For these you may try to search with Google and download them manually into the cache directory. ./make.sh buildThis will start the actual build process. Building may take quite some time, depending on your build system. To start a new clean build do a: ./make.sh clean; ./make.sh buildBuilding v1.4 on Knoppix (Debian-based) (Thanks to Hans-Joachim Fabry) Please note, that you have to install Knoppix to your HD, because you have to install some files. apt-get install realpath atm-dev libpcap-dev libgmp3-dev libgd-dev libnewt-dev apt-get install gcc-2.95 cpp-2.95 libstdc++2.10-dev libg++2.8.1.3-devThe gcc Version on Knoppix is gcc-3.3 so you have to symlink /usr/bin/gcc to /usr/bin/gcc-2.95 and /usr/bin/cpp to /usr/bin/cpp-2.95. Knoppix is Debian-based, so in case of trouble refer to the Debian-part of this document (e.g. traffic-graphs). Building v1.4 on Windows using Cooperative Linux Morten Christensen has written a Howto about how you can build IPCop on a Windows workstation with W2K or XP (using Cooperative Linux).
CODE
His Howto is available as a pdf, rtf and ooo-sxw from
http://home.tiscali.dk/m-c/ipcop/index.htm |
|