← Previous | ↑Installation TOC | ↑Home | → Next |
You can use the procedure:
./configure
make
make install
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.
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
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
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 |