ShowEQ Install for newbies (RedHat 7.1/7.2 edition)
Copyright 2001-2002 Zaphod ([email protected])
------------------------------------------------------------------------
[list]
[*] RedHat 7.1 users, do the following:
Strongly consider upgrading to RedHat 7.2 as I have expanded it's section to cover more issues as well as RedHat 7.2 generally being a better release, but if you choose to stick with 7.1, here's the short form:
[list=1][*] You can receive the required RPMs and dependencies from the following sites: West Coast rpmfind, East Coast rpmfind, or RedHat
binutils-2.11.90.0.8-9.i386.rpm
glibc-2.2.4-13.i386.rpm
glibc-common-2.2.4-13.i386.rpm
glibc-devel-2.2.4-13.i386.rpm
gcc3-3.0.1-3.i386.rpm
gcc3-c++-3.0.1-3.i386.rpm
libgcc-3.0.1-3.i386.rpm
libstdc++3-3.0.1-3.i386.rpm
libstdc++3-devel-3.0.1-3.i386.rpm
[*] Install them using the following commands:
Code:
$ rpm -Uhv glibc-2.2.4-13.i386.rpm glibc-common-2.2.4-13.i386.rpm glibc-devel-2.2.4-13.i386.rpm
$ rpm -Uhv binutils-2.11.90.0.8-9.i386.rpm
$ rpm -ihv gcc3-3.0.1-3.i386.rpm gcc3-c++-3.0.1-3.i386.rpm libgcc-3.0.1-3.i386.rpm libstdc++3-3.0.1-3.i386.rpm libstdc++3-devel-3.0.1-3.i386.rpm
[/list=1]
[*] RedHat 7.2 users do the following:
[list=1][*] Make sure you have the following RPMS installed (list expanded to deal with those who didn't install a development environment):
gcc3
gcc3-c++
libgcc
libstdc++3
libstdc++3-devel
libpcap-0.6.2
zlib
zlib-devel
gdbm-1.8.0
gdbm-devel-1.8.0
gd
gd-devel
kernel-headers
glibc-devel
XFree86-libs-4.1.0
XFree86-devel-4.1.0
cvs
patch
make
m4
libtool
libtool-libs
autoconf
automake
binutils
libpng
libpng-devel
libjpeg
libjpeg-devel
libmng
libmng-devel
freetype
A script that will test if the necessary RPMs are installed can be downloaded from http://www.doomed.to/showeq/checkdeps.sh. Make sure to give the downloaded script execute permissions and run it as follows:
Code:
$ chmod a+x <download_dir>/checkdeps.sh
$ <download_dir>/checkdeps.sh
Replace <download_dir> with wherever you downloaded the script to.
Or You can verify that the RPMs are installed manually using the following commands:
Code:
$ rpm -q gcc3 gcc3-c++ libgcc libstdc++3 libstdc++3-devel |grep not
$ rpm -q libpcap-0.6.2 zlib zlib-devel gdbm-1.8.0 gdbm-devel-1.8.0 gd gd-devel kernel-headers |grep not
$ rpm -q glibc-devel XFree86-libs-4.1.0 XFree86-devel-4.1.0 |grep not
$ rpm -q cvs patch make m4 libtool libtool-libs autoconf automake binutils |grep not
$ rpm -q libpng libpng-devel libjpeg libjpeg-devel libmng libmng-devel freetype | grep not
If nothing is listed as not installed then skip to "Installing Qt".
[*] Find any missing RPMs
The follwoing RPMS are found on RedHat 7.2 CD 1: libpcap gdbm kernel-headers XFree86-libs-4.1.0 make m4
The following RPMS are found on RedHat 7.2 CD 2: gcc3 gcc3-c++ libgcc libstdc++3 libstdc++3-devel zlib-devel gdbm-devel gd-devel glibc-devel XFree86-devel-4.1.0 cvs patch autoconf automake binutils libpng-devel libjpeg-devel libmng-devel
All the RPMs can be retrieved from the following sites if you don't have the RedHat 7.2 CD's: West Coast rpmfind, East Coast rpmfind, or RedHat
[*] Install missing RPMs available from the RedHat 7.2 CD 1
Insert the RedHat 7.2 CD 1 cd into the CDROM drive, then issue the following commands:
Code:
$ mount /mnt/cdrom
$ cd /mnt/cdrom/RedHat/RPMS/
$ rpm -ihv kernel-headers-2.4.7-10.i386.rpm XFree86-libs-4.1.0-3.i386.rpm gdbm-1.8.0-10.i386.rpm zlib-1.1.3-24.i386.rpm
$ rpm -ihv m4-1.4.1-5.i386.rpm make-3.79.1-8.i386.rpm libtool-libs-1.4-8.i386.rpm libpcap-0.6.2-9.i386.rpm
$ rpm -ihv gd-1.8.4-4.i386.rpm libjpeg-6b-16.i386.rpm libmng-1.0.2-1.i386.rpm libpng-1.0.12-2.i386.rpm freetype-2.0.3-7.i386.rpm
$ cd /
$ eject cdrom
If you are not missing any other files, proceed to "Installing Qt"
[*] Install missing RPMs available from the RedHat 7.2 CD 2
Insert the RedHat 7.2 CD 2 into your CDROM drive, then issue the following commands:
Code:
$ mount /mnt/cdrom
$ cd /mnt/cdrom/RedHat/RPMS/
$ rpm -ihv gcc3-3.0.1-3.i386.rpm gcc3-c++-3.0.1-3.i386.rpm libgcc-3.0.1-3.i386.rpm libstdc++3-3.0.1-3.i386.rpm libstdc++3-devel-3.0.1-3.i386.rpm
$ rpm -ihv autoconf-2.13-14.noarch.rpm automake-1.4p5-2.noarch.rpm binutils-2.11.90.0.8-9.i386.rpm cvs-1.11.1p1-3.i386.rpm
$ rpm -ihv libtool-1.4-8.i386.rpm patch-2.5.4-10.i386.rpm
$ rpm -ihv gdbm-devel-1.8.0-10.i386.rpm gd-devel-1.8.4-4.i386.rpm glibc-devel-2.2.4-13.i386.rpm
$ rpm -ihv XFree86-devel-4.1.0-3.i386.rpm zlib-devel-1.1.3-24.i386.rpm
$ rpm -ihv libjpeg6a-6a-8.i386.rpm libjpeg-devel-6b-16.i386.rpm libmng-devel-1.0.2-1.i386.rpm libpng-devel-1.0.12-2.i386.rpm
$ cd /
$ eject cdrom
If there weren't any errors, the required RPMs are now installed.
[/list=1]
[*] Installing Qt
You have two options here either download the RPM's I've made available or download and compile Qt yourself.
- Installing Qt using the RPMs I've provided
You need to get the Qt 2.3.2 RPMs compiled with Gcc3 for Redhat 7.1/7.2. They are available at http://www.doomed.to/showeq and ftp://azriel.trifocus.net/pub/redhat. The specific RPMs you need for ShowEQ are qt-gcc3-2.3.2-1.i386.rpm and qt-gcc3-devel-2.3.2-1.i386.rpm.
To install the RPMs use the following command:
Code:
rpm -ihv qt-gcc3-2.3.2-1.i386.rpm qt-gcc3-devel-2.3.2-1.i386.rpm
These RPMs install Qt under /opt/qt-gcc3-2.3.2. I have provided a script /opt/bin/useqt232 that can be sourced to set the appropriate environment variables to compile ShowEQ with this copy of Qt. You source the script as follows:
Code:
$ . /opt/bin/useqt232
- Installing and compiling Qt 2.3.2
If you have not already done so, download the sources to qt-2.3.2 from ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.2.tar.gz, the patch attached to this post (also found at http://www.doomed.to/showeq/qt-2.3.2-gcc3.patch). Then download the handy dandy shell script I provide for setting the Qt related environment variables from http://www.doomed.to/showeq/useqt232 and save it under the /opt/bin diretory (making an /opt/bin directory if necessary).
To compile qt-2.3.2 using the 3.x compiler from the RedHat RPMS do the following (in order):
Code:
$ cd /opt
$ gtar xzvf <download_dir>/qt-x11-2.3.2.tar.gz
$ gunzip -c <download_dir>/qt-2.3.2-gcc3.patch | patch -p 0
$ mv qt-2.3.2 qt-gcc3-2.3.2
$ cd qt-gcc3-2.3.2
$ . /opt/bin/useqt232
$ configure -release -shared -gif -xft -sm -system-libmng -system-zlib -system-libpng -system-jpeg -no-g++-exceptions -thread
$ make
Replace <download_dir> with wherever you downloaded the files to. You also might want to put the environment variable setting stuff into a shell script for later reuse. [/list=1]
The options to configure are more or less taken from the qt.spec file from the RedHat qt-2.3.1 SRPM, the main option that is really needed is -thread.
- Get libEQ.a
Download the libEQ.a file from ftp://smurfette.trifocus.net/pub/libeq/i386/linux (with md5sum4e9d9772132fc63ea8860cc2fdb2905d ) and place it in your /usr/local/lib directory.
- ShowEQ getting, configuring and compiling
After you have successfully installed/compiled qt-2.3.2 (using the g++ 3.x compilers and the -thread configuration option) and installed libEQ.a you can get ShowEQ and configure it by doing the following (where <yourdir> is where you want to put the ShowEQ sources):
Code:
$ cd <yourdir>
$ export CVSROOT=:pserver:[email protected]:/cvsroot/seq
$ cvs login
Hit enter when prompted for a password
$ cvs checkout showeq
$ cd showeq
$ . /opt/bin/useqt232
$ export CXX=g++3
$ export CC=gcc3
$ make -f Makefile.dist
$ ./configure
Then do make as usual:
su to root, and install ShowEQ
Code:
$ su
Enter your linux systems root password
$ make install
If this is your first time using a new version of showeq, make sure to either update your showeq.conf file based on showeq.conf.dist or create a showeq.conf file based on it. Typically you put the resulting showeq.conf under /usr/local/share/showeq/ .
To run the resulting binary, su to root, and then run showeq (you can add command line options to suit):
And theoretically, if you did everything correctly and I didn't have too many typos ShowEQ should run as expected.
Note, since a recent patch, you no longer have to set environment variables to run the ShowEQ executable. So do not put the environment variable stuff into your .profile, .bashrc, .cshrc, or .login files as doing so may break KDE.
Using this procedure you do not have to uninstall anything, nor change any links manually.
I hope this helps.
Enjoy,
Zaphod (dohpaZ)
P.S. The copyright notice at the top is mainly to put unscrupulous guide writers on notice not to copy this into their guides and sell them. ;)