| Click here to go to the original topic View previous topic :: View next topic |
| Author |
Message |
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Sun May 22, 2005 3:16 pm Post subject: Linux/Unix : How To Compile Source Code - Libraries/browsers |
|
|
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 problems with them altogether by compiling in the proper order as shown below :
- pkgconfig
- automake
- autoconf
- fontconfig
- libXft2- (NOT 'Xft')
- freetype
- glib
At this point, Environment Variables must be specified beforing compiling the next libraries:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib
- atk (checks for perl5, so that could be installed here)
- pango (won't build Xft backend here unless system is tweaked - see notes)
- gtk
- libart
How To compile and install, step-by-step instructions are in following posts (see below).
How to download multiple files with 'wget':
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
UPDATED: file versions/links/COMPILE ORDER! |
|
| Back to top |
|
endersshadow
Joined: 01 Feb 2004
Posts: 10130
Location: Dallas
|
| Posted: Sun May 22, 2005 6:56 pm Post subject: |
|
|
:lol:
If you're not familiar with tarballs, it can be quite an aggrevating process. Therefore, you can always use the ever-so-helpful RPM Find to install it with one command: rpm -ivh name.rpm :-D |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Sun May 22, 2005 9:34 pm Post subject: |
|
|
:lol: True.
But it won't be custom compiled for your hardware -- just 'generic' with allot of memory overhead/leads/whatever.
It's really interesting to try your own compiles.
Next segment: Changing/Setting-up ENVIRONMENT VARIABLES.
This is easier than it sounds, but necessary in order to use all the libraries in the downloaded files above.
This thread might be helpful to some -- that's why I wrote it -- because it was a big pain in the butt to do the first time and I had to search all over and read far too many manuals in order to get the latest/greatest graphic/animation/fontrendering programs installed. So, a 'reduction' for the technical-reading-challenged. :lol: |
|
| Back to top |
|
ghengiskhan
Joined: 14 Mar 2005
Posts: 410
Location: City of LUD
|
| Posted: Sun May 22, 2005 11:11 pm Post subject: |
|
|
| :slp: :slp: :slp: :slp: :slp: :slp: :slp: :slp: |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Tue May 24, 2005 7:08 am Post subject: |
|
|
How To Compile Libraries and Programs 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").
-- The first 28 small libraries can be compiled/installed in an automated script (see below) that runs for approx 3-1/2 hours unattended. This is great for when/if you screw-up your system and don't want to do all that typing again. ;) After the script issues and installs all the libs, you can go on and make Firefox, Mozilla, Gimp, Gimp-Print, Gutenprint, Qt, KDE, Xine ui's, any sound programs and front or back-end synthesizers, music composers and manuscript publishing, video and video editing, any program that needs a total font manipulation/editing back-end, drafting, 3D, higher-math and scientific database frontends.
The important ones first, in the proper order of compile/install:
- pkgconfig
- automake
- autoconf
- fontconfig
- libXft2- (NOT 'Xft')
- freetype
- glib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib
- atk (checks for perl5, so that could be installed here)
- pango (won't build Xft backend here unless system is tweaked - see notes)
- gtk
- libart
===============================
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:
===================================
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-3:
================================
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 Environment Variables at the command prompt. These EV's 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-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:
=================================
freetype-2.1.10
(compile/install time: [hh:mm] 00:02)
-- Common Errors:
-- -- 1) [b]'ft2build.h' not found
-- -- 2) [/b]"Xft Pango backend required for X11 target"[/b]
-- -- -- Note-1: Pango only builds the Xft backend if Freetype is installed. If you are getting error messages while compiling GTK+-2.6.x (or other builds), then you must start at Step-1 and compile/install libraries in the order shown. Further, if you are looking back through these instructions because everything appears 'okay' but other programs are not compiling properly, then Pango built itself a pretty neat but MEANINGLESS Xft-backend based on an OLDER version of Freetype-1 and 'Xft' that is lurking around in the shadows of your system somewhere. We'll solve that in the next few steps -- as the solution for all of it, STARTS HERE.
-- -- -- Note-2: If practically everything is erroring-out during 'make' while looking for 'ft2build.h' and complaining about using 'macros' to include header files or some other crap, then this pain-in-the-ass can be cured by temporarily moving some files around on your system (just make sure you move them back to their proper location after this ridiculous - but MANDATORY - exercise in frustration). Don't blame the developers of the program you're attempting to build -- they did they're job with execellence -- the problem remains elsewhere, so here's what we need to do:
-- -- -- -- move old 'Xft' and old 'Freetype-1' and old 'Freetype-2' files into a temporary location (bet you didn't know these were on your system, did you? -- I did, but it still took a helluvalot of BS to figure out a work-a-round for these ill-behaved miscreants. Here's the file names/locations and commands that will force these machines and their instruction-sets to start working for us in the exact way our fine developer friends intended:
Code:
su <enter password>
<note: redundency included for accuracy>
mv -f /usr/bin/freetype-config /usr/bin/freetype-config.old
mv -f /usr/include/freetype/freetype1 /usr/include/freetype/freetype1.old
mv -f /usr/include/freetype/freetype2 /usr/include/freetype/freetype2.old
mv -f /usr/include/freetype /usr/include/freetype.old
mv -f /usr/XR611/include/X11/Xft /usr/XR611/include/X11/Xft.old
rm -dfr /usr/local/include/freetype2
rm -dfr /usr/local/lib/libfreetype*
rm -dfr /usr/local/bin/freetype*
-- -- okay, now your system has been purged from X11's and Freetype's constant bitching. Finally we can get to work - Argh! So, just untar the new 'Freetype-2.1.10' and proceed like the previous little nightmares never happened:
-- Decompress file in directory 'dnld_src'
Code: tar xfvj freetype-2.1.10.tar.bz2
-- re-set Environment Variables as shown in Step-16.
-- Compile in directory 'freetype-2.1.10' .
Code:
cd freetype-2.1.10/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
-- WARNING: if you moved all those older 'X11' and 'Freetype' files around as shown above, then you must move them back when you are FINISHED compiling/building/installing your other stuff. If you don't or if you forget, then you may get some very funky display problems after your next boot-up. The CRITICAL one is 'Xft.' Let's move that one back RIGHT NOW just to make sure you don't end up trashing your system-display-configuration <if this has happened to you, don't panic -- your files are still safe -- read about 'Linux Rescue' below for a quick-n-dirty solution> :
Code:
mv -f /usr/X11R6/include/X11/Xft.old /usr/X11R6/include/X11/Xft
-- HowTo 'Linux Rescue' After Screwing Up Your Graphical User Interface: If you forget, and your display goes haywire when logging on after a fresh boot-up, you'll have to reboot from your Distro CD and run a 'Linux Rescue' -- then move the file as shown above -- then boot normally. Trust me on this folks -- I've beat my head against the wall on this one so many times -- this is simple but critical stuff -- learn from my pain, eh? *wink*
-- now, REMEMBER, if you get 'ft2build.h' include-errors later on while compiling ANYTHING ELSE, you can always 'mv' the old 'Xft' directory to a temporary name/location until after you're done compiling stuff. Just move it back when you're done BEFORE shutting down your system.
The dir under 'dnld_src' where this was compiled may be deleted to save room:
Code:
cd ../
rm -dfr freetype-2.1.10
===============================
STEP-6:
===============================
glib-2.7.0
(compile/install time: [hh:mm] 00:03)
-- Decompress file
Code: tar xfvj glib-2.7.0.tar.bz2
-- re-set Environment Variables as shown in Step-6.
-- Compile in directory 'glib-2.7.0' .
Code:
cd glib-2.7.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 glib-2.7.0
===============================
STEP-7:
===============================
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-17.
-- 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-8:
=================================
libXft-2.1.7
(compile/install time: [hh:mm] 00:08
-- common errors:
-- 1) 'libXft' is NOT 'Xft.' If you did a web-suck and grabbed 'Xft' by mistake, then you're computer will freeze and you will have to re-install your operating system. Only install 'libXft-2.1.7' or newer.
-- 2) Xrender.h not found : This file is part of X11 development. If you have standard X11, then 'X11/extensions' may not exist. Upgrade to a fuller version of 'X11.'
-- 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-9:
===============================
pango-1.9.0
(compile/install time: [hh:mm] 00:04)
-- note: 'pango' and 'gtk' can be rather tempermental to build. See below for common errors and their solutions. I recommend a reboot BEFORE attempting to build pango. Then, do NOT include ANY Environment Variables -- everything it needs should be found -- and it will whine like hell if it doesn't. So, if it errors out during './configure.' looking for 'glib' , then add just ONE Environment Variable, the 'pkgconfig' path variable. If it errors again, add the second variable, 'load lib path,' etc., until it compiles correctly.
-- Decompress file in directory 'dnld_src'
Code: tar xfvj pango-1.9.0.tar.bz2
-- issue the './configure' command; if it runs at all and actually completes, check the last two lines of output very carefully. It MUST say, "backends: FreeType X Xft." If 'Xft' is NOT present, you've got several issues to resolve. See below for the solution. Also, it may SAY 'Xft' was configured, but it will NOT TELL YOU if the version of the Xft-backend came from an old library on your system somewhere, OR the new version you just installed. The old version won't work, and everything you attempt to compile from this point forward will error out looking for 'freetype' stuff -- but everything 'checks out' normally -- then your brain explodes ... after that, your own dog kicks you and pisses on your dead, rotting corpse, and, and, and ... isn't this the last video-game I was working on? Okay, back to reality:
How do I solve this Pango nightmare?!
The 'fix' is so simple, it will make you puke. All that lost time -- so 'solly cholly.' One of these days, I'll contact the Developers at Pango, Freetype, X, X11 and Xft and tell 'em what ALL of their 'configure' scripts should execute automatically for the enduser. Meanwhile, here's the secret 'recipe' that will turn your desktop machine into the workhorse 'genius-in-a-box' you're hoping for:
-- 'mv' the dir 'Xft' to 'Xft.old'. You must be SuperUser. The dir named 'Xft' is usually located here:
Code:
su [enter password]
cd /usr/X11R6/include/X11
mv Xft Xft.old
exit
-- That's it! Simple, eh? Here's why -- ever seen one of these?
-- Common Pango Errors:
-- -- "ft2build.h hasn't been included yet."
-- -- and/or, while compiling 'gtk' :
-- -- "configure: error: Xft Pango backend is required for X11 target."
-- Reason
-- -- there is a 'version-1' of 'Xft' floating around in your system somewhere -- OR -- a wild hair climbed up your system's ass today.
-- Solution: 'mv' the dir 'Xft' to 'Xft.old' -- (see above).
-- now, return to your 'src/pango-1.9.0' dir, then run/rerun './configure' and you will not get any more errors while building things that call 'pango' or 'gtk' or 'freetype' or 'Xft,' etc.).
Code:
./configure
-- AFTER './configure' completes, the last lines should read:
Code:
configuration:
backends: FreeType X Xft
-- note: yes, it may have looked that way before when you got all the errors that made you pull out your hair and bite your nails -- however, THIS time, pango builds the Xft-2 backend, ignoring the old Xft-1, even though stating it's backend is 'Xft' on the last line of the './configure' script's output.
-- Now compile/install as usual:
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 pango-1.9.0
===============================
STEP-10:
===============================
gtk+-2.6.8
(compile/install time: [hh:mm] 00:44)
-- Note: GTK can be tempermental to build. This is almost ALWAYS a Pango-related problem. Pango only builds the Xft backend if Freetype is installed, AND there is NO OTHER 'libXft' version on your system. It must be 'Xft2' (version 2.0.0 or above). If you are getting error messages while compiling GTK+-2.6.8 or other stuff - "Xft Pango Backend Required For X11 Target" , then 'pango' built itself a backend of version-1 'Xft' instead of your new 'Xft2'. See previous step, 'pango,' for the Solution.
-- Note-2: previous versions of 'gtk' did NOT require libCairo' ... however, gtk+-2.7.0 does, as it's still in development as of this writing (July-2005). Do NOT attempt to install the dependencies -- or you'll end up looking for numerous additional/dependent libraries in an endless, hopeless loop. To avoid these endless errors, stay with 'stable' releases of '2.6' until version '2.7' is out of development.
-- Decompress file in directory 'dnld_src'
Code: tar xfvj gtk+-2.6.8.tar.bz2
-- re-set Environment Variables as shown
-- Compile in directory 'gtk-2.6.8' .
Code:
cd gtk+-2.6.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 gtk+-2.6.8
===============================
STEP-11:
===============================
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-12:
================================
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-8.
-- 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-13:
================================
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-8.
-- 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 (optional)
-----------------------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-14:
================================
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-8.
-- 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-15:
===================================
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-8.
-- 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 libpng-1.2.8
================================
STEP-16:
================================
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-8.
-- 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-17:
================================
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-8.
-- Do not try to issue './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.
-- note: answer 'yes' at the prompt during './configure.'[b]
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
================================
[b]STEP-18:
================================
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-8.
-- 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-19:
================================
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-8.
-- 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-20:
===================================
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 b****. 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 "issuening aclocal"
aclocal
echo "issuening $LIBTOOLIZE"
/usr/local/bin/libtoolize --automake
echo "issuening automake"
automake --foreign --add-missing
echo "building configure script"
autoconf
# and finally invoke our new configure
./configure $*
# end
exit
Hit the enter key.
Then, issue './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-21:
================================
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-17.
-- Compile in directory 'Python-2.4.1' .
Code:
cd Python-2.4.1/
./configure --enable-shared
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-22:
================================
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-17.
-- 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-23:
================================
perl-devel-5.9.2
(compile/install time: [hh:mm] 00:06)
-- note: the developer's version, 'perl_devel_5.9.2' is not recommended for install. If you choose to use the developer-version, a bug in the 'sh Configure -de' command line refuses to respond to the '-d' option. So, remove it and use 'sh Configure -Dusedevel' instead. This automates the process of answering about 100 very technical questions.
-- Decompress file in directory 'dnld_src'
Code: tar xfvz stable.tar.gz
-- re-set Environment Variables as shown in Step-17.
-- Compile in directory 'perl-5.9.2' after removing a file. Use the following odd commands:
Code:
rm -f config.sh Policy.sh
sh Configure -Dusethreads -Dusedevel -des
make
-- note: if prompted during 'configure', type in:
Code: &-d
sh Configure -Dusethreads -Duse5005threads
-- and finally install ('make' unnecessary):
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:
-- it may be needed when compiling Gimp if you get an XPM::Parser error when issueing './configure' for Gimp.
=================================
[b]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
-- note: if you have problems compiling librsvg, reboot and try again. If that fails, skip this lib, install the next one, and it may compile yet.
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')
-- copy 'ispell' and 'spell' utilities to '/usr/local/bin' so that programs that call spelling tools know where your new database lives; then exit 'su' :
Code:
cp scripts/ispell /usr/local/bin/
cp scripts/spell /usr/local/bin/
exit
=================================
STEP-27b:
=================================
aspell6-en-6.0.0-0
(compile/install time: [hh:mm] 00:03)
-- Copy aspell-part2 to 'aspell' and Decompress 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
tar xfvz foomatic-filters-ppds-current.tar.gz
-- reset Environment Variables as shown in Step-24
-- compile files in their respective dirs in the order shown:
Code:
cd foomatic-db-20050611/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
cd ../foomatic-db-engine-3.1-20050611/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
cd ../foomatic-db-hpijs-1.5-20050611/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
cd ../foomatic-filters-3.1-20050611/
./configure
make
su <prompt for password>
make install (as 'su' or 'root')
exit
cd ../foomatic-filters-ppds-20050611/
su <prompt for password>
./install
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 foomatic
mv -f *.gz ../
cd ../
rm -dfr foomatic
-- note on Foomatic/Gimp-print/Gimp and that bastard 'Shrub' :
-- How in the world Gimp got into bed with Foomatic is a great Human Mystery. The two do NOT play nicely together. None of the Developers even give a s**t enough to respond to queries concerning their f****d up product inter-relationships. "Oh, we don't support that -- why don't you go over to 'their' website and read a FAQ?" In case you haven't guessed, I'm about as 'negged-out' on BOTH Foomatic AND Gimp AND Gimp-Print as any EndUser can get. Every 'word of mouth' output from between my lips to every single person I will ever meet over the course of my entire life will get an earful about these socially-retarded people and their bulls**t products. If you have the opportunity to support ANYTHING ELSE, do so now and save yourself endless aggravation, not to mention the biggest pain-in-the-ass you'll ever encounter regarding your desktop computer. Hell, I'd rather handle Shrub's Iraq-Quagmire single-handedly. And remember folks, at every chance you get, tell everyone Gimp/Foomatic/Gimp-Print s*cks!!! (So does Shrub!) Die Gimp! Die! Die! Die!
=================================
End Library Compile/installation
-- Proceed to next posts for Gimp, Gimp-print, Gutenprint, Mozilla and Firefox compile/install instructions.
=================================
-----------------------------
UPDATED: typos/commands/dirs
UPDATED: funky BBcode
UPDATED: divided this post into 3 posts. |
|
| Back to top |
|
Pzatchok
Joined: 15 Nov 2004
Posts: 7811
|
| Posted: Fri Jun 03, 2005 8:51 pm Post subject: |
|
|
Considering the genaric stuff works just as fast and in most cases better and faster than anything running on MS I'm happy with pre compiled RPM's.
You have just WAY to much free time on your hands. |
|
| Back to top |
|
Locke25
Joined: 12 Mar 2005
Posts: 3636
Location: St Marys
|
| Posted: Fri Jun 03, 2005 8:54 pm Post subject: |
|
|
I think I just read the most confusing thing in my entire life.....
bravo to anyone who can understand that gibberish! |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Sat Jun 04, 2005 2:18 am Post subject: |
|
|
Automation Script
The following commands will automate the entire process for the first 30 or so libraries, ending after compiling/installing 'foomatic' .
-- NOTE-1: you will be prompted to answer 'yes' around 30-minutes into the script. Just type 'yes,' press 'enter' and it will continue for another 30-minutes or so.
-- NOTE-2: 'tarballs' stored in 'packages' subdir = $HOME/packages; Extract/build subdir is 'src' = $HOME/src. Script begins in '$HOME/src.'
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/"
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/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/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.
######
############################################### |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Sun Jun 05, 2005 2:39 pm Post subject: 2 - Compile order HOWTO Gimp, gimp-print and gutenprint |
|
|
Compile HOWTO Gimp, Gimp-Print, Gutenprint
=================================
STEP-29:
=================================
Gimp-2.2.6 - 2.2.7
(compile/install time: [hh:mm] 01:26)
Do not compile/install Gutenprint before Gimp or you'll have problems. The correct order to install with the correct options is :
Gimp --disable-print
Gimp-Print --with-gimp2
Gutenprint --with-gimp2[/size]
-- preparing to compile/configure/install Gimp is not really complicated but does involve a few extra steps to avoid common errors. Follow these instructions closely and you should not have problems.
-- How in the world Gimp got into bed with Foomatic is a great Human Mystery. The two do NOT play nicely together. None of the Developers even give a s**t enough to respond to queries concerning their f****d up product inter-relationships. "Oh, we don't support that -- why don't you go over to 'their' website and read a FAQ?" In case you haven't guessed, I'm about as 'negged-out' on BOTH Foomatic AND Gimp AND Gimp-Print as any EndUser can get. Every 'word of mouth' output from between my lips to every single person I will ever meet over the course of my entire life will get an earful about these retarded people and their bulls**t products. If you have the opportunity to support ANYTHING ELSE, do so now and save yourself endless aggravation, not to mention the biggest pain-in-the-ass you'll ever encounter regarding your desktop computer. Hell, I'd rather support the Iraq Quagmire single-handedly. And remember folks, at every chance you get, tell everyone Gimp/Foomatic/Gimp-Print s*cks!!! (So does Shrub!) Die Gimp! Die! Die! Die!
1______How To Apply Patches
-- patch-2.2.7 is applied to gimp-2.2.6 as an UPGRADE to become gimp-2.2.7. Do NOT apply patch-2.2.7 to gimp-2.2.7.
-- If you have the previous version of Gimp, which would be Gimp-2.2.6, then you would apply patch-2.2.7 in order to upgrade gimp-2.2.6 TO gimp-2.2.7 -- THEN, recompile/reinstall gimp-2.2.6-7.
-- Both must be decompressed/untarred. Place the patch in the 'dnld_src' directory. Untar 'gimp-2.2.6' and go to the 'gimp-2.2.6' directory. In the 'gimp-2.2.6' directory, apply the patch (which is in the next higher directory) with the following command:
Code:
patch -p1 < ../patch-2.2.7
-- the above would upgrade gimp-2.2.6 to gimp-2.2.7
-- this method of patching may be used to apply most patches.
-- reset Environment Variables with minimal variables but with an explicit declaration of where gdk-pixbuf is located :
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LDFLAGS="-L/usr/local/lib/gtk-2.0 -L/usr/local/lib"
export GDK_PIXBUF_LIBS=/usr/local/lib/gtk-2.0/2.4.0/loaders
export GDK_PIXBUF_CFLAGS=/usr/local/include/gtk-2.0/gdk
-- compile and install Gimp using the following commands (note: the 'disable-print' option is MANDATORY unless you have a previous version of Gimp-print already in place on your system -- regardless, any NEW version of Gimp requires 'disable-print' as a commandline argument to './configure') :
Code:
./configure [b]--disable-print[/b]
-- More Errors?
--
4_____XML::Parser Error
-- ERROR: checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
- this error only occurs with the stable version of Perl. Installing perl-development version will not produce this error.
- while configuring Gimp, you'll need to issue a CPAN module of Perl. You'll know when/if you get an error that reads like this: Error - checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
Here's what to do:
*** Internet connection must be established (modem on and connected) ***
Code:
su <enter password>
perl -MCPAN -e shell
-- 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.
Now you will get a prompt that looks like this '>' .
*** Reminder: 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::Parser
-- okay, it will download some files and install them. Between 5-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.
-- re-configure with the specified option --disable-print -- (we'll activate a new print-function when compiling Gimp-print and Gutenprint in the next two sections.)
-- note: due to a bug somewhere between Python and Gimp, the two do NOT play nice together. As a result, do NOT attempt to '--enable-python' in the ./configure command-line. It will error out looking for 'pygtk-2.0' (which was available in the last Python version) and there is NO work-around that I am aware of at this time -- if you know of one, please let me know.
Warning: to avoid an gdk-pixbuf error : "configure: error: Library requirements (gdk-pixbuf-2.0 >= 2.4.4) not met" ...
-- COMMON ERRORS
-- or, Can't find gdk-pixbuf
-- or, Can't find the new version of GTK (or glib).
-- SOLUTION: Environment incorrectly set for Gimp. Close current shell and open a new one. If you are compiling using 'su,' set environment variables AFTER changing to 'SuperUser' mode (they can change when you issue 'su.') Then, use the Environment Variables shown above where gtk and gdk-pixbuf are explicity stated.
-- use 'make' as usual:
Code:
make
su <prompt for password>
make install (as 'su' or 'root')
exit
=================================
[b] STEP-30:
=================================
Gimp-print-5.0.0-Beta2
(compile/install time: [hh:mm] 00:30)
-- Decompress in 'dnld_src' dir :
Code:
tar xfvj gimp-print-5.0.0-Beta2.tar.bz2
-- re-set Environment Variables as shown in Step-29 .
-- 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 (as 'su' or 'root')
exit
-- Common Errors:
-- You received a long list of errors while installing 'foomatic-db-engine' : Malformed UTF-8 character (unexpected end of string) at -e line 1, <> line 3. This list corresponds to the number of gimp-print errors that look like this: No foomatic printer IDs for gimp-print printer pcl-3', etc. There are about 256 lines in the error lists -- so these are difficult to miss.
-- Solution:
-- there isn't any! This f****d-up program is worthless and so is Gimp-print for 'endorsing' it. They work as well together as icecream and lava. Their 'support' equates to flippant remarks, like, 'anybody that knows anything would know not to ask us what we know.' WTF? Why would you send an EndUser(customer) to go talk to other 'customers' that don't know s**t and have the same questions you have?! They suck! Their product s*cks. Their 'customer service' is nonexistent. Their 'Help' is a farce. Their mission-plan to create a piece of genius-software has quite obviously train-wrecked and they are apparently too incompetently managed to smell the stink when they're standing eyeball-deep in their own s**t. f**k 'em. We 'lowly endusers' are 'meaningless,' right? WTF do you need USERS for, anyway? Retards! :roll:
/rant_OFF!
=================================
STEP-31:
=================================
Gutenprint-5.0.0-Beta4
(compile/install time: [hh:mm] 00:30)
-- Decompress 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 [b]--with-gimp2[/b]
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 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.
Okay, best solution for Foomatic Errors is to DISABLE FOOMATIC on the './configure' command line. Proceed to section, "Sending Hate Mail to Foomatic." Works like a charm. :wink: |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Sun Jun 05, 2005 2:45 pm Post subject: How To Compile Firefox and Mozilla |
|
|
=================================
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 (needed for Aviary but not the trunk)
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 (distribution of builds with this branding is not permitted without permission)
# http://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 (as 'su' or 'root')
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=browser
# optimized build (needed for Aviary but not the trunk)
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 (distribution of builds with this branding is not permitted without permission)
# http://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 (as 'su' or 'root')
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 |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Sun Jun 05, 2005 2:48 pm Post subject: |
|
|
| Next will be a HOW To Compile or Upgrade A New Kernel. |
|
| Back to top |
|
superchick
Joined: 30 Sep 2004
Posts: 6568
Location: US
|
| Posted: Tue Nov 22, 2005 9:35 pm Post subject: |
|
|
| I got lost at the instruction point 27b! |
|
| Back to top |
|
TheCreepyApostate
Joined: 11 Mar 2004
Posts: 19844
Location: Corruptinois
|
| Posted: Tue Nov 22, 2005 9:40 pm Post subject: |
|
|
| Automatix 8) |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Tue Nov 22, 2005 10:04 pm Post subject: |
|
|
Oh, Superchick, sorry, I must have deleted the topic-reply by accident. Sometimes, I do not receive that AT ALL. From another forum, I get very few, if any.
So, Superchick got lost on 27b which is the aspell libraries. I suspect there's a problem with that particular package and you can try downloading a new one and tell me if it works. One of these days, I'll update the download-files list with new addresses and updated file-names.
FCTE: I'm too dumb to know what you meant. |
|
| Back to top |
|
TheCreepyApostate
Joined: 11 Mar 2004
Posts: 19844
Location: Corruptinois
|
| Posted: Tue Nov 22, 2005 11:41 pm Post subject: |
|
|
Tracker wrote: Oh, Superchick, sorry, I must have deleted the topic-reply by accident. Sometimes, I do not receive that AT ALL. From another forum, I get very few, if any.
So, Superchick got lost on 27b which is the aspell libraries. I suspect there's a problem with that particular package and you can try downloading a new one and tell me if it works. One of these days, I'll update the download-files list with new addresses and updated file-names.
FCTE: I'm too dumb to know what you meant.
On Ubuntu Breezy you just download Automatix which downloads everything you could possible need by one click. |
|
| Back to top |
|
George W Bush
Joined: 15 Jun 2005
Posts: 3770
Location: Divided States Of America
|
| Posted: Tue Apr 11, 2006 7:02 pm Post subject: |
|
|
| :shock: This ought to be a sticky. |
|
| Back to top |
|
Tracker
Joined: 02 Dec 2004
Posts: 7665
Location: HeavenOnEarth - PeaceOnEarth, not 'off.'
|
| Posted: Sun Jun 11, 2006 7:24 pm Post subject: |
|
|
I'm attempting to build the latest version of Firefox ...
Thought I'd let that run in background while I go dig erossion-control trenches. It may be done about dark, when I get back. Slow system -- takes a long time to compiles.
This will be the stable version of the 1.5.0.4 -- if I read it recall correctly -- and I'm using the standard developer .mozconfig file for required parameters as shown above.
I'll keep the results posted in this thread. |
|
| Back to top |
|
TheCreepyApostate
Joined: 11 Mar 2004
Posts: 19844
Location: Corruptinois
|
| Posted: Sun Jun 11, 2006 7:54 pm Post subject: |
|
|
I'll I have to do is....
Code: sudo apt-get install <program name>
No sense in wasting my time. |
|
| Back to top |
|
Protostar
Joined: 30 Jul 2004
Posts: 9630
Location: Raleigh, North Carolina
|
| Posted: Mon Jun 12, 2006 10:14 am Post subject: |
|
|
| Well there are vaild reasons for compling from source, such as if the particular program isn't available in an installation package for your particular distro. |
|
| Back to top |
|
TheCreepyApostate
Joined: 11 Mar 2004
Posts: 19844
Location: Corruptinois
|
| Posted: Mon Jun 12, 2006 8:01 pm Post subject: |
|
|
Protostar wrote: Well there are vaild reasons for compling from source, such as if the particular program isn't available in an installation package for your particular distro.
If it ain't in the repos then it ain't important enough for me to have. Obviously it is a worthless program that nobody likes or else it would be there. |
|
| Back to top |
|
| Click here to go to the original topic |
|