How To Compile Libraries From Source Code. *** All libraries/programs must be compiled in order. ***
-- assuming installation directories will be in /usr/local/ , the default setting.
-- Follow the instructions below for EACH seperate
*.bz2 or *.gz or *.tar or *.tgz file that you downloaded into your 'dnld_src' directory (as per previous post -- see above, "download instructions").
===============================
STEP-1:
===============================
pkgconfig-0.17.2 (compile/make time: [hh:mm] 00:02)
-- Decompress file in 'dnld_src' directory
Code:
tar xfvj pkgconfig-0.17.2.tar.bz2
-- Compile in directory 'pkgconfig-0.17.2' .
Code:
cd pkgconfig-0.17.2/
./configure
Note: you may have to use 'gmake' instead of 'make' to compile things.
Code:
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr pkgconfig-0.17.2
===================================
STEP-2:
===================================
automake-1.9 (compile/install time: [hh:mm] 00:02)
[/i]
-- Decompress file into 'dnld_src' directory
Code:
tar xfvj automake-1.9.tar.bz2
-- Set
Environment Variables
-- Here's how they work:
Code:
export PKG_CONFIG_PATH=<path_to_pkgconfig>
export LD_LIBRARY_PATH=<path_to_libraries>
export LDFLAGS="-L<path_to_specific_library> -L<path_to_another_one>"
export CPPFLAGS="-I<path_to_header_file> -I<path_to_another_one>"
(note: To compile the following libraries, you should copy/paste/type the following Environmental Variables at the command prompt. These variables work -- don't mess with them.)
Code:
env -
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
-- Compile in directory 'automake-1.9' :
Code:
cd automake-1.9/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr automake-1.9
================================
STEP-3:
================================
autoconf-2.59 (compile/install time: [hh:mm] 00:06) Note: -- Must be in your 'dnld_src' directory.
-- Decompress file in 'dnld_src' directory
Code:
tar xfvj autoconf-2.59.tar.bz2
-- re-set
Environment Variables as shown in Step-2.
-- Compile in directory 'autoconf-2.59' :
Code:
cd autoconf-2.59/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr autoconf-2.59
=================================
STEP-4:
=================================
fontconfig-2.2.96 (compile/install time: [hh:mm] 00:02)
-- Decompress file in 'src directory'
Code:
tar xfvz fontconfig-2.2.96.tar.gz
-- re-set
Environment Variables as shown:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib/
export LD_LIBRARY_PATH=/usr/local/lib/
export LDFLAGS="-L/usr/local/lib"
export CPPFLAGS="-I/usr/local/lib"
-- Compile in directory 'fontconfig-2.2.96' .
Code:
cd fontconfig-2.2.96/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr fontconfig-2.2.96
===============================
STEP-5:
===============================
libXft-2.1.7 (compile/install time: [hh:mm] 00:08
-- Decompress file in 'dnld_src' directory
Code:
tar xfvj libXft-2.1.7.tar.bz2
-- re-set
Environment Variables :
Code:
env -
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib
export LDFLAGS="-L/usr/local/lib"
-- Compile in directory 'libXft-2.1.7' .
Code:
cd libXft-2.1.7/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr libXft-2.1.7
===============================
STEP-6:
===============================
glib-2.6.4 (compile/install time: [hh:mm] 00:03)
-- Decompress file
Code:
tar xfvj glib-2.6.4.tar.bz2
-- re-set
Environment Variables as shown in Step-5.
-- Compile in directory 'glib-2.6.4' .
Code:
cd glib-2.6.4/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr glib-2.6.4
=================================
STEP-7:
=================================
libart_lgpl-2.3.11 (compile/install time: [hh:mm] 00:06)
-- Decompress file from 'dnld_src' directory
Code:
tar xfvj libart_lgpl-2.3.11.tar.bz2
-- re-set
Environment Variables to:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib
export LDFLAGS="-L/usr/local/lib/glib-2.0 -L/usr/local/lib "
export CPPFLAGS="-I/usr/local/include/ -I/usr/local/include/glib-2.0"
PATH=$usr/local/bin:$PATH
-- Compile in directory 'libart_lgpl-2.3.11' .
Code:
cd libart_lgpl-2.3.11/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr libart_lgpl-2.3.11
================================
STEP-8:
================================
libwmf-0.2.8.3 (compile/install time: [hh:mm] 00:02)
-- Decompress file from 'dnld_src' directory
Code:
tar xfvz libwmf-0.2.8.3.tar.gz
-- re-set
Environment Variables as shown in Step-7.
-- Compile in directory 'libwmf-0.2.8.3' .
Code:
cd libwmf-0.2.8.3/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr libwmf-0.2.8.3
================================
STEP-9:
================================
libXpm-4.7.tar.gz (compile/install time: [hh:mm] 00:02)
-- Decompress in 'dnld_src' directory
-- re-set
Environment Variables as shown in Step-7.
-- Note: v4.7 decompresses into directory xpm-v3.4g' (Kinda weird, but it installs v3.4g and upgrades it to v4.7 .
Code:
tar xfvz libXpm-4.7.tar.gz
cd xpm-3.4g
-- note: To install, execute the following command:
-- or if the '-a' option is not supported by your version of xmkmf:
-----------------------BEGIN OPTIONAL CODE-------
Code:
xmkmf
make Makefiles
make includes
make depend (optional)
-----------------------END OPTIONAL CODE-------
-- Then simply execute:
-- which will build the XPM library and the sxpm application.
-- Then do:
Code:
make install
make install.man
-- which will install the library and the sxpm program and man page.
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr xpm-3.4g
================================
STEP-10:
================================
zlib-1.2.2 (compile/install time: [hh:mm] 00:02)
-- Decompress file from 'dnld_src' directory
Code:
tar xfvj zlib-1.2.2.tar.bz2
-- re-set
Environment Variables as shown in Step-7.
-- Compile in directory 'zlib-1.2.2' .
Code:
cd zlib-1.2.2/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr zlib-1.2.2
================================
STEP-11:
===================================
libpng-1.2.8 (compile/install time: [hh:mm] 00:02)
-- Decompress file from 'dnld_src' directory
Code:
tar xvfz libpng-1.2.8-config.tar.gz
cd libpng-1.2.8/
-- re-set [b]Environment Variables[/b] as shown in Step-7.
-- note: to compile, copy '/libpng-1.2.8-config/scripts/makefile.linux' to '/libpng-1.2.8-config/' -- then, rename 'makefile.linux' to 'makefile.' Type 'make.' Then, 'make install.'
The following might work if you are in the directory named 'libpng-1.2.8-config' .) Just copy/paste the following code directly into your shell at the prompt:
Code:
su
cp -f ./scripts/makefile.linux ./makefile
make install -- note: 'distclean' not supported
( -- note: 'distclean' not supported)
Press enter and it will configure it, make it and install it. This one is done.
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr atk-1.10.1
================================
STEP-12:
================================
jpeg-6b (compile/install time: [hh:mm] 00:02)
-- Decompress file from 'dnld_src' directory
Code:
tar xfvz jpegsrc.v6b.tar.gz
-- re-set
Environment Variables as shown in Step-7.
-- Compile in directory 'jpeg-6b' .
Code:
cd jpeg-6b/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr jpeg-6b
================================
STEP-13:
================================
tiff-v6.1 AND libtiff-lzw-compression-kit-1.3 (compile/install time: [hh:mm] 00:03) -- STOP --
Only decompress the two files in your 'dnld_src' directory.
Code:
tar xfvz tiff-v3.6.1.gz
Code:
tar xfvz libtiff-lzw-compression-kit-1.3.tar.gz
-- Copy the file tif_lzw.c' to the 'tiff-v3.6.1/libtiff/' directory.
Code:
cp -f libtiff-lzw-compression-kit-1.3/tif_lzw.c tiff-v3.6.1/libtiff
-- re-set
Environment Variables as shown in Step-7.
--
Do not try to run './configure' from the directory 'libtiff-lzw-compression-kit-1.3' .
-- You must execute the './configure' script from the directory 'tiff-v3.6.1' after copying the above file:
Code:
cd ../tiff-v3.6.1
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where these two libraries were compiled may be deleted to save room:
Code:
cd ../../
rm -dfr tiff-v3.6.1
rm -dfr lib-tiff-lzw-compression-kit-1.3
================================
STEP-14:
================================
libexif-0.6.12 (compile/install time: [hh:mm] 00:02)
-- Decompress file from 'dnld_src' directory
Code:
tar xfvj libexif-0.6.12.tar.bz2
-- re-set
Environment Variables as shown in Step-7.
-- Compile in directory 'libexif-0.6.12' .
Code:
cd libexif-0.6.12/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr libexif-0.6.12
================================
STEP-15:
================================
libtool-1.5.8 (compile/install time: [hh:mm] 00:06)
-- Decompress file from 'dnld_src' directory
Code:
tar xfvz libtool-1.5.8.tar.gz
-- re-set
Environment Variables as shown in Step-7.
-- Compile in directory 'libtool-1.5.8' .
Code:
cd libtool-1.5.8/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr libtool-1.5.8
================================
STEP-16:
===================================
libmng-1.0.9 (compile/install time: [hh:mm] 00:15)
-- Decompress file in 'dnld_src' directory:
Code:
tar xfvz libmng-1.0.9.tar.gz
-- re-set
Environment Variables to :
Code:
env -
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib/
export LDFLAGS="-L/usr/local/lib/glib-2.0/ -L/usr/local/share/libtool /usr/local/lib"
export CPPFLAGS="-I/usr/local/include/ -I/usr/local/include/glib-2.0"
PATH=$usr/local/bin:$PATH
-- It takes a 'hack' to Compile this *****. First, use the 'su' command to change to 'SuperUser' then, copy/paste the following commands into your shell at the prompt:
Code:
su
sh
if ! test -f configure.in; then
echo "copying configure.in"
ln -s makefiles/configure.in .
fi
if test ! -f acinclude.m4 -a -r makefiles/acinclude.m4; then
echo "copying configure macros"
ln -s makefiles/acinclude.m4 .
fi
if ! test -f Makefile.am; then
echo "copying automake template"
ln -s makefiles/Makefile.am .
fi
echo "running aclocal"
aclocal
echo "running $LIBTOOLIZE"
/usr/local/bin/libtoolize --automake
echo "running automake"
automake --foreign --add-missing
echo "building configure script"
autoconf
# and finally invoke our new configure
./configure $*
# end
exit
Hit the enter key.
Then, run './configure'
followed by 'make' and then 'make install' . Don't forget to type 'exit' to end 'SuperUser' privileges.
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr libmng-1.0.9
================================
STEP-17:
================================
Python-2.4.1 (compile/install time: [hh:mm] 00:03)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvz Python-2.4.1.tgz
-- re-set
Environment Variables as shown in Step-16.
-- Compile in directory 'Python-2.4.1' .
Code:
cd Python-2.4.1/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr Python-2.4.1
================================
STEP-18:
================================
aalib-1.4.0 (compile/install time: [hh:mm] 00:05)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvz aalib-1.4rc4.tar.gz
-- re-set
Environment Variables as shown in Step-16.
-- Compile in directory 'aalib-1.4.0' .
Code:
cd aalib-1.4.0/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr aalib-1.4.0
================================
STEP-19:
================================
freetype-2.1.9 (compile/install time: [hh:mm] 00:02)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvj freetype-2.1.9.tar.bz2
-- re-set
Environment Variables as shown in Step-16.
-- Compile in directory 'freetype-2.1.9' .
Code:
cd freetype-2.1.9/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr freetype-2.1.9
================================
STEP-20:
================================
perl-5.8.6 (compile/install time: [hh:mm] 00:06)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvz stable.tar.gz
-- re-set
Environment Variables as shown in Step-16.
-- Compile in directory 'perl-5.8.6' after removing a file. Use the following odd commands:
Code:
rm -f config.sh Policy.sh
sh Configure -de
make
-- note: if prompted during 'configure', type in:
Code:
&-d
sh Configure -Dusethreads -Duse5005threads
-- and finally install:
Code:
cd perl-5.8.6/
su <prompt for password>
make install (as 'su' or 'root')
exit
Do not delete the directory where Perl was compiled for two reasons:
-- it may be needed when compiling Gimp if you get an XPM::Parser error when running './configure'
-- IIRC, I don't think Perl will run properly if you remove it's directory.
=================================
STEP-21:
=================================
atk--1.10.1 (compile/install time: [hh:mm] 00:02)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvj atk-1.10.1.tar.bz2
-- re-set
Environment Variables as shown in Step-16.
-- Compile in directory 'atk-1.10.1' .
Code:
cd atk-1.10.1/
./configure
make
su <prompt for password>
make install (as 'su' or 'root'
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr atk-1.10.1
=================================
STEP-22:
=================================
pango-1.8.1 (compile/install time: [hh:mm] 00:04)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvj pango-1.8.1.tar.bz2
-- re-set
Environment Variables as shown in Step-16.
-- Compile in directory 'pango-1.8.1' .
Code:
cd pango-1.8.1/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr pango-1.8.1
=================================
STEP-23:
=================================
gtk+-2.6.7 (compile/install time: [hh:mm] 00:44)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvj gtk+-2.6.7.tar.bz2
-- re-set
Environment Variables as shown in Step-16.
-- Compile in directory 'gtk-2.6.7' .
Code:
cd gtk+-2.6.7/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr gtk+-2.6.7
=================================
STEP-24:
=================================
xine-lib-1-rc8 (compile/install time: [hh:mm] 00:52)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvz xine-lib-1-rc8.tar.gz
-- re-set
Environment Variables as shown below:
Code:
env -
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib
export LDFLAGS="-L/usr/local/lib/gtk-2.0 -L/usr/local/lib/glib-2.0 -L/usr/local/share/libtool -L/usr/local/lib"
export CPPFLAGS="-I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0"
PATH=$usr/local/bin:$PATH
-- enter directory 'xine-lib-1-rc8' and enter the following commands:
Code:
cd xine-lib-1-rc8/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr xine-lib-1-rc8
=================================
STEP-25:
=================================
gxine-0.4.4 (compile/install time: [hh:mm] 00:07)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvz gxine-0.4.4.tar.gz
-- re-set
Environment Variables as shown in
Step-24 .
-- Compile in directory 'gxine-0.4.4' :
Code:
cd gxine-0.4.4/configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr gxine-0.4.4
=================================
STEP-26:
=================================
librsvg-2.9.5 (compile/install time: [hh:mm] 00:04)
-- Decompress file in directory 'dnld_src'
Code:
tar xfvz librsvg-2.9.5.tar.bz2
-- re-set
Environment Variables as shown in
Step-24.
-- More hacking -- copy some files as shown below:
Code:
cp -rf librsvg-2.9.5/moz-plugin/moz-plugin.c ./librsvg-2.9.5/moz-plugin/.libs
cp -f /usr/lib/pkgconfig/libxml-2.0.pc /usr/local/lib/pkgconfig/
cp -f /usr/lib/pkgconfig/gdk-pixbuf-2.0.pc /usr/local/lib/
mv -f /usr/local/lib/gdk-pixbuf-2.0.pc /usr/local/lib/pkgconfig
cp -f /usr/lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc /usr/local/lib/pkgconfig
-- Compile in directory 'librsvg-2.9.5' :
Code:
cd librsvg-2.9.5
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr librsvg-2.9.5
=================================
STEP-27a:
=================================
aspell-0.61-20050123 (compile/install time: [hh:mm] 00:13)
-- Create a sub-dir under your 'dnld_src' dir called 'aspell'
-- Copy aspell's tarballs into 'aspell' dir
-- Decompress in 'aspell' dir one at a time
Code:
mkdir -p aspell
mv -f aspell-0.61-20050123.tar.gz aspell/
cd aspell
tar xfvz aspell-0.61-20050123.tar.gz
-- re-set
Environment Variables as shown in
Step-24.
-- Compile in 'dnld_src/aspell/aspell-0.61-20050123' :
Code:
cd aspell-0.61-20050123
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr aspell-0.61-20050123
=================================
STEP-27b:
=================================
aspell6-en-6.0.0-0 (compile/install time: [hh:mm] 00:03)
-- Copy aspell-part2 to 'aspell' and decrompress in the 'aspell' dir :
Code:
cp -f ../aspell6-en-6.0.0-0.tar.gz ./
tar xfvz aspell6-en-6.0.0-0.tar.gz
-- copy a file so it will compile later:
Code:
cd aspell6-en-6.0.0
cp -f ../aspell6-en-6.0-0/Makefile.pre /usr/local/lib/aspell-0.60/
-- re-set
Environment Variables as shown in
Step-24 .
-- compile in 'aspell6-en-6.0.0' dir :
Code:
./configure
[b] *** do not use 'make' command here ***[/b]
su <prompt for password>
make install (as 'su' or 'root')
exit
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../../
rm -dfr aspell
=================================
STEP-28:
=================================
foomatic-3.1-2 (compile/install time: [hh:mm] 00:04)
-- be in directory 'dnld_src'
-- make a new directory called 'foomatic'
-- copy all tarballs into 'foomatic'
Code:
mkdir foomatic
cd foomatic
cp ../foomatic* ./
-- Decompress files in directory 'foomatic'
Code:
tar xfvz foomatic-db-current.tar.gz
tar xfvz foomatic-db-engine-3.1-current.tar.gz
tar xfvz foomatic-db-hpijs-1.5-current.tar.gz
tar xfvz foomatic-filters-3.1-current.tar.gz
-- reset
Environment Variables as shown in Step-24
-- compile files in their respective dirs :
Code:
cd foomatic-db-20050416/
./configure
make install
cd ../foomatic-db-engine-3.1-20050416/
./configure
make
make install
cd ../foomatic-db-hpijs-1.5-20050416/
./configure
make install
cd ../foomatic-filters-3.1-20050416/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
-- Manually remove any existing Foomatic option files. If you do not do this, any PPD files generated by Gutenprint (to be installed later) will be garbage.
Code:
rm -f /usr/local/share/foomatic/db/source/opt/gutenprint*.xml
rm -f /usr/share/foomatic/db/source/opt/gutenprint*.xml
rm -f /usr/local/share/foomatic/db/source/opt/gimp-print*
rm -f /usr/share/foomatic/db/source/opt/gimp-print*
-- To save room, you can delete the installation directories (this is true for all the dir's that you created under the 'dnld_src' directory EXCEPT 'qt' and (later) 'mozilla') :
-- make sure you do not inadvertently delete your tarballs or you'll have to download them again if they need to be reinstalled for any reason.
Code:
.
cd ../../
rm -dfr foomatic
=================================
End Library Compile/installation
-- Proceed to later post for Gimp/Gimp-print/gutenprint compile/installation instructions.