Skip to content

Instantly share code, notes, and snippets.

@vpiotr
Last active October 9, 2016 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpiotr/a0060aa88bb412dbca759f58b41e03f6 to your computer and use it in GitHub Desktop.
Save vpiotr/a0060aa88bb412dbca759f58b41e03f6 to your computer and use it in GitHub Desktop.
Gnome Commander 1.4 installation procedure

HOWTO: Compile & Install Gnome Commander 1.4 on CentOS 6 From TAR

Introduction

Currently there is no automatic way to install Gnome Commander on CentOS 6. Below you will find instructions how to do that using install from compiled sources. Note that this is not a clean install and some things can be missing - it is always best to use automatic install (if available).

Tested environments

System: CentOS 6.4, CentOS 6.7

Gnome Commander: 1.4.8

Variable parts

This instruction is built for gnome-commander-1.4.8, however if you change the number, it is possible it will work for other versions. In case you want to install another version of GC, please just replace "1.4.8" with a different number.

Check version numbers

To check CentOS version perform:

cat /etc/centos-release

To check Gnome Commander's installed version perform:

yum info gnome-commander

To check available GC versions in your package repository execute command:

sudo yum info gnome-commander\*

If package is installed, this command will show you which version you have. For CentOS 6, it would be for example 1.2.8. Executing "sudo yum update" will not help - GC will be still in old version. If you see version like 1.4.x - probably you have Gnome Commander already updated.

Uninstall old version

Uninstall old version if you have it:

sudo yum remove gnome-commander

This will only uninstall version installed by yum.

Unpack archive

Download Gnome Commander archive from it's home page:

http://gcmd.github.io/

Look for file like:

gnome-commander-1.4.8.tar.xz 

Note the version number, save it to local directory:

mkdir -p ~/Downloads
cd ~/Downloads

wget --no-check-certificate https://download.gnome.org/sources/gnome-commander/1.4/gnome-commander-1.4.8.tar.xz 

# or 
wget ftp://ftp.gnome.org/pub/GNOME/sources/gnome-commander/1.4/gnome-commander-1.4.8.tar.xz   

Unpack & delete the archive:

tar xpvf ~/Downloads/gnome-commander-1.4.8.tar.xz -C ~/
rm ~/Downloads/gnome-commander-1.4.8.tar.xz

Try to compile

Go to unpacked dir

cd ~/gnome-commander-1.4.8

Execute install as in manual:

./configure && make 

Missing packages

If you see error like this:

checking for UNIQUE... no
configure: error: Package requirements ( unique-1.0 >= 0.9.3 ) were not met:

No package 'unique-1.0' found

Execute apropriate install command for missing package. Install only if indicated as required by "configure" command.

For CentOS 6.4:

sudo yum install unique-devel

For CentOS 6.7:

sudo yum install unique-devel
sudo yum install gnome-doc-utils
sudo yum install glib2-devel
sudo yum install gtk+-devel gtk2-devel
sudo yum install libgnomeui-devel

Run setup again

./configure && make

sudo make install DESTDIR=/opt/gnome-commander-1.4

Run

cd /opt/gnome-commander-1.4/usr/local/bin ./gnome-commander

Installation is broken (shared libraries)

If you see this error:

error while loading shared libraries: libgcmd.so.0: cannot open shared object file: No such file or directory

Follow instructions in this section:

Copy libs

sudo mkdir /usr/lib64/gnome-commander
sudo mkdir /usr/lib64/gnome-commander/plugins
sudo cp -r /opt/gnome-commander-1.4/usr/local/lib/gnome-commander/* /usr/lib64/gnome-commander/

Configure libs

sudo ldconfig /usr/lib64/gnome-commander

or

sudo ldconfig /opt/gnome-commander-1.4/usr/local/lib/gnome-commander

Executable is ready in src

Now you should be ready to run GC in /home/{user}/gnome-commander-1.4.8/src:

cd ~/gnome-commander-1.4.8/src ./gnome-commander

If you prefer /opt catalog and you want to finish the installation, follow steps.

Copy pixmaps

Copy them from src catalog:

sudo mkdir /opt/gnome-commander-1.4/usr/local/pixmaps
sudo cp -r ~/gnome-commander-1.4.8/pixmaps/* /opt/gnome-commander-1.4/usr/local/pixmaps

Run again

cd /opt/gnome-commander-1.4/usr/local/bin
./gnome-commander

Now should run without any problems.

Create shortcut

This is optional - if you want to have a desktop shortcut to GC.

Create batch file, open:

sudo nano "/opt/gnome-commander-1.4/usr/local/bin/runme.sh"

Add:

cd /opt/gnome-commander-1.4/usr/local/bin
./gnome-commander
pause

Save & exit

Ctrl+O, Ctrl+X

Add execution rights

sudo chmod +x "/opt/gnome-commander-1.4/usr/local/bin/runme.sh"

Create shortcut to runme.sh

  • Right-click on desktop
  • select "Create Launcher"
  • in "Name" provide your shortcut name like "Gnome Commander"
  • in "Command" provide "/opt/gnome-commander-1.4/usr/local/bin/runme.sh"

Now you should be ready to use Gnome Commander from shortcut.

Fix icons

File and folder icons are not correct (arrows). A workaround for this is to disable them. To perform this:

  • Go to Settings \ Options \ Layout
  • Change "Graphical mode" to "No Icons"

Correct colors

If you don't see selection on files, perform the following:

  • Go to Settings \ Options \ Layout
  • Change "Color scheme" from "Respect theme colors" to anything else

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment