[root@localhost bin]# cd /usr/local/tomcat/bin/ [root@localhost bin]# ls bootstrap.jar commons-daemon.jar daemon.sh shutdown.bat tomcat-native.tar.gz catalina.bat commons-daemon-native.tar.gz digest.bat shutdown.sh tool-wrapper.bat catalina.sh configtest.bat digest.sh startup.bat tool-wrapper.sh catalina-tasks.xml configtest.sh setclasspath.bat startup.sh version.bat commons-daemon-1.0.15-native-src cpappend.bat setclasspath.sh tomcat-juli.jar version.sh [root@localhost bin]# cd commons-daemon-1.0.15-native-src/ [root@localhost commons-daemon-1.0.15-native-src]# ls LICENSE.txt NOTICE.txt README RELEASE-NOTES.txt unix windows [root@localhost commons-daemon-1.0.15-native-src]# cd unix/ [root@localhost unix]# ls CHANGES.txt config.nice configure.in Makedefs.in man support config.log configure INSTALL.txt Makefile.in native [root@localhost unix]# ls -l total 176 -rw-rw-r-- 1 10848 10848 2189 Mar 28 2013 CHANGES.txt -rw-r--r-- 1 root root 7001 Nov 10 16:07 config.log -rwxr-xr-x 1 root root 58 Nov 10 16:07 config.nice -rwxrwxr-x 1 10848 10848 130881 Mar 28 2013 configure -rw-rw-r-- 1 10848 10848 5105 Mar 28 2013 configure.in -rw-rw-r-- 1 10848 10848 2601 Mar 28 2013 INSTALL.txt -rw-rw-r-- 1 10848 10848 1146 Mar 28 2013 Makedefs.in -rw-rw-r-- 1 10848 10848 1238 Mar 28 2013 Makefile.in drwxrwxr-x 2 10848 10848 4096 Nov 10 16:07 man drwxrwxr-x 2 10848 10848 4096 Nov 10 16:07 native drwxrwxr-x 2 10848 10848 4096 Nov 10 16:07 support [root@localhost unix]# ./configure *** Current host *** checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib checking for strip... strip *** Host support *** checking C flags dependant on host system type... ok *** Java compilation tools *** checking for JDK os include directory... linux gcc flags added checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/capability.h usability... no checking sys/capability.h presence... no checking for sys/capability.h... no configure: WARNING: cannot find headers for libcap *** Writing output files *** configure: creating ./config.status config.status: creating Makefile config.status: creating Makedefs config.status: creating native/Makefile *** All done *** Now you can issue "make" [root@localhost unix]# make (cd native; make all) make[1]: Entering directory `/usr/local/apache-tomcat-7.0.47/bin/commons-daemon-1.0.15-native-src/unix/native' gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c jsvc-unix.c -o jsvc-unix.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c arguments.c -o arguments.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c debug.c -o debug.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c dso-dlfcn.c -o dso-dlfcn.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c dso-dyld.c -o dso-dyld.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c help.c -o help.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c home.c -o home.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c java.c -o java.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c location.c -o location.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c replace.c -o replace.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c locks.c -o locks.o gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -Wall -Wstrict-prototypes -I/usr/java/default/include -I/usr/java/default/include/linux -c signals.c -o signals.o ar cr libservice.a arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o replace.o locks.o signals.o ranlib libservice.a gcc jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc make[1]: Leaving directory `/usr/local/apache-tomcat-7.0.47/bin/commons-daemon-1.0.15-native-src/unix/native' [root@localhost unix]# cp jsvc ../.. [root@localhost unix]# cd ../.. [root@localhost bin]# pwd /usr/local/tomcat/bin [root@localhost bin]# ls -l total 844 -rw-r--r-- 1 root root 28641 Oct 18 10:19 bootstrap.jar -rw-r--r-- 1 root root 13217 Oct 18 10:19 catalina.bat -rwxr-xr-x 1 root root 20483 Oct 18 10:19 catalina.sh -rw-r--r-- 1 root root 2121 Oct 18 10:21 catalina-tasks.xml drwxr-xr-x 4 root root 4096 Nov 10 16:07 commons-daemon-1.0.15-native-src -rw-r--r-- 1 root root 24283 Oct 18 10:19 commons-daemon.jar -rw-r--r-- 1 root root 204944 Oct 18 10:19 commons-daemon-native.tar.gz -rw-r--r-- 1 root root 2131 Oct 18 10:19 configtest.bat -rwxr-xr-x 1 root root 1982 Oct 18 10:19 configtest.sh -rw-r--r-- 1 root root 1342 Oct 18 10:19 cpappend.bat -rwxr-xr-x 1 root root 7940 Oct 18 10:19 daemon.sh -rw-r--r-- 1 root root 2178 Oct 18 10:19 digest.bat -rwxr-xr-x 1 root root 2021 Oct 18 10:19 digest.sh -rwxr-xr-x 1 root root 143737 Nov 10 16:15 jsvc -rw-r--r-- 1 root root 3264 Oct 18 10:19 setclasspath.bat -rwxr-xr-x 1 root root 3524 Oct 18 10:19 setclasspath.sh -rw-r--r-- 1 root root 2111 Oct 18 10:19 shutdown.bat -rwxr-xr-x 1 root root 1960 Oct 18 10:19 shutdown.sh -rw-r--r-- 1 root root 2112 Oct 18 10:19 startup.bat -rwxr-xr-x 1 root root 1961 Oct 18 10:19 startup.sh -rw-r--r-- 1 root root 38682 Oct 18 10:19 tomcat-juli.jar -rw-r--r-- 1 root root 286622 Oct 18 10:19 tomcat-native.tar.gz -rw-r--r-- 1 root root 4114 Oct 18 10:19 tool-wrapper.bat -rwxr-xr-x 1 root root 5086 Oct 18 10:19 tool-wrapper.sh -rw-r--r-- 1 root root 2116 Oct 18 10:19 version.bat -rwxr-xr-x 1 root root 1965 Oct 18 10:19 version.sh [root@localhost bin]#