Menu

Installation on Unix, Linux

← Previous ↑Installation TOC ↑Home → Next

Installation on Linux/Unix

Download the software


Install gxhconvert

Simple installation from source

You can use the procedure:

./configure
make 
make install

Installation using GNU stow

The GNU Stow program can be described as "Something like a package management for /usr/local".

Although the GNU Stow homepage contains a good documentation you should visit the Using GNU Stow to manage source installs page by Danie Roux first for a short introduction.

Create the stow directory if it does not yet exist:

if [ ! -d /usr/local/stow ]
then
    mkdir -p /usr/local/stow
    chmod 755 /usr/local/stow
fi

Configure the software:

./configure --prefix=/usr/local

Build the software:

make

Install the software into the /usr/local/stow/gxhints-1.1.9 directory:

make install prefix=/usr/local/stow/gxhints-1.1.9

Use stow to create symbolic links in /usr/local:

cd /usr/local/stow
stow --no-folding gxhints-1.1.9

Should you decide to take gxhconvert out of the PATH:

cd /usr/local/stow
stow --no-folding --delete gxhints-1.1.9

The above command does not remove the /usr/local/stow/gxhints-1.1.9 directory, it just removes the symbolic links in /usr/local into the /usr/local/stow/gxhints-1.1.9 directory.

Build RPM packages

The procedure here works on Fedora. On EL systems use yum instead of dnf.

As user root install RPM developer tools:

dnf -y install rpm-build rpmdevtools rpmlint

Create rpm directory structure:

if [ ! -d ${HOME}/rpmbuild ]
then
    mkdir -p ${HOME}/rpmbuild
    chmod 755 ${HOME}/rpmbuild
fi
for i in BUILD BUILDROOT RPMS SOURCES SPECS SRPMS
do
    if [ ! -d ${HOME}/rpmbuild/${i} ]
    then
        mkdir -p ${HOME}/rpmbuild/${i}
        chmod 755 ${HOME}/rpmbuild/${i}
    fi
done

Copy gxhints-fedora.spec to ${HOME}/rpmbuild/SPECS

cp gxhints-fedora.spec ${HOME}/rpmbuild/SPECS

Copy source archive to ${HOME}/rpmbuild/SOURCES

cp ../gxhints-1.1.9.tar.gz ${HOME}/rpmbuild/SOURCES

Build the RPM:

cd ${HOME}/rpmbuild/SPECS
rpmbuild -ba gxhints-fedora.spec

As root install the RPM:

cd /.../RPMS/noarch
dnf -y install gxhints-1.1.9-1.fc28.noarch.rpm

Build DEB packages

Unpack the archive.

tar xzf gxhints-1.1.9.tar.gz

Go into the new directory:

cd gxhints-1.1.9

Run script to build the *.deb packages:

./debian-build-deb.sh

The *.deb file is created in the parent directory.

As root install the package:

cd ...
dpkg -i gxhints_1.1.9-1_all.deb

Check for required software

Run

gxhconvert --check

to check for required software.

If some required software is missing, the script tells where to find the missing software.

← Previous ↑Installation TOC ↑Home → Next

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.