Instructions for installing Report Magic with Japanese language files

o Installed OS
	RedHat Linux7.2

o Libraries installed
	zlib-1.1.4.tar.gz
	libpng-1.2.4.tar.gz
	jpegsrc.v6b.tar.gz
	GDTextUtil-0.83.tar.gz
	GDGraph-1.35.tar.gz
	GDGraph3d-0.56.tar.gz
	Config-IniFiles-2.27.tar.gz
	HTML-Tagset-3.03.tar.gz
	HTML-Parser-3.26.tar.gz
	File-Spec-0.7.tar.gz


	The following list differs depending on what type of Freetype version you use.

	(1) In the case of using freetype1.3.1
		freetype-1.3.1.tar.gz
		gd-1.8.3.tar.gz
		GD-1.33.tar.gz
	(2) In the case of using freetype2.1.2
		freetype-2.1.2.tar.gz
		gd-1.8.4.tar.gz
		GD-1.41.tar.gz
	
	It is preferred to use freetype2.x.x since there is a license problem in freetype1.x.x. However Japanese characters cannot be expressed correctly within pictures when using freetype2.x.x. (One can correctly express Japanese characters by changing source codes of GDGraph library. However, only the font size 14 is expressed.)
	[Necessary change]
		(a) when using 3d graphics
			around 534th line of GDGraph3d-0.xx/lib/GD/axestype3d.pm
			replace $self->{gdta_x_axis}->set_align('center', 'right'); with $self->{gdta_x_axis}->set_align('center', 'left');
		(b) when using 2d graphics
			around 1134th line of GDGraph-1.xx/Graph/axestype3d.pm
			replace $self->{gdta_x_axis}->set_align('center', 'right'); with $self->{gdta_x_axis}->set_align('center', 'left');

(1) Install zlib

	$ ./configure
	$ make
	# make install (as root)

(2) Install libpng

	$ mv zlib* zlib
	$ mv libpng* libpng
	$ cd libpng
	$ cp scripts/makefile.linux Makefile
	$ make
	# make install (as root)

(3) Install freetype

	(N.B.) Only in the case of freetype2.x.x, change the source before performing ./configure as follows
		In ./include/freetype/config/ftoption.h,
		replace #undef TT_CONFIG_OPTION_BYTECODE_INTERPRETER with  #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
	$ ./configure
	$ make
	# make install (as root)

(4) Install jpeg-6b

	$ ./configure --enable-shared
	$ make
	$ make test
	# make install (as root)

(5) Install gd

	Edit Makefile
	[In the case of gd1.8.3]
	The following changes, (a) and (b), has to be made and add (c) in INCLUDEDIRS
	   (a) CFLAGS = -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBTTF -DJISX0208
	   (b) LIBS = -lgd -lpng -lz -ljpeg -lttf -lm
	   (c) -I/usr/local/include/freetype
	
	[In the case of gd1.8.4]
	The following changes, (a) and (b), has to be made and add (c) in INCLUDEDIRS
	   (a) CFLAGS = -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DJISX0208
	   (b) LIBS = -lgd -lpng -lz -ljpeg -lfreetype -lm
	   (c) -I/usr/local/include/freetype2/freetype/config -I/usr/local/include/freetype2/

	$ make
	# make install (as root)

(6) Install PerlModule

	After extracting files from a binary of Report Magic, the following command is supposed to install necessary PerlModule.

	$perl Install.PL

	However it occasionary fails because of existing environments and so the instructions for manual installment is given as follows.
	
	(a) Install GD (both for GD-1.33 and GD-1.41 are the same)
		$ cd GD-1.XX
		$ perl Makefile.PL
		$ make
		$ make test (optional)
		$ make html (optional)
		$ make install
	(b) Install GDText
		$ cd GDTextUtil-0.XX
		$ perl Makefile.PL
		$ make
		$ make test
		$ make demo
		$ make install
	(c) Install GDGraph
		$ cd GDGraph-1.XX
		$ perl Makefile.PL
		$ make
		$ make install
	(d) Install GDGraph3d
		$ cd GDGraph3d-0.XX
		$ perl Makefile.PL
		$ make
		$ make install
	(e) Install Config::IniFiles
		$ cd Config-IniFiles-2.XX
		$ perl Makefile.PL
		$ make
		$ make install
	(f) Install HTML::Tagset
		$ cd HTML-Tagset-3.XX
		$ perl Makefile.PL
		$ make
		$ make install
	(g) Install HTML::Parser
		$ cd HTML-Parser-3.XX
		$ perl Makefile.PL
		$ make
		$ make install
	(h) Install File::Spec
		$ cd File-Spec-0.XX
		$ perl Makefile.PL
		$ make
		$ make install
