68user's page 掲示板

Prev< No. 1922> Next  [最新発言に戻る] [過去ログ一覧]
No. 1922 # 68user 2001/04/28 (土) 22:22:49
毎回適当にいじって、毎回忘れてしまう GD-1.33 & gd-1.8.4 & libpng-1.0.10 の
インストールメモメモ。

libpng:
    % cp scripts/makefile.std Makefile
    % diff scripts/makefile.std Makefile
    < prefix=/usr/local
    ---
    > prefix=/home/68user/install/libpng
    % make && make install

gd:
    % diff Makefile.org Makefile
    15c15,16
    < CFLAGS=-O -DHAVE_LIBPNG -DHAVE_LIBJPEG
    ---
    > CFLAGS=-O -DHAVE_LIBPNG
    48c49
    < INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include
    ---
    > INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -I/home/68user/install/libpng/include
    58c59
    < LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib
    ---
    > LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -L/home/68user/install/libpng/lib
    61c62
    < INSTALL_LIB=/usr/local/lib
    ---
    > INSTALL_LIB=/home/68user/install/libgd/lib
    64c65
    < INSTALL_INCLUDE=/usr/local/include
    ---
    > INSTALL_INCLUDE=/home/68user/install/libgd/include
    67c68
    < INSTALL_BIN=/usr/local/bin
    ---
    > INSTALL_BIN=/home/68user/install/libgd/bin
    % make && make install

GD:
    % diff Makefile.PL.org Makefile.PL
    6,7c6,7
    < my @INC = qw(-I/usr/local/include -I/usr/local/include/gd);
    < my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib );
    ---
    > my @INC = qw(-I/usr/local/include -I/usr/local/include/gd -I/home/68user/install/libgd/include -I/home/68user/install/libpng/include);
    > my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib -L/home/68user/install/libgd/lib -L/home/68user/install/libpng/lib);
    % perl Makefile.PL LIB=~/p5-module/ INSTALLMAN1DIR=~/p5-module/man1/ INSTALLMAN3DIR=~/p5-module/man3/
    % make && make install

動作チェック:
    % perl -e 'use lib "/home/68user/p5-module"; use GD'

Prev< No. 1922> Next  [最新発言に戻る] [過去ログ一覧]