Vine Linux 3.1 とMRTG
結論、インストールできねぇ・・・ インストールできた
1.MRTG
GD Graphics Libraryが足りないとのたまう。
apt-getでは導入済みなのに・・・
# wget http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-2.12.2.tar.gz
# tar xzvf mrtg-2.12.2.tar.gz
# cd mrtg-2.12.2
# ./configure ←失敗
エラーメッセージ
略Ooops, one of many bad things happened:
a) You don't have the GD library installed.
Get it from http://www.boutell.com, compile it and
use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
its location. You might also have to use --with-z-inc,
--with-z-lib and --with-png-inc, --with-png-lib for gd
versions 1.6 and higher. Check config.log for more
information on the problem.b) You have the GD library installed, but not the gd.h
header file. Download the source (see above) and use
--with-gd-inc=DIR to specify where the file can be found.c) You have the library and the header file installed, but
you also have a shared GD library in the same directory.
Remove the shared library files and/or links (e.g.
libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially
likely if you're using a recent (post 1.8.4) version of GD
and didn't configure it with --disable-shared.d) You have gd library installed and also it's headers, but you are
missing libpng (and headers) or freetype (and headers)
(mrtg does not use freetype, but if your copy of gd is precompiled
against it, you have to install it ...Consider following the instructions in doc/mrtg-unix-guide.txt
# LDFLAGS=-lVFlib2 ./configure ←失敗
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
2.GD
make時にエラーはいて停止
# wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
# tar xzvf gd-2.0.33.tar.gz
# cd gd-2.0.33
# ./configure ←変?
メッセージ
略Configuration summary for gd 2.0.33:
Support for PNG library: no
Support for JPEG library: no
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yesconfigure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands# make ←失敗
エラーメッセージ
略
gdft.c:113:31: freetype/freetype.h: No such file or directory
gdft.c:114:30: freetype/ftglyph.h: No such file or directory
gdft.c:115:30: freetype/ftsizes.h: No such file or directory
略
良くわからん・・・
誰か救援頼む・・・
追記:
なんかできたっぽい?
1.MRTG
# wget http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-2.12.2.tar.gz
# tar xzvf mrtg-2.12.2.tar.gz
# cd mrtg-2.12.2
# apt-get install libpng-devel zlib-devel gd-devel
# ./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include --with-z-inc=/usr/include --with-z-lib=/usr/lib --with-png-inc=/usr/include --with-png-lib=/usr/lib
# make
# make install
原因、たぶんインクルードにヘッダファイルがなかったので、GDなどのライブラリが有ることを確認できなかったためと思われ・・・
検索しやすいようにこーワード付けておくか・・・
キーワード:Vine Linux 3.1 MRTG GD Zlib libpng コンパイルできない ./configure make install apt-get