Find the answer to your Linux question:
Results 1 to 9 of 9
I'm a n00b that has written this 'guide' to share with other n00bs. Hope it helps someone. It's in four parts which I'll put in 4 seperate posts. OverView: This ...
  1. #1
    Just Joined!
    Join Date
    May 2005
    Location
    PNW
    Posts
    11

    How To Download and Compile Libraries/Programs



    I'm a n00b that has written this 'guide' to share with other n00bs.

    Hope it helps someone. It's in four parts which I'll put in 4 seperate posts.

    OverView: This is a list of source-code for all required libraries and programs needed to compile the most popular Linux/Unix programs. There are quite a few files -- most are very small -- which need be compiled individually, one file at a time (from the downloaded sources, or 'tarballs').

    Here is the list of libraries and programs in the order they must be compiled/installed (each library is dependent upon the previous -- which is where the word 'dependencies' comes from -- we can avoid them altogether by compiling in the proper order as shown below :

    pkgconfig-0.17.2.tar.gz
    automake-1.9.tar.bz2
    autoconf-2.59.tar.bz2
    libXft-2.1.6.tar.gz
    fontconfig-2.2.96.tar.gz
    glib-2.6.4.tar.bz2
    libart_lgpl-2.3.11.tar.bz2
    libwmf-0.2.8.3.tar.gz
    libXpm-4.7.tar.gz
    zlib-1.2.2.tar.gz
    libpng-1.2.8-config.tar.gz
    jpegsrc.v6b.tar.gz
    tiff-v3.5.7.tar.gz
    libtiff-lzw-compression-kit-1.3.tar.gz
    libexif-0.6.12.tar.bz2
    libtool-1.5.8.tar.gz
    libmng-1.0.9.tar.gz
    Python-2.4.1.tgz
    aalib-1.4rc4.tar.gz
    freetype-2.1.9.tar.bz2
    stable.tar.gz
    atk-1.10.1.tar.bz2
    pango-1.8.1.tar.bz2
    gtk+-2.6.7.tar.bz2
    xine-lib-1-rc8.tar.gz
    gxine-0.4.4.tar.gz
    librsvg-2.9.5.tar.bz2
    aspell6-en-6.0-0.tar.bz2
    aspell-0.61-20050123.tar.gz
    foomatic-db-current.tar.gz
    foomatic-db-engine-3.0-current.tar.gz
    foomatic-db-hpijs-1.5-current.tar.gz
    foomatic-filters-3.0-current.tar.gz
    gimp-2.2.7.tar.bz2
    patch-2.2.7.bz2
    gimp-print-5.0.0-beta2.tar.bx2
    gutenprint-5.0.0-beta4.tar.bz2
    gimp-data-extras-2.0.1.tar.bz2
    gimp-gap-2.0.2.tar.bz2
    patch-2.0.2.bz2
    libmikmod-3.1.10.tar.gz
    MesaLib-6.2.1.tar.bz2
    alsa-lib-1.0.9rc4.tar.bz2
    libtheora-1.0alpha4.tar.bz2
    libogg-1.1.2.tar.gz
    libvorbis-1.1.0.tar.gz
    audiofile-0.2.6.tar.gz
    esound-0.2.35.tar.bz2
    speex-1.1.7.tar.gz
    xmms-1.2.10.tar.bz2


    How To compile and install, step-by-step instructions are in following posts (see below).

    [14]How to download multiple files with 'wget':[/size]

    To Download 'tar balls' :
    STEP-1 -- from a text-editor, such as 'gedit' or 'vi' , create a file called 'dnld.txt' in a clean directory named 'dnld_src' . Save 'dnld.txt' in the directory 'dnld_src' .
    STEP-2 -- copy/paste the following text (listing of URL's to download) into the file you created, 'dnld.txt' and re-save into the clean 'dnld_src' directory. Do not put blank lines at the top or bottom of the list in your file called: dnld.txt


    Here's the complete list to copy/paste into your 'dnld.txt' file -- keep them in order. -- you may download a few at a time or the entire list. Just use 'dnld.txt.1', 'dnld.txt.2' 'dnld.txt.3' etc.

    Code:
    http://pkgconfig.freedesktop.org/releases/pkgconfig-0.17.2.tar.gz
    http://ftp.gnu.org/gnu/automake/automake-1.9.tar.bz2
    http://ftp.gnu.org/gnu/autoconf/autoconf-2.59.tar.bz2
    http://xlibs.freedesktop.org/release/libXft-2.1.6.tar.gz
    http://freedesktop.org/fontconfig/release/fontconfig-2.2.96.tar.gz
    ftp://ftp.gtk.org/pub/gtk/v2.6/glib-2.6.4.tar.bz2
    ftp://ftp.gimp.org/pub/gimp/libs/libart_lgpl-2.3.11.tar.bz2 
    http://easynews.dl.sourceforge.net/sourceforge/wvware/libwmf-0.2.8.3.tar.gz
    ftp://ftp.x.org/contrib/libraries/libXpm-4.7.tar.gz
    http://www.zlib.net/zlib-1.2.2.tar.gz
    http://easynews.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8-config.tar.gz
    ftp://ftp.gimp.org/pub/gimp/libs/jpegsrc.v6b.tar.gz
    ftp://ftp.gimp.org/pub/gimp/libs/tiff-v3.5.7.tar.gz
    ftp://ftp.gimp.org/pub/gimp/libs/libtiff-lzw-compression-kit-1.3.tar.gz
    http://easynews.dl.sourceforge.net/sourceforge/libexif/libexif-0.6.12.tar.bz2
    ftp://mirrors.usc.edu/pub/gnu/libtool/libtool-1.5.8.tar.gz
    http://easynews.dl.sourceforge.net/sourceforge/libmng/libmng-1.0.9.tar.gz
    http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz
    ftp://ftp.gimp.org/pub/gimp/libs/aalib-1.4rc4.tar.gz
    http://easynews.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.9.tar.bz2
    http://www.perl.com/CPAN/src/stable.tar.gz
    http://ftp.linux.org.uk/mirrors/ftp.gnome.org/sources/atk/1.10/atk-1.10.1.tar.bz2
    ftp://ftp.gtk.org/pub/gtk/v2.6/pango-1.8.1.tar.bz2
    ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-2.6.7.tar.bz2
    http://easynews.dl.sourceforge.net/sourceforge/xine/xine-lib-1-rc8.tar.gz
    http://easynews.dl.sourceforge.net/sourceforge/xine/gxine-0.4.4.tar.gz
    ftp://ftp.gnome.org/mirror/gnome.org/sources/librsvg/2.9/librsvg-2.9.5.tar.bz2
    ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-6.0-0.tar.bz2
    ftp://alpha.gnu.org/gnu/aspell/aspell-0.61-20050123.tar.gz
    http://www.linuxprinting.org/download/foomatic/foomatic-db-current.tar.gz
    http://www.linuxprinting.org/download/foomatic/foomatic-db-engine-3.0-current.tar.gz
    http://www.linuxprinting.org/download/foomatic/foomatic-db-hpijs-1.5-current.tar.gz
    http://www.linuxprinting.org/download/foomatic/foomatic-filters-3.0-current.tar.gz
    ftp://ftp.gimp.org/pub/gimp/v2.2/gimp-2.2.7.tar.bz2
    ftp://ftp.gimp.org/pub/gimp/v2.2/patch-2.2.7.bz2
    http://easynews.dl.sourceforge.net/sourceforge/gimp-print/gimp-print-5.0.0-beta2.tar.bz2
    http://easynews.dl.sourceforge.net/sourceforge/gimp-print/gutenprint-5.0.0-beta4.tar.bz2
    ftp://ftp.gimp.org/pub/gimp/extras/gimp-data-extras-2.0.1.tar.bz2
    ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.0/gap/gimp-gap-2.0.2.tar.bz2
    ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.0/gap/patch-2.0.2.bz2
    http://www.ibiblio.org/pub/Linux/apps/sound/libs/libmikmod-3.1.10.tar.gz
    http://easynews.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-6.2.1.tar.bz2
    ftp://ftp.silug.org/pub/alsa/lib/alsa-lib-1.0.9rc4.tar.bz2
    http://downloads.xiph.org/releases/theora/libtheora-1.0alpha4.tar.bz2
    http://downloads.xiph.org/releases/ogg/libogg-1.1.2.tar.gz
    http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.0.tar.gz
    http://easynews.dl.sourceforge.net/sourceforge/flac/flac-1.1.2.tar.gz
    http://ftp.fredan.org/pub/gentoo.org/distfiles/audiofile-0.2.6.tar.gz
    http://ftp.fredan.org/pub/gentoo.org/distfiles/esound-0.2.35.tar.bz2
    http://ftp.fredan.org/pub/gentoo.org/distfiles/speex-1.1.7.tar.gz
    http://www.xmms.org/files/1.2.x/xmms-1.2.10.tar.bz2
    Above is the text to copy/past into your 'dnld.txt' file. Remember to edit out empty lines, then save file to your clean 'dnld_src' directory.

    -- Now, your 'dnld_src' directory should contain just ONE file: dnld.txt
    -- You may divide the 'dnld.txt' file into smaller batches of 2-10 files, creating dnld.1.txt, dnld.2.txt, dnld.3.txt, etc. Just remember to compile/install in the proper order and don't get them mixed up ...

    STEP-3 -- Open a shell/terminal and change to your directory called: dnld_src

    Use the 'ls' command to make sure there is just one file called: dnld.txt
    Code:
       ls -la<enter>
    At this point, make sure you are connected to the Internet. If you are using a dial-up modem, do this when you go to bed -- and it will run all night and then shut your computer down automatically.

    BEFORE BEGINNING DOWNLOAD -- Here's how to begin the download: (make sure you are in the directory 'dnld_src' and it contains just one file called: 'dnld.txt' .)

    If you want your computer to power-down/turn-off after the downloads are complete:

    a. Open a text editor
    b. Copy/paste or type the following commands into a new text file:
    Code:
                 wget -i dnld.txt -t 0
                 halt -p
    c. Save file under the name: dnld_shutdown.sh

    c. at your shell/terminal, type the following command:

    chmod og+x dnld_shutdown.sh

    Let's verify that the directory 'dnld_src' now contains two files, 'dnld_txt' and 'dnld_shutdown.sh' . Type the following command into a shell/terminal:
    Code:
           ls -la
    BEGIN DOWNLOAD -- close everything running on your desktop except a shell/terminal.

    Type the following command:
    Code:
          ./dnld_shutdown.sh
    NOW, TURN OFF YOUR MONITOR AND GO TO BED.

    If it's still running in the morning, go to work/school/whatever and it will be done when you return. Eventually, the computer should disconnect from the Internet and turn itself off after the download completes.


    That's it -- from here it's a 'hackjob' -- you'll have to compile each package individually.

    If you've never done that before, it's a cinch.

    Read and follow 'Compile Instructions' in next post.

    Enjoy.

    -----------------------------------------
    -- for problems, respond to this post or PM (private message) me.
    -----------------------------------------
    UPDATED: corrected addresses/URL's in file list. Files to download are now in same order as needed to compile.
    UPDATED: added sound/video libraries after Gimp/gimp-print/gutenprint install.
    UPDATED: title typo

  2. #2
    Just Joined!
    Join Date
    May 2005
    Location
    PNW
    Posts
    11

    How To Compile Libraries from Source Code Part-2

    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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&#58;$PATH
    -- Compile in directory 'libart_lgpl-2.3.11' .

    Code:
    cd libart_lgpl-2.3.11/
    ./configure
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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:

    Code:
    xmkmf -a
    -- or if the '-a' option is not supported by your version of xmkmf:
    -----------------------BEGIN OPTIONAL CODE-------
    Code:
    xmkmf
    make Makefiles
    make includes
    make depend &#40;optional&#41;
    -----------------------END OPTIONAL CODE-------

    -- Then simply execute:

    Code:
    make
    -- 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 &#40;as 'su' or 'root'&#41;
    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 &#91;b&#93;Environment Variables&#91;/b&#93; 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&#58; '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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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&#58;$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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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&#58;$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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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
    &#91;b&#93; *** do not use 'make' command here ***&#91;/b&#93;
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    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 &#40;as 'su' or 'root'&#41;
    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.

  3. #3
    Just Joined!
    Join Date
    May 2005
    Location
    PNW
    Posts
    11

    How To Compile Gimp/gimp-print/gutenprint from source code

    Compile HOWTO Gimp, Gimp-Print, Gutenprint

    =================================
    STEP-29:
    =================================
    Gimp-2.2.7
    (compile/install time: [hh:mm] 01:45)

    Do not compile/install gutenprint before gimp-2.2.7 or you'll have problems. The correct order to install is
    Gimp --disable-print
    gimp-print --with-gimp2
    gutenprint


    -- If you attempted './configure' and got the following error :

    checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

    - then before configuring Gimp, you'll need to run a CPAN module of Perl. Here's how:

    -- you will need to logon to the Internet for about five minutes and, execute the following commands in your shell:

    *** Internet connection must be established (modem on and connected) ***

    -- note: after entering the following, you'll be asked a bunch of questions. Just press <enter> through most, but watch closely for those that need a better answer.

    Code:
    su <enter password>
    perl -MCPAN -e shell
    Now you will get a prompt that looks like this '>' .

    *** Internet connection must be established (modem on and connected) ***

    -- note: the next step will install XML::Parser and all of its dependencies. At the prompt, enter the following command:

    Code:
    install XML&#58;&#58;Parser
    -- okay, it will download some files and install them. Between 10-30 minutes, you'll get a prompt that looks like this 'cpan>' . Enter the following command to exit:

    Code:
    quit
    You can disconnect your modem now.

    -- configure with the --disable-print option -- (we'll activate a new print-function when compiling Gutenprint in next section.)

    -- A word about patches:

    - I haven't a clue how to get a patch to work properly. So, I skipped 'em. Here's the instructions but they've never worked for me. Good luck. ;/

    Code:
      -i PATCHFILE  --input=PATCHFILE  Read patch from PATCHFILE instead of stdin.
    
     -o FILE  --output=FILE  Output patched files to FILE.
     -r FILE  --reject-file=FILE  Output rejects to FILE.
    
    patch &#91;OPTION&#93;... &#91;ORIGFILE &#91;PATCHFILE&#93;&#93;
    -- END PATCH-FILE INSTRUCTIONS --

    -- compile and install Gimp using the following commands :

    Code:
    ./configure &#91;b&#93;--disable-print&#91;/b&#93;
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    The dir under 'dnld_src' where this was compiled may be deleted to save room:
    Code:
    cd ../../
    rm -dfr gimp-2.2.7
    =================================
    STEP-30:
    =================================
    Gimp-print-5.0.0-Beta2
    (compile/install time: [hh:mm] 00:30)

    -- Decrompress in 'gimp-print-5.0.0-Beta2' dir :

    Code:
    tar xfvj gimp-print-5.0.0-Beta2.tar.bz2
    -- re-set Environment Variables as shown in Step-24 .
    -- Compile in 'gimp-print-5.0.0-Beta2' dir :

    Code:
    cd gimp-print-5.0.0-Beta2/
    ./configure
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    The dir under 'dnld_src' where this was compiled may be deleted to save room:
    Code:
    cd ../../
    rm -dfr gimp-print-5.0.0-Beta2
    =================================
    STEP-31:
    =================================
    Gutenprint-5.0.0-Beta4
    (compile/install time: [hh:mm] 00:30)

    -- Decrompress in 'dnld_src' dir :

    Code:
    tar xfvj gutenprint-5.0.0-Beta4.tar.bz2
    -- Compile in 'gutenprint-5.0.0-beta4' dir :

    -- Decompress file in directory 'dnld_src'

    Code:
    xfvj gutenprint-5.0.0-Beta4.tar.bz2
    -- re-set Environment Variables as follows:

    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/include -L/usr/local/share/libtool -L/usr/local/lib -L -L/usr/local/share/glib-2.0 -L/usr/local/lib/gtk+-2.0"
    export CPPFLAGS="-I/usr/local/include/ -I/usr/local/share/"
    -- Manually remove any existing Foomatic option files. If you do not do this, any PPD files generated by Gutenprint 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*
    -- Compile in directory 'gutenprint-5.0.0-beta4' with special option '--with-gimp2' :

    Code:
    cd gutenprint-5.0.0-beta4
    ./configure &#91;b&#93;--with-gimp2&#91;/b&#93;
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    -- The dir under 'dnld_src' where this was compiled may be deleted to save room:

    Code:
    cd ../../
    rm -dfr gutenprint-5.0.0-Beta4
    --note: you now have a 'print' button in Gimp-2.2.7 that will use gutenprint-5.0.0-Beta4, which will display at the top of the Gimp print-dialogue box after you choose 'print' from the menu.

    ++++++++++++++++++++++++++++++++
    The next eleven optional libraries deal with sound/video/text-to-speech. Unless you are planning to install a music editor/composer, xine-ui/video front-end, or, talk to your computer or use VoiP services, then you may not want these libs. That said, when you compile your own browser, the sound/video support may be useful, and you may wish to make cheap/free internet-phone calls with VoiP.
    ++++++++++++++++++++++++++++++++

    =================================
    STEP-32:
    =================================
    Alsa-1.0.9rc4a
    (compile/install time: [hh:mm] 00:02)

    ********* sound/video libraries must be compiled/installed in order **********

    -- Decompress alsa-lib-1.0.9rc4.tar.bz2 in your 'dnld_src' dir :

    Code:
    tar xfvj alsa-lib-1.0.9rc4.tar.bz2
    -- re-set Environment Variables as shown in Step-31]:

    -- it may be necessary to copy the *.pc files so pkgconfig can find the alsa library.

    Code:
    cp /usr/local/lib/pkgconfig/alsa.pc ../
    -- compile in dir 'alsa-lib-1.0.0rc4'

    Code:
    cd alsa-lib-1.0.0rc4
    ./configure
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    -- lastly, make a symbolic link between libraries:

    Code:
    ln -sf /usr/lib/libasound.so.2.0.0 /lib/libasound.so.2.0.0
    -- you may delete the 'alsa-lib' dir to save room:

    Code:
    rm -dfr alsa-lib-1.0.0rc4
    -- note: This is the alsa library only. For complete installation, you must recompile the kernel (I'm not goin' there). For alsa applications, utilities, tools and drivers, visit the alsa website: http://www.alsa-project.org/

    =================================
    STEP-33 - Sound/Video libraries:
    =================================

    ogg
    vorbis
    theora
    libmikmod
    MesaLib
    AudioFile
    esound
    speex
    xmms
    flac

    (compile/install time: hh:mm=0:42)

    -- Must be compiled/installed in order as each lib is dependent upon the one before it.
    -- Decompress files in directory 'dnld_src' one at a time :

    Code:
    tar xfvz libogg-1.1.2.tar.gz
    tar xfvz libvorbis-1.1.0.tar.gz
    tar xfvj libtheora-1.0alpha4.tar.bz2
    tar xfvz libmikmod-3.1.10.tar.gz
    tar xfvj MesaLib-6.2.1.tar.bz2
    tar xfvz audiofile-0.2.6.tar.gz
    tar xfvj esound -0.2.32.tar.bz2
    tar xfvz speex-1.1.8.tar.gz
    tar xfvj xmms-1.2.1-tar.bz2
    tar xfvz flac-1.1.2.tar.gz
    -- They all configure, build and install in the same way, except for Mesa, which does not support the './configure' command, just 'make' and 'make install.' Make sure you compile/install in order.

    -- re-set Environment Variables to include Alsa support as shown :

    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/include -L/home/dippy/qt/lib -L/usr/local/share/libtool -L/usr/local/lib -L /usr/local/include/alsa/ -L/usr/local/share/glib-2.0"
    export CPPFLAGS="-I/usr/local/include/ -I/usr/local/share/ -I/$HOME/dnld_src/qt/lib"
    -- compile one at a time, in order, in their respective directories:

    Code:
    cd &#40;to library&#41;
    ./configure &#40;except for Mesa&#41;
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    -- The dirs under 'dnld_src' where these were compiled may be deleted to save room:

    Code:
    cd ../
    rm -dfr &#40;directory name&#41;
    =================================
    STEP-34:
    =================================
    QT-X11-Free-3.3.4
    (compile/install time: [hh:mm] 05:25)

    -- Decrompress in the dir that 'qt' will be permanently installed :

    Code:
    tar xfvj qt-x11-free-3.3.4.tar.bz2
    -- it is recommended to rename the 'qt-x11-free-3.3.4' dir to 'qt.'

    Code:
    mv qt-x11-free-3.3.4 qt
    -- you must modify your '.profile' in your home directory. The file is often called '.bash_profile'. In '.profile' (if your shell is bash, ksh, zsh or sh), add the following lines:

    Code:
    	QTDIR=$HOME/dnld_src/qt
    	PATH=$QTDIR/bin&#58;$PATH
    	MANPATH=$QTDIR/doc/man&#58;$MANPATH
    	LD_LIBRARY_PATH=/usr/local/include/qt&#58;$LD_LIBRARY_PATH
    	export QTDIR PATH MANPATH LD_LIBRARY_PATH
    Here's what mine looks like BEFORE editing:

    Code:
    # .bash_profile
    
    # Get the aliases and functions
    if &#91; -f ~/.bashrc &#93;; then
    	. ~/.bashrc
    fi
    
    # User specific environment and startup programs
    
    PATH=/usrsrc/qt/bin
    export PATH
    unset USERNAME
    -- here's what mine looks like AFTER editing:
    -- you can copy/paste this directly into your text editor and save as your new '.profile' .

    Code:
    # .bash_profile
    
    # Get the aliases and functions
    if &#91; -f ~/.bashrc &#93;; then
    	. ~/.bashrc
    fi
    
    # User specific environment and startup programs
    
    QTDIR=$HOME/dnld_src/qt
    PATH=$QTDIR/bin&#58;$PATH
    MANPATH=$QTDIR/doc/man&#58;$MANPATH
    LD_LIBRARY_PATH=/usr/local/include/qt&#58;$LD_LIBRARY_PATH
    export QTDIR PATH MANPATH LD_LIBRARY_PATH
    PATH=$PATH&#58;$HOME/dnld_src/qt/bin
    export PATH
    unset USERNAME
    ***** after editing and saving '.profile', you must log out and then log back in *****

    To continue after logging back in:

    -- re-set Environment Variables to specify the new 'qt' directory - you can copy/paste this at the command prompt:

    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/include/qt -L/$HOME/dnld_src/qt/lib -L/usr/local/share/libtool -L/usr/local/lib -L /usr/local/include/alsa -L/usr/local/lib/glib-2.0 -L/usr/local/lib/gtk+-2.0"
    export CPPFLAGS="-I/usr/local/include/ -I/usr/local/share/"QTDIR=$HOME/dnld_src/qt
    QTDIR=$HOME/dnld_src/qt
    PATH=$QTDIR/bin&#58;$PATH
    MANPATH=$QTDIR/doc/man&#58;$MANPATH
    LD_LIBRARY_PATH=$QTDIR/lib&#58;$LD_LIBRARY_PATH
    export QTDIR PATH MANPATH LD_LIBRARY_PATH
    PATH=$PATH&#58;$HOME/dnld_src/qt/bin
    export PATH
    unset USERNAME
    -- Compile in 'qt' dir with the following './configure' options:

    Code:
    cd qt
    ./configure -libdir /usr/local/lib -bindir /usr/local/bin -headerdir /usr/local/include/qt
    yes <prompt for license agreement>
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    *** DO NOT REMOVE THIS DIRECTORY EVER ***

    The dir under /dnld_src where this was compiled may NOT be deleted. However, you can clean up the build dir to save room:

    Code:
    make clean
    =================================
    STEP-35:
    =================================
    ArTs-1.4.1
    (compile/install time: [hh:mm] 00:04)

    -- Decompress file in directory 'dnld_src'

    Code:
    tar xfvz arts-1.4.1.tar.bz2
    -- Arts requires the following weird Environment Variables in order to find the 'qt' libraries you just compiled. You may have to play with these if the './configure' command errors looking for the new 'qt' . If that happens, try copying the file 'qt.pc' from your 'dnld_src/qt/lib' directory to your new 'pkgconfig' directory:

    Code:
    cp -f /$HOME/dnld_src/qt/lib/qt.pc /usr/local/lib/pkgconfig/
    Then, rename the old 'qt' directory so it won't be found :

    Code:
    mv /usr/lib/qt-3.1 /usr/lib/qt-3.1.old
    -- re-set Environment Variables to specify the new 'qt' directory - you can copy/paste this at the command prompt:

    Code:
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig
    export LDFLAGS="-L/@HOME/dnld_src/qt/lib -L/usr/local/lib -L/usr/local/lib/qt -L/usr/local/lib/gtk-2.0 -L/usr/local/lib/gtk-2.0"
    export CPPFLAGS="-I/usr/local/include/qt -I/@HOME/dnld_src/qt/include -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0"
    QTDIR=/$HOME/dnld_src/qt
    PATH=$QTDIR/bin&#58;/usr/bin&#58;/usr/local/bin&#58;/usr/bin&#58;/bin&#58;/usr/sbin
    MANPATH=$QTDIR/doc/man&#58;$MANPATH
    LD_LIBRARY_PATH=$QTDIR/lib&#58;/usr/local/lib/qt
    export QTDIR PATH MANPATH LD_LIBRARY_PATH
    export PATH
    unset USERNAME

    -- Compile in directory 'arts-1.4.1' -- copy/paste the long './configure' command line below into your shell :

    Code:
    cd arts-1.4.1
    ./configure --with-alsa --with-qt-libraries=/$HOME/dnld_src/qt/lib --with-qt-includes=/$HOME/dnld_src/qt/lib --with-qt-dir=/$HOME/dnld_src/qt/lib --with-extra-includes=/usr/local/include/qt --with-extra-libs=/usr/local/lib --disable-mt
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    The dir under 'dnld_src' where this was compiled may be deleted to save room:
    Code:
    cd ../../
    rm -dfr arts-1.4.1

    -- End compile/install libraries section
    -- Next post is How To Compile/Install Firefox and Mozilla

  4. #4
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    How much time did you spend on that tut

  5. #5
    Just Joined!
    Join Date
    May 2005
    Location
    PNW
    Posts
    11

    How To Compile Firefox and Mozilla from source

    =================================
    STEP-36:
    =================================
    Firefox-1.0.3-source.tar.bz2
    (compile/install time: [hh:mm] 03:45)

    Note: I've yet to get Firfox-1.0.4 to compile.

    -- Create a sub-dir under your 'dnld_src' dir and move the bzip file into it:

    Code:
    mkdir firefox
    mv -f firefox-1.0.3-source.tar.bz2 firefox/
    -- Decrompress in 'firefox' dir :

    Code:
    cd firefox
    tar xfvj firefox-1.0.3-source.tar.bz2
    -- you now have a 'mozilla' dir under your 'firefox' dir.
    -- create .mozconfig file (mandatory) in your 'dnld_src/firefox/mozilla' . Copy/Paste the following into a text editor (gedit/vi/whatever) and save in the 'mozilla' directory. Do not modify or you'll be sorry.

    Code:
    # default options - developer controlled
    . $topsrcdir/browser/config/mozconfig
    
    # object dir, keep source and compilation products separate
     mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../Firefox_objdir
    
    # tell the compiler what to do with the source code
     ac_add_options --enable-application=browser
    
    # optimized build &#40;needed for Aviary but not the trunk&#41;
     ac_add_options --disable-debug
     ac_add_options --enable-optimize
    
    # static build
     ac_add_options --disable-shared
     ac_add_options --enable-static
    
    # smaller
     ac_add_options --disable-tests
    
    # official branding &#40;distribution of builds with this branding is not permitted without permission&#41;
    # http&#58;//www.mozilla.org/foundation/trademarks/
     ac_add_options --enable-official-branding
    -- re-set Environment Variables to make sure it finds 'gdk-pixbuf' .

    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 -L/usr/local/lib/gtk-2.0/gdk-pixbuf -L/usr/local/share/libtool -L/usr/local/lib/gtk-2.0 -L/usr/local/lib/gtk-2.0/2.4.0 -L/usr/local/lib/glib-2.0"
    export CPPFLAGS="-I/usr/local/include/ -I/usr/local/include/gtk-2.0 -I/usr/local/include/gtk-2.0/gdk-pixbuf/ -I/usrlocal/include/glib-2.0 "
    -- Compile in 'dnld_src/firefox/mozilla' dir :

    Code:
    cd mozilla/
    ./configure
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    -- To add an icon launcher, see the file 'README' in this directory.

    The dir under 'dnld_src' where this was compiled may be deleted to save room:
    Code:
    cd ../../
    rm -dfr firefox
    =================================
    STEP-37:
    =================================
    Mozilla-source.tar.bz2
    (compile/install time: [hh:mm] 05:20)

    -- Create a sub-dir under your 'dnld_src' dir and move the bzip file into it:

    Code:
    mkdir mozilla
    mv -f mozilla-source.tar.bz2 mozilla/
    -- Decrompress in 'dnld_src/mozilla' dir :

    Code:
    cd mozilla
    tar xfvj mozilla-source.tar.bz2
    -- you now have a 'mozilla' dir under your 'mozilla' dir.
    -- create .mozconfig file (mandatory). Copy/Paste the following into a text editor (gedit/vi/whatever) and save in the 'mozilla' directory under the name '.mozconf' . I've found that modifying the file leads to failure -- just try it like this and I know it will work:

    Code:
    # default options - developer controlled
    . $topsrcdir/browser/config/mozconfig
    
    # object dir, keep source and compilation products separate
     mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../Firefox_objdir
    
    # tell the compiler what to do with the source code
     ac_add_options --enable-application=suite
    
    # optimized build &#40;needed for Aviary but not the trunk&#41;
     ac_add_options --disable-debug
     ac_add_options --enable-optimize
    
    # static build
     ac_add_options --disable-shared
     ac_add_options --enable-static
    
    # smaller
     ac_add_options --disable-tests
    
    # official branding &#40;distribution of builds with this branding is not permitted without permission&#41;
    # http&#58;//www.mozilla.org/foundation/trademarks/
     ac_add_options --enable-official-branding
    -- re-set Environment Variables to make sure it finds 'gdk-pixbuf' .

    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 -L/usr/local/lib/gtk-2.0/gdk-pixbuf -L/usr/local/share/libtool -L/usr/local/lib/gtk-2.0 -L/usr/local/lib/gtk-2.0/2.4.0 -L/usr/local/lib/glib-2.0"
    export CPPFLAGS="-I/usr/local/include/ -I/usr/local/include/gtk-2.0 -I/usr/local/include/gtk-2.0/gdk-pixbuf/ -I/usrlocal/include/glib-2.0 "
    -- Compile in 'mozilla' dir :

    Code:
    cd mozilla/
    ./configure
    make
    su <prompt for password>
    make install &#40;as 'su' or 'root'&#41;
    exit
    -- To add a an icon launcher, see the file 'README' in this directory.

    -- DO NOT DELETE 'dnld_src/mozilla'
    -- if you delete the 'mozilla' dir, then your new mozilla suite will not work - and neither will your desktop file-manager.

    -- END HOWTO

    ---------------------
    edited '--enable-application=suite' in .mozconfig / typo

  6. #6
    Just Joined!
    Join Date
    May 2005
    Location
    PNW
    Posts
    11
    Quote Originally Posted by jaboua
    That's what I call quality replies

    Did you find it on the 'net or did you write everything yourself?
    I wrote it myself after doing a couple months of research. I've found that 'how to's' and 'instructions' are usually too far over my head to follow, and, that there are so many dependencies that it's impossible to figure out.

    Hence, I found out through trial and error that there is a certain 'order' to compiling, setting environmental variables and installing the libraries, followed by the graphics and browsers.

    I just noticed that I made a mistake in Mozilla's '.mozconfig' file and have to go back and edit it. It should read

    Code:
     --enable-application=suite
    I had 'browser' which is fine for the aviary branch of the Firefox source but will NOT work for Mozilla. It seems rather endless -- the editing -- but I think I've got this all correct now. I've also got an automation script that will compile and install the first 28 libraries automatically.

    I'll share it later. :hi: :wave: *whatever the BBcode is for hello*

    Kind Regards,
    Tracker

  7. #7
    Just Joined!
    Join Date
    May 2005
    Location
    PNW
    Posts
    11

    Automation Script for compile/install libraries

    This will automate compiling and installing the first 28 libraries.

    You'll have to be 'root/su' and do a search/replace in a text editor to replace '$HOME' with 'home/You're_UserName' in order to use this script.

    Also, put an empty file saved under the name of 'counter.txt' in the ''root' dir, and create a dir named 'packages' at the same level as 'src' ... then move all your .bz2/.gz/.tar files into it. Don't worry, they won't be harmed. The 'counter.txt' file will record the script output. There's no error checking -- write your own if you want -- use at your own risk.


    `echo "BEGIN" >> /$HOME/src/counter.txt
    date >> /$HOME/src/counter.txt

    ##
    cp -f ../packages/pkgconfig-0.17.2.tar.bz2 ./
    tar xfvj pkgconfig-0.17.2.tar.bz2
    cd pkgconfig-0.17.2
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "pkgconfig" >> /$HOME/src/counter.txt
    sleep 10s
    #
    ##########################
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    cp -f ../packages/automake-1.9.tar.bz2 ./
    tar xfvj automake-1.9.tar.bz2
    cd automake-1.9
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "automake" >> /$HOME/src/counter.txt
    sleep 10s
    #
    ###########################
    cp -f ../packages/autoconf-2.59.tar.bz2 ./
    tar xfvj autoconf-2.59.tar.bz2
    cd autoconf-2.59
    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"
    export CPPFLAGS="-I/usr/local/lib"
    PATH=$usr/local/bin:$PATH
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "autoconf" >> /$HOME/src/counter.txt
    sleep 10s
    #########################
    #
    cp -f ../packages/fontconfig-2.2.96.tar.gz ./
    tar xfvz fontconfig-2.2.96.tar.gz
    cd fontconfig-2.2.96
    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"
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "fontconfig" >> /$HOME/src/counter.txt
    sleep 10s
    #############################
    #
    cp -f ../packages/libXft-2.1.7.tar.bz2 ./
    tar xfvj libXft-2.1.7.tar.bz2
    cd libXft-2.1.7/
    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"
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libXft" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/glib-2.6.4.tar.bz2 ./
    tar xfvj glib-2.6.4.tar.bz2
    cd glib-2.6.4/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "glib" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/libart_lgpl-2.3.11.tar.bz2 ./
    tar xfvj libart_lgpl-2.3.11.tar.bz2
    cd libart_lgpl-2.3.11/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libart_lgpl" >> /$HOME/src/counter.txt
    sleep 10s
    ############################

    cp -f ../packages/libwmf-0.2.8.3.tar.gz ./
    tar xfvz libwmf-0.2.8.3.tar.gz
    cd libwmf-0.2.8.3/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libwmf" >> /$HOME/src/counter.txt
    sleep 10s
    ############################

    cp -f ../packages/libXpm-4.7.tar.gz ./
    tar xfvz libXpm-4.7.tar.gz
    cd xpm-3.4g
    xmkmf -a
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libXpm" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/zlib-1.2.2.tar.bz2 ./
    tar xfvj zlib-1.2.2.tar.bz2
    cd zlib-1.2.2/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "zlib" >> /$HOME/src/counter.txt
    sleep 10s
    ##############################

    cp -f ../packages/libpng-1.2.8-config.tar.gz ./
    tar xvfz libpng-1.2.8-config.tar.gz
    cd libpng-1.2.8-config
    cp -f ./scripts/makefile.linux ./makefile
    make install
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libpng" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/jpegsrc.v6b.tar.gz ./
    tar xfvz jpegsrc.v6b.tar.gz
    cd jpeg-6b/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "jpeg" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################
    cp -f ../packages/libtiff-lzw-compression-kit-1.3.tar.gz ./
    tar xfvz libtiff-lzw-compression-kit-1.3.tar.gz
    cp -f ../packages/tiff-v3.6.1.tar.gz ./
    tar xfvz tiff-v3.6.1.tar.gz
    cp -f libtiff-lzw-compression-kit-1.3/tif_lzw.c tiff-v3.6.1/libtiff
    cd tiff-v3.6.1
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "tiff" >> /$HOME/src/counter.txt
    sleep 10s

    ################################

    cp -f ../packages/libexif-0.6.12.tar.bz2 ./
    tar xfvj libexif-0.6.12.tar.bz2
    cd libexif-0.6.12/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libexif" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################

    cp -f ../packages/libtool-1.5.8.tar.gz ./
    tar xfvz libtool-1.5.8.tar.gz
    cd libtool-1.5.8/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libtool" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################

    cp -f ../packages/libmng-1.0.9.tar.gz ./
    tar xfvz libmng-1.0.9.tar.gz
    cd libmng-1.0.9
    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

    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libmng" >> /$HOME/src/counter.txt
    sleep 10s
    ###################################

    cp -f ../packages/Python-2.4.1.tar ./
    tar xfv Python-2.4.1.tar
    cd Python-2.4.1/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "Python" >> /$HOME/src/counter.txt
    sleep 10s
    #####################################

    cp -f ../packages/aalib-1.4rc4.tar.gz ./
    tar xfvz aalib-1.4rc4.tar.gz
    cd aalib-1.4.0/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "aalib" >> /$HOME/src/counter.txt
    sleep 10s
    ###################################

    cp -f ../packages/freetype-2.1.9.tar.bz2 ./
    tar xfvj freetype-2.1.9.tar.bz2
    cd freetype-2.1.9/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "freetype" >> /$HOME/src/counter.txt
    sleep 10s
    ####################################

    cp -f ../packages/stable.tar.gz ./
    tar xfvz stable.tar.gz
    cd perl-5.8.6/
    rm -f config.sh Policy.sh
    sh Configure -de
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "perl" >> /$HOME/src/counter.txt
    sleep 10s
    #######################################

    cp -f ../packages/atk-1.10.1.tar.bz2 ./
    tar xfvj atk-1.10.1.tar.bz2
    cd atk-1.10.1
    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/include/glib-2.0/ -L/usr/local/share/libtool -L/usr/local/lib"
    export CPPFLAGS="-I/usr/local/include/"
    PATH=$usr/local/bin:$PATH
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "atk" >> /$HOME/src/counter.txt
    sleep 10s
    ###################################

    cp -f ../packages/pango-1.8.1.tar.bz2 ./
    tar xfvj pango-1.8.1.tar.bz2
    cd pango-1.8.1/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "pango" >> /$HOME/src/counter.txt
    sleep 10s
    ######################################
    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/share/gtk-2.0/gdk-pixbuf -L/usr/local/share/libtool -L/usr/local/lib -L/usr/local/share/glib-2.0"
    export CPPFLAGS="-I/usr/local/include/ -I/usr/local/share/"
    cp -f ../packages/gtk+-2.6.7.tar.bz2 ./
    tar xfvj gtk+-2.6.7.tar.bz2
    cd gtk+-2.6.7/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "gtk" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################

    cp -f ../packages/xine-lib-1-rc8.tar.gz ./
    tar xfvz xine-lib-1-rc8.tar.gz
    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/include/glib-2.0 -L/usr/local/share/libtool"
    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
    cd xine-lib-1-rc8/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "xine" >> /$HOME/src/counter.txt
    sleep 10s
    ##############################

    cp -f ../packages/gxine-0.4.4.tar.gz ./
    tar xfvz gxine-0.4.4.tar.gz
    cd gxine-0.4.4/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "gxine" >> /$HOME/src/counter.txt
    sleep 10s
    #################################
    cp -f ../packages/librsvg-2.9.5.tar.bz2
    tar xfvj librsvg-2.9.5.tar.bz2
    cd librsvg-2.9.5
    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
    cd librsvg-2.9.5
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "librsvg" >> /$HOME/src/counter.txt
    sleep 10s
    #################################
    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/gdk-pixbuf -L/usr/local/share/libtool -L/usr/local/lib -L/usr/local/lib/glib-2.0"
    export CPPFLAGS="-I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/include/gtk-2.0"

    cp -f ../packages/aspell-0.61-20050123.tar.gz ./
    mkdir -p aspell
    mv -f aspell-0.61-20050123.tar.gz aspell/
    cd aspell
    tar xfvz aspell-0.61-20050123.tar.gz
    cd aspell-0.61-20050123/
    ./configure
    make
    make install
    make distclean
    cd ../../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "aspell-part1" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################
    cp -f ../packages/aspell6-en-6.0-0.tar.bz2 ./
    mv -f aspell6-en-6.0-0.tar.bz2 aspell/
    cd aspell
    tar xfvj aspell6-en-6.0-0.tar.bz2
    cd aspell6-en-6.0-0/
    ./configure
    make
    make install
    make distclean
    cd ../../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "aspell-part2" >> /$HOME/src/counter.txt
    sleep 10s
    #####################################
    mkdir -p foomatic
    cd foomatic
    cp -f ../../packages/foomatic*.gz ./
    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
    cd foomatic-db-20050416/
    ./configure
    make install
    make distclean

    cd ../foomatic-db-engine-3.1-20050416
    ./configure
    make
    make install
    make distclean

    cd ../foomatic-db-hpijs-1.5-20050416/
    ./configure
    make install
    make distclean

    cd ../foomatic-filters-3.1-20050416/
    ./configure
    make
    make install
    make distclean

    cd ../../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "foomatic" >> /$HOME/src/counter.txt
    sleep 10s
    ####################################
    #Manually remove any existing Foomatic option files. If you do not do
    #this, any PPD files generated by gutenprint will be garbage.
    #
    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*

    ###############################################
    ######
    ######END autocompile.sh END ##################
    ######
    ###############################################
    ######
    ######If this script did not error-out, you can now install Gimp, gimp-print and lastly Gutenprint. Make ######sure they are compiled/installed in order and do not attempt to automate. Interaction is required.
    ######
    ###############################################

    --------------------------
    edited typo

  8. #8
    Just Joined!
    Join Date
    May 2005
    Location
    PNW
    Posts
    11
    Quote Originally Posted by jaboua
    How much time did you spend on that tut
    surprisingly little -- or it would be a masterpiece.

  9. #9
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2
    Hi, I intend to build my own Virtual Reality Helmet. I need to predistort the image coming out of games (linux and Wine-Windows) and videos, so it can compensate the distortion from optics. I use Ubuntu. What do I need to modify in linux?
    Any clue will be appreciated. Thanks

    Carlos Botero

    Quote Originally Posted by Tracker View Post
    This will automate compiling and installing the first 28 libraries.

    You'll have to be 'root/su' and do a search/replace in a text editor to replace '$HOME' with 'home/You're_UserName' in order to use this script.

    Also, put an empty file saved under the name of 'counter.txt' in the ''root' dir, and create a dir named 'packages' at the same level as 'src' ... then move all your .bz2/.gz/.tar files into it. Don't worry, they won't be harmed. The 'counter.txt' file will record the script output. There's no error checking -- write your own if you want -- use at your own risk.


    `echo "BEGIN" >> /$HOME/src/counter.txt
    date >> /$HOME/src/counter.txt

    ##
    cp -f ../packages/pkgconfig-0.17.2.tar.bz2 ./
    tar xfvj pkgconfig-0.17.2.tar.bz2
    cd pkgconfig-0.17.2
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "pkgconfig" >> /$HOME/src/counter.txt
    sleep 10s
    #
    ##########################
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    cp -f ../packages/automake-1.9.tar.bz2 ./
    tar xfvj automake-1.9.tar.bz2
    cd automake-1.9
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "automake" >> /$HOME/src/counter.txt
    sleep 10s
    #
    ###########################
    cp -f ../packages/autoconf-2.59.tar.bz2 ./
    tar xfvj autoconf-2.59.tar.bz2
    cd autoconf-2.59
    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"
    export CPPFLAGS="-I/usr/local/lib"
    PATH=$usr/local/bin:$PATH
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "autoconf" >> /$HOME/src/counter.txt
    sleep 10s
    #########################
    #
    cp -f ../packages/fontconfig-2.2.96.tar.gz ./
    tar xfvz fontconfig-2.2.96.tar.gz
    cd fontconfig-2.2.96
    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"
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "fontconfig" >> /$HOME/src/counter.txt
    sleep 10s
    #############################
    #
    cp -f ../packages/libXft-2.1.7.tar.bz2 ./
    tar xfvj libXft-2.1.7.tar.bz2
    cd libXft-2.1.7/
    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"
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libXft" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/glib-2.6.4.tar.bz2 ./
    tar xfvj glib-2.6.4.tar.bz2
    cd glib-2.6.4/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "glib" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/libart_lgpl-2.3.11.tar.bz2 ./
    tar xfvj libart_lgpl-2.3.11.tar.bz2
    cd libart_lgpl-2.3.11/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libart_lgpl" >> /$HOME/src/counter.txt
    sleep 10s
    ############################

    cp -f ../packages/libwmf-0.2.8.3.tar.gz ./
    tar xfvz libwmf-0.2.8.3.tar.gz
    cd libwmf-0.2.8.3/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libwmf" >> /$HOME/src/counter.txt
    sleep 10s
    ############################

    cp -f ../packages/libXpm-4.7.tar.gz ./
    tar xfvz libXpm-4.7.tar.gz
    cd xpm-3.4g
    xmkmf -a
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libXpm" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/zlib-1.2.2.tar.bz2 ./
    tar xfvj zlib-1.2.2.tar.bz2
    cd zlib-1.2.2/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "zlib" >> /$HOME/src/counter.txt
    sleep 10s
    ##############################

    cp -f ../packages/libpng-1.2.8-config.tar.gz ./
    tar xvfz libpng-1.2.8-config.tar.gz
    cd libpng-1.2.8-config
    cp -f ./scripts/makefile.linux ./makefile
    make install
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libpng" >> /$HOME/src/counter.txt
    sleep 10s
    #############################

    cp -f ../packages/jpegsrc.v6b.tar.gz ./
    tar xfvz jpegsrc.v6b.tar.gz
    cd jpeg-6b/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "jpeg" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################
    cp -f ../packages/libtiff-lzw-compression-kit-1.3.tar.gz ./
    tar xfvz libtiff-lzw-compression-kit-1.3.tar.gz
    cp -f ../packages/tiff-v3.6.1.tar.gz ./
    tar xfvz tiff-v3.6.1.tar.gz
    cp -f libtiff-lzw-compression-kit-1.3/tif_lzw.c tiff-v3.6.1/libtiff
    cd tiff-v3.6.1
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "tiff" >> /$HOME/src/counter.txt
    sleep 10s

    ################################

    cp -f ../packages/libexif-0.6.12.tar.bz2 ./
    tar xfvj libexif-0.6.12.tar.bz2
    cd libexif-0.6.12/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libexif" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################

    cp -f ../packages/libtool-1.5.8.tar.gz ./
    tar xfvz libtool-1.5.8.tar.gz
    cd libtool-1.5.8/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libtool" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################

    cp -f ../packages/libmng-1.0.9.tar.gz ./
    tar xfvz libmng-1.0.9.tar.gz
    cd libmng-1.0.9
    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

    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "libmng" >> /$HOME/src/counter.txt
    sleep 10s
    ###################################

    cp -f ../packages/Python-2.4.1.tar ./
    tar xfv Python-2.4.1.tar
    cd Python-2.4.1/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "Python" >> /$HOME/src/counter.txt
    sleep 10s
    #####################################

    cp -f ../packages/aalib-1.4rc4.tar.gz ./
    tar xfvz aalib-1.4rc4.tar.gz
    cd aalib-1.4.0/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "aalib" >> /$HOME/src/counter.txt
    sleep 10s
    ###################################

    cp -f ../packages/freetype-2.1.9.tar.bz2 ./
    tar xfvj freetype-2.1.9.tar.bz2
    cd freetype-2.1.9/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "freetype" >> /$HOME/src/counter.txt
    sleep 10s
    ####################################

    cp -f ../packages/stable.tar.gz ./
    tar xfvz stable.tar.gz
    cd perl-5.8.6/
    rm -f config.sh Policy.sh
    sh Configure -de
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "perl" >> /$HOME/src/counter.txt
    sleep 10s
    #######################################

    cp -f ../packages/atk-1.10.1.tar.bz2 ./
    tar xfvj atk-1.10.1.tar.bz2
    cd atk-1.10.1
    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/include/glib-2.0/ -L/usr/local/share/libtool -L/usr/local/lib"
    export CPPFLAGS="-I/usr/local/include/"
    PATH=$usr/local/bin:$PATH
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s

    echo "atk" >> /$HOME/src/counter.txt
    sleep 10s
    ###################################

    cp -f ../packages/pango-1.8.1.tar.bz2 ./
    tar xfvj pango-1.8.1.tar.bz2
    cd pango-1.8.1/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "pango" >> /$HOME/src/counter.txt
    sleep 10s
    ######################################
    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/share/gtk-2.0/gdk-pixbuf -L/usr/local/share/libtool -L/usr/local/lib -L/usr/local/share/glib-2.0"
    export CPPFLAGS="-I/usr/local/include/ -I/usr/local/share/"
    cp -f ../packages/gtk+-2.6.7.tar.bz2 ./
    tar xfvj gtk+-2.6.7.tar.bz2
    cd gtk+-2.6.7/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "gtk" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################

    cp -f ../packages/xine-lib-1-rc8.tar.gz ./
    tar xfvz xine-lib-1-rc8.tar.gz
    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/include/glib-2.0 -L/usr/local/share/libtool"
    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
    cd xine-lib-1-rc8/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "xine" >> /$HOME/src/counter.txt
    sleep 10s
    ##############################

    cp -f ../packages/gxine-0.4.4.tar.gz ./
    tar xfvz gxine-0.4.4.tar.gz
    cd gxine-0.4.4/
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "gxine" >> /$HOME/src/counter.txt
    sleep 10s
    #################################
    cp -f ../packages/librsvg-2.9.5.tar.bz2
    tar xfvj librsvg-2.9.5.tar.bz2
    cd librsvg-2.9.5
    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
    cd librsvg-2.9.5
    ./configure
    make
    make install
    make distclean
    cd ../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "librsvg" >> /$HOME/src/counter.txt
    sleep 10s
    #################################
    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/gdk-pixbuf -L/usr/local/share/libtool -L/usr/local/lib -L/usr/local/lib/glib-2.0"
    export CPPFLAGS="-I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/include/gtk-2.0"

    cp -f ../packages/aspell-0.61-20050123.tar.gz ./
    mkdir -p aspell
    mv -f aspell-0.61-20050123.tar.gz aspell/
    cd aspell
    tar xfvz aspell-0.61-20050123.tar.gz
    cd aspell-0.61-20050123/
    ./configure
    make
    make install
    make distclean
    cd ../../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "aspell-part1" >> /$HOME/src/counter.txt
    sleep 10s
    ###############################
    cp -f ../packages/aspell6-en-6.0-0.tar.bz2 ./
    mv -f aspell6-en-6.0-0.tar.bz2 aspell/
    cd aspell
    tar xfvj aspell6-en-6.0-0.tar.bz2
    cd aspell6-en-6.0-0/
    ./configure
    make
    make install
    make distclean
    cd ../../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "aspell-part2" >> /$HOME/src/counter.txt
    sleep 10s
    #####################################
    mkdir -p foomatic
    cd foomatic
    cp -f ../../packages/foomatic*.gz ./
    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
    cd foomatic-db-20050416/
    ./configure
    make install
    make distclean

    cd ../foomatic-db-engine-3.1-20050416
    ./configure
    make
    make install
    make distclean

    cd ../foomatic-db-hpijs-1.5-20050416/
    ./configure
    make install
    make distclean

    cd ../foomatic-filters-3.1-20050416/
    ./configure
    make
    make install
    make distclean

    cd ../../
    sleep 10s
    date >> /$HOME/src/counter.txt
    sleep 10s
    echo "foomatic" >> /$HOME/src/counter.txt
    sleep 10s
    ####################################
    #Manually remove any existing Foomatic option files. If you do not do
    #this, any PPD files generated by gutenprint will be garbage.
    #
    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*

    ###############################################
    ######
    ######END autocompile.sh END ##################
    ######
    ###############################################
    ######
    ######If this script did not error-out, you can now install Gimp, gimp-print and lastly Gutenprint. Make ######sure they are compiled/installed in order and do not attempt to automate. Interaction is required.
    ######
    ###############################################

    --------------------------
    edited typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •