Skip to content

Instantly share code, notes, and snippets.

@JayCuthrell
Created September 7, 2010 13:21
Show Gist options
  • Save JayCuthrell/568314 to your computer and use it in GitHub Desktop.
Save JayCuthrell/568314 to your computer and use it in GitHub Desktop.
# Verify your environment
$ cat /etc/issue.net
CentOS release 5.5 (Final)
$ uname -a
Linux porksoda 2.6.18.8 #1 SMP Tue Nov 10 16:12:12 UTC 2009 i686 i686 i386 GNU/Linux
$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
# Download Yconalyzer from sourceforge
$ tar -xjvf yconalyzer-1.0.4.tar.bz2
yconalyzer-1.0.4/
yconalyzer-1.0.4/yconalyzer.cc
yconalyzer-1.0.4/configure
yconalyzer-1.0.4/Makefile.in
yconalyzer-1.0.4/Changelog
yconalyzer-1.0.4/AUTHORS
yconalyzer-1.0.4/yconalyzer.h
yconalyzer-1.0.4/depcomp
yconalyzer-1.0.4/yconalyzer.spec
yconalyzer-1.0.4/README
yconalyzer-1.0.4/config.h.in
yconalyzer-1.0.4/configure.ac
yconalyzer-1.0.4/yconalyzer.8
yconalyzer-1.0.4/INSTALL
yconalyzer-1.0.4/Makefile.am
yconalyzer-1.0.4/missing
yconalyzer-1.0.4/aclocal.m4
yconalyzer-1.0.4/install-sh
# Review both the README and INSTALL files
$ cd yconalyzer-1.0.4; ./configure; make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
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 dependency style of gcc... gcc3
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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for dlopen in -ldl... yes
checking for pcap_open_live... no
checking for pcap_open_live in -lpcap... yes
checking for pcap_breakloop... no
checking for pcap_breakloop in -lpcap... yes
checking for size_t... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for alarm... (cached) yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for strchr... yes
checking for strerror... yes
checking for siginterrupt... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
make all-am
make[1]: Entering directory `/opt/build/yconalyzer-1.0.4'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT yconalyzer.o -MD -MP -MF ".deps/yconalyzer.Tpo" -c -o yconalyzer.o yconalyzer.cc; \
then mv -f ".deps/yconalyzer.Tpo" ".deps/yconalyzer.Po"; else rm -f ".deps/yconalyzer.Tpo"; exit 1; fi
g++ -g -O2 -o yconalyzer yconalyzer.o -lpcap -ldl
make[1]: Leaving directory `/opt/build/yconalyzer-1.0.4'
$ sudo make install
make[1]: Entering directory `/opt/build/yconalyzer-1.0.4'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'yconalyzer' '/usr/local/bin/yconalyzer'
test -z "/usr/local/man/man8" || mkdir -p -- "/usr/local/man/man8"
/usr/bin/install -c -m 644 './yconalyzer.8' '/usr/local/man/man8/yconalyzer.8'
make[1]: Leaving directory `/opt/build/yconalyzer-1.0.4'
$ which yconalyzer
/usr/local/bin/yconalyzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment