Skip to main content
Submitted by SteveP on Sun, 09/07/2008 - 00:23

I am slightly new to linux and was wondering if there is an example of how to install GalilTools Lite under Linux? I get the error [quote]error while loading shared libraries: libGalil.so.1: cannot open shared object file: No such file or directory [/quote] when trying to lauch GalilTools. I was trying to figure out if I need to add the lib path to the LD_LIBRARY_PATH or how the path needs to be registered?

Comments 14

Galil_AndyH on 09/09/2008 - 18:15

We currently test on Fedora 9, here is the installation procedure for Ubuntu.

**** Instructions for GalilTools versions 1.4.0 and later ****

Download the .deb file from our website and save it to a known location
http://www.galilmc.com/support/downloads/software/galiltools/linux/
~$ sudo su
# dpkg -i galiltools_1.4.0-1_i386.deb
# exit
~$ GalilTools

To install the pci driver, download the pci .tar file from our website and save it to a known location. Before installing the pci driver, install GalilTools (above).
http://www.galilmc.com/support/downloads/software/galiltools/linux/

~$ sudo su
# tar -xzvf galilpci-1.0.0.tar.gz
# cd galilpci-1.0.0
# make
# cp galilpci.ko /lib/modules/`uname -r`
# /sbin/depmod
# /sbin/modprobe galilpci
--Add chmod a+rw /dev/galilpci* to /etc/rc.local
# gedit /etc/rc.local

Reboot PC for changes to rc.local to take effect - or
# chmod a+rw /dev/galilpci*
# exit

--To verify that linux can see the installed pci card
~$ sudo ls /dev/galilpci*
/dev/galilpci0

DMC-18x2 controllers must be Rev D and newer.

**** Instructions for GalilTools versions prior to 1.4.0 ****

Start with installing the latest version of GalilTools.
http://www.galilmc.com/products/software/galiltools.html#pricing

