Decrease your stress

By Peter Baer Galvin, Unix Insider |  Networking



# make install

mkdir: Failed to make directory "/usr/local/include"; File exists

mkdir: Failed to make directory "/usr/local/lib"; File exists

*** Error code 2 (ignored)

cp png.h pngconf.h /usr/local/include

chmod 644 /usr/local/include/png.h /usr/local/include/pngconf.h

cp libpng.a libpng.so.2.1.0.8 /usr/local/lib

chmod 755 /usr/local/lib/libpng.so.2.1.0.8

(cd /usr/local/lib; ln -f -s libpng.so.2.1.0.8 libpng.so.2; \

ln -f -s libpng.so.2 libpng.so)



# cd ../mrtg-2.9.2

# ls

ANNOUNCE MANIFEST bin doc mkinstalldirs

CHANGES Makefile.in configure images src

COPYING README configure.in install-sh translate

COPYRIGHT THANKS contrib lib



# #comment - make sure that /opt/local/lib is in your LD_LIBRARY_PATH



# ./configure

loading cache ./config.cache

checking for gcc... gcc

checking whether the C compiler (gcc ) works... yes

checking whether the C compiler (gcc ) is a cross-compiler... no

checking whether we are using GNU C... yes

checking whether gcc accepts -g... yes

checking how to run the C preprocessor... gcc -E

checking whether make sets ${MAKE}... yes

checking for a BSD compatible install... /opt/sfw/bin/ginstall -c

checking for perl... /usr/bin/perl

checking for groff... no

checking for nroff... /usr/bin/nroff

checking for acos in -lm... yes

checking for gdImageGif in -lgd... no

checking for gdImagePng in -lgd... yes

checking the weather... (cached) its fine

updating cache ./config.cache

creating ./config.status

creating Makefile

ordering CD from http://ee-staff.ethz.ch/~oetiker/wish .

.

.

just kidding ;-)



----------------------------------------------------------------

Config is DONE!



Type 'make' to compile the software



... that wishlist mentioned above does really exist. So if

you feel like showing your appreciation for MRTG, this is the

place to go. I just love CDs and DVDs



-- Tobi Oetiker

----------------------------------------------------------------

# make

LD_RUN_PATH= gcc -g -O2 -DGFORM_GD=gdImagePng src/rateup.c -lgd -lm -lpng -lz

-lm -o bin/rateup

src/rateup.c:60: gd.h: No such file or directory

src/rateup.c:61: gdfonts.h: No such file or directory

*** Error code 1

make: Fatal error: Command failed for target `bin/rateup'



# #comment - quick hack of the Makefile to search /opt/local/include

# #commend - for include files and /opt/local/lib for libraries



# make

LD_RUN_PATH=/usr/local/lib gcc -g -O2 -DGFORM_GD=gdImagePng
-I/opt/local/include src/rateup.c -lgd -lm -lpng -lz -lm -o bin/rateup

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

NetworkingWhite Papers & Webcasts

Webcast On Demand

Navigating the New Wireless Landscape

Sponsor: Aerohive

Webcast On Demand

Infographic: Benefits of a Controller-less Networks

Sponsor: Aerohive

See more White Papers | Webcasts

Answers - Powered by ITworld

ITworld Answers helps you solve problems and share expertise. Ask a question or take a crack at answering the new questions below.

Ask a Question
randomness