Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: ghex
Description: Binary file editor
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# GHex 2.2.1
# ==========
# Slackware 9.0's 'ghex' package includes version 2.2.0 (for Gnome 2.2.x),
# 9.1's includes version 2.4.0.1 (for Gnome 2.4.x)

# As I write this, ghex 2.4.1 and 2.5.2 are also out.  If I ever upgrade
# this machine to Gnome 2.4.x, I'll add at least the 2.4.x version here.

# Prerequisites:
# make
# gcc
# binutils
# fileutils
# perl
# grep
# pkg-config
# libgnomeui-2.0 >= 2.0.0
# libglade-2.0 >= 2.0.0
# libgnomeprintui-2.2
# gail >= 0.17
# gettext
# libpopt
# glib
# gconf

cd
test -f installed/ghex-2.2.1.tar.bz2 && mv installed/ghex-2.2.1.tar.bz2 .
test ! -f ghex-2.2.1.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/ghex/2.2/ghex-2.2.1.tar.bz2

# Verify tarball w/ md5sum:
echo "a10ef7db355d2c7790b5d999d0b3087a" ; md5sum ghex-2.2.1.tar.bz2

cd /usr/local/src
find -type d -maxdepth 1 -name "ghex-*" -exec rm -r {} \;
tar xjvf ~/ghex-2.2.1.tar.bz2
cd ghex-2.2.1
chown -R root.root .

# Patch it to fix a buglet:
wget -nc http://englanders.cc/pub/linux/patches/ghex-2.2.1.patch &&
 patch -p0 < ghex-2.2.1.patch

./configure \
 --prefix=/usr \
 --sysconfdir=/etc \
 --localstatedir=/var/lib
make
removepkg ghex
make install
find /usr/share/locale -type f -name "ghex-2.0.mo" -exec rm {} \;
cd
mkdir -p -m 0700 installed
rm -f installed/ghex-*.tar.*
mv ghex-2.2.1.tar.bz2 installed/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>