Then follow the steps outlined in the Linux installation of the GalilTools user manual (http://www.galilmc.com/support/manuals/galiltools/introduction.html#lin…), with the following modifications.

Step 1:
user@user-desktop:~$ sudo su
[sudo] password for user:
root@user-desktop:/home/user#

Step 5:
skip [root@localhost lib]# yum install kernel-devel-`uname -p`

Step 6:
root@user-desktop:/home/user/Desktop/Galil/drivers/PciLinux# apt-get install qt4-doc
root@andyh-desktop:/home/user# apt-get install libqt4-gui

Step 10:
skip [root@localhost Galil]# system-config-firewall

You may be able to just run the second additional part of Step 6 to get your version of GalilTools running, but I would recommend using the latest version.

It appears that the standard qt4-doc installation on Ubuntu does not install all of the QT libraries that are used by GalilTools. This is why the libqt4-gui install is required

duckworthd on 08/03/2009 - 03:07

My team has just purchased a Galil Accelera 4080 and as our current OS of choice is Ubuntu, I was wondering how installation related now that all the linux installation archives are in rpm format. I could simply use alien to convert them, though I'm wary of such methods. On the other hand, after extracting the files within the rpm for galiltools light, it seems that there already exists a proper directory hierarchy for copy/pasting into root along with an ldconfig. Can I confirm that any other actions I should take to ensure it's proper usability?

Galil_AndyH on 08/05/2009 - 09:08

We have a .deb on the website. You can find it via the Archive link on the downloads page. You can also use alien to create a .deb file from the .rpm

~$ sudo su
# apt-get install alien
# alien -d galiltools-1.4.0-1.i386.rpm
# dpkg -i galiltools_1.4.0-2_i386.deb
# GalilTools

Here is the link to the .deb file on the web (created from alien).
http://www.galilmc.com/support/downloads/software/galiltools/linux/

Galil_AndyH on 08/28/2009 - 09:43

To install the PCI driver

# tar -xzvf galilpci-1.0.0.tar.gz
# cd galilpci-1.0.0.0
# make
# cp galilpci.ko /lib/modules/`uname -r`
# /sbin/depmod
# /sbin/modprobe galilpci

liujunbeyond on 09/24/2009 - 17:39

Excuse me.
I have a problem in installing the drive program for DMC1842 in Ubuntu Linux.
As I see, Your galiltools_1.4.0-1_i386.deb is just for DMC18x0 or DMC18x6. So I failed to install the drive for DMC1842 under my system.
Please help me, I need the answer badly.
Thanks.

Galil_AndyH on 09/25/2009 - 08:27

GalilTools supports the DMC-1842 controller for board revs D and up. What is the problem you are having?

liujunbeyond on 09/27/2009 - 01:09

[b]I am trying to install the PCI driver for DMC-1842 in my Ubuntu Linux. I was trying to follow such steps:
# tar -xzvf galilpci-1.0.0.tar.gz
# cd galilpci-1.0.0.0
# make

here I come across a problem:
CC [M] /media/ACADEMIC/galilpci-1.0.0/galilpci.o
/bin/sh: cannot create /media/ACADEMIC/galilpci-1.0.0/.galilpci.o.tmp: Directory nonexistent

So, It just stopped installing. I cannot figure out why.

Thanks[/b]

Galil_AndyH on 09/28/2009 - 11:00

This shouldn't be causing any problems. Please e-mail support@galilmc.com with your full terminal log starting with the installation of GalilTools.

Saga on 11/16/2009 - 18:35

Hello,
I have a problem with the PCI driver for a DMC-1802 on Linux Ubuntu. I already have compiled and installed the driver. I Also have installed GalilTools. When I run GalilTools, the PCI driver doesn't appear in the list, I have typed the driver (/dev/galilpci0) manually, but It still does not work and send me the following error:

5002 OPEN ERROR. Galil::Galil() failed to open PCI device /dev/galilpci0

Thanks.

Galil_AndyH on 11/17/2009 - 08:56

If you run GalilTools as su, does controller appear in the connections dialog?

$sudo GalilTools

If so, then add the line
chmod a+rw /dev/galilpci*
to
/etc/rc.local

$sudo gedit /etc/rc.local

You will need to restart the computer after changing rc.local.

If this does not work, review the posts above to make sure you installed the pci driver correctly, and/or e-mail support@galilmc.com with your full terminal log starting with the installation of GalilTools.

liujunbeyond on 11/21/2009 - 19:09

Hello, Andy,
I am using a DMC1842 PCI, But There is no galilpci* file under the /dev/ directory. why?
Thank you.
Jason

Saga on 11/22/2009 - 17:47

Hello,
Here is the terminal log when I installed the galilpci driver and GalilTools. It seems that there is no any problem, but, when I execute GalilTools, it runs, but when I make click to connect to the controller, the software is not working any more. Then I typed the line $sudo chmod a-rw /dev/galilpci0 and opens windows with the driver options, but the galilpci driver does not appear.

miguel@pegasus:~$ mkdir Galil
miguel@pegasus:~$ cd Galil
miguel@pegasus:~/Galil$ wget http://www.galilmc.com/support/downloads/software/galiltools/linux/gali…
--17:56:52-- http://www.galilmc.com/support/downloads/software/galiltools/linux/gali…
=> `galilpci-1.0.0.tar.gz'
Resolviendo http://www.galilmc.com... 66.60.181.130
Conectando a http://www.galilmc.com|66.60.181.130|:80... conectado.
Petici�n HTTP enviada, esperando respuesta... 200 OK
Longitud: 9,981 (9.7K) [application/x-gzip]

100%[=============================================================================================>] 9,981 17.85K/s

17:56:53 (17.82 KB/s) - `galilpci-1.0.0.tar.gz' guardado [9981/9981]

miguel@pegasus:~/Galil$ wget http://www.galilmc.com/support/downloads/software/galiltools/linux/gali…
--17:57:50-- http://www.galilmc.com/support/downloads/software/galiltools/linux/gali…
=> `galiltools_1.4.0-1.i386.deb'
Resolviendo http://www.galilmc.com... 66.60.181.130
Conectando a http://www.galilmc.com|66.60.181.130|:80... conectado.
Petici�n HTTP enviada, esperando respuesta... 404 Not Found
17:57:51 ERROR 404: Not Found.

miguel@pegasus:~/Galil$ wget http://www.galilmc.com/support/downloads/software/galiltools/linux/gali…
--17:58:11-- http://www.galilmc.com/support/downloads/software/galiltools/linux/gali…
=> `galiltools_1.4.0-1_i386.deb'
Resolviendo http://www.galilmc.com... 66.60.181.130
Conectando a http://www.galilmc.com|66.60.181.130|:80... conectado.
Petici�n HTTP enviada, esperando respuesta... 200 OK
Longitud: 25,133,300 (24M) [application/x-troff-man]

100%[=================================================================================================================>] 25,133,300 8.29K/s ETA 00:00

18:54:12 (7.30 KB/s) - `galiltools_1.4.0-1_i386.deb' guardado [25133300/25133300]

miguel@pegasus:~/Galil$ tar xzvf galilpci-1.0.0.tar.gz
galilpci-1.0.0/
galilpci-1.0.0/galilpci-1.0.0.spec
galilpci-1.0.0/test.c
galilpci-1.0.0/Makefile
galilpci-1.0.0/galilpci.c
miguel@pegasus:~/Galil$ cd galilpci-1.0.0/
miguel@pegasus:~/Galil/galilpci-1.0.0$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
Este es software libre; consulte en el c�digo fuente las condiciones de copia.
NO hay garant�a; ni siquiera para MERCANTIBILIDAD o EL CUMPLIMIENTO DE
ALG�N PROP�SITO PARTICULAR.

Este programa fue construido para i486-pc-linux-gnu
miguel@pegasus:~/Galil/galilpci-1.0.0$ make
make -C /lib/modules/2.6.24-rtai-3.6.1/build SUBDIRS=/home/miguel/Galil/galilpci-1.0.0 modules
make[1]: se ingresa al directorio `/usr/src/linux-build-2.6.24-rtai-3.6.1'
CC [M] /home/miguel/Galil/galilpci-1.0.0/galilpci.o
include/asm/io_32.h: En la funci�n �memcpy_fromio�:
include/asm/io_32.h:211: aviso: el paso del argumento 2 de �__memcpy� descarta los calificadores del tipo del destino del puntero
Building modules, stage 2.
MODPOST 1 modules
CC /home/miguel/Galil/galilpci-1.0.0/galilpci.mod.o
LD [M] /home/miguel/Galil/galilpci-1.0.0/galilpci.ko
make[1]: se sale del directorio `/usr/src/linux-build-2.6.24-rtai-3.6.1'
miguel@pegasus:~/Galil/galilpci-1.0.0$ sudo cp galilpci.ko /lib/modules/`uname -r`
[sudo] password for miguel:
miguel@pegasus:~/Galil/galilpci-1.0.0$ sudo /sbin/depmod
miguel@pegasus:~/Galil/galilpci-1.0.0$ sudo /sbin/modprobe galilpci
miguel@pegasus:~/Galil/galilpci-1.0.0$ cd ..
miguel@pegasus:~/Galil$ ls
galilpci-1.0.0 galilpci-1.0.0.tar.gz galiltools_1.4.0-1_i386.deb
miguel@pegasus:~/Galil$ sudo dpkg -i galiltools_1.4.0-1_i386.deb
Seleccionando el paquete galiltools previamente no seleccionado.
(Leyendo la base de datos ...
124439 ficheros y directorios instalados actualmente.)
Desempaquetando galiltools (de galiltools_1.4.0-1_i386.deb) ...
Configurando galiltools (1.4.0-2) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
miguel@pegasus:~/Galil$ sudo ls /dev/galil*
/dev/galilpci0
miguel@pegasus:~$ sudo chmod a-rw /dev/galilpci0
miguel@pegasus:~$ sudo GalilTools

Galil_AndyH on 11/23/2009 - 11:35

Jason,

Follow the directions on post #8163.

davidnavarro on 08/26/2010 - 00:19

Hello

We just got a DMC-1868. I am trying to install it on Ubuntu Lucid. I
could install the Galiltools, however, I am getting this error when
trying to compile the pci driver:

root@david-desktop:/home/david/Galil# dpkg -i galiltools_1.4.0-1_i386.deb
(Reading database ... 205594 files and directories currently installed.)
Preparing to replace galiltools 1.4.0-2 (using galiltools_1.4.0-1_i386.deb) ...
Unpacking replacement galiltools ...
Setting up galiltools (1.4.0-2) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@david-desktop:/home/david/Galil# tar -xzvf galilpci-1.0.0.tar.gz
galilpci-1.0.0/
galilpci-1.0.0/galilpci-1.0.0.spec
galilpci-1.0.0/test.c
galilpci-1.0.0/Makefile
galilpci-1.0.0/galilpci.c
root@david-desktop:/home/david/Galil# cd galilpci-1.0.0
root@david-desktop:/home/david/Galil/galilpci-1.0.0# make
make -C /lib/modules/2.6.32-24-generic/build SUBDIRS=/home/david/Galil/galilpci-1.0.0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-24-generic'
CC [M] /home/david/Galil/galilpci-1.0.0/galilpci.o
/home/david/Galil/galilpci-1.0.0/galilpci.c: In function �EvtIoDeviceControl�:
/home/david/Galil/galilpci-1.0.0/galilpci.c:106: error: �TASK_INTERRUPTIBLE� undeclared (first use in this function)
/home/david/Galil/galilpci-1.0.0/galilpci.c:106: error: (Each undeclared identifier is reported only once
/home/david/Galil/galilpci-1.0.0/galilpci.c:106: error: for each function it appears in.)
/home/david/Galil/galilpci-1.0.0/galilpci.c:106: error: implicit declaration of function �signal_pending�
/home/david/Galil/galilpci-1.0.0/galilpci.c:106: error: implicit declaration of function �schedule_timeout�
/home/david/Galil/galilpci-1.0.0/galilpci.c:108: error: implicit declaration of function �schedule�
/home/david/Galil/galilpci-1.0.0/galilpci.c: In function �EvtInterruptIsr�:
/home/david/Galil/galilpci-1.0.0/galilpci.c:205: error: �TASK_INTERRUPTIBLE� undeclared (first use in this function)
make[2]: *** [/home/david/Galil/galilpci-1.0.0/galilpci.o] Error 1
make[1]: *** [_module_/home/david/Galil/galilpci-1.0.0] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic'
make: *** [default] Error 2
root@david-desktop:/home/david/Galil/galilpci-1.0.0#

Please help me !

Best regards,
David