Note on Installing Kannel on Centos4.2

I encountered a problem when tried to install kannel on centos4.2. The kannel package is available from dag repository.

This is my dag.repo:
#dag
[dag] name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

When I yum install kannel, it got error:
Setting up Install Process
Setting up repositories
dag                       100% |=========================| 1.1 kB    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 1.4 MB    05:06
dag       : ################################################## 3871/3871
Added 3871 new packages, deleted 0 old in 87.35 seconds
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for kannel to pack into transaction set.
kannel-1.4.0-3.2.el4.rf.i 100% |=========================| 6.5 kB    00:00
—> Package kannel.i386 0:1.4.0-3.2.el4.rf set to be updated
–> Running transaction check
–> Processing Dependency: libsqlite.so.0 for package: kannel
–> Finished Dependency Resolution
Error: Missing Dependency: libsqlite.so.0 is needed by package kannel

From the Centos list, someone encountered similar problem, but he got it when he wanted to upgrade from centos4.1 to 4.2. Mine is installing on 4.2.

So, since the error is only regarding missing library, and since he said that sqlite from different version can be installed along side, I made a decision to force install sqlite from dag:
rpm -ivh –force sqlite-2.8.16-1.2.el4.rf.i386.rpm
Preparing…                ########################################### [100%]
   1:sqlite                 ########################################### [100%]

In /usr/lib, now there is the needed library: libsqlite.so.0.

And then I used yum to install kannel:
Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kannel                  i386       1.4.0-3.2.el4.rf  dag               1.1 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): kannel-1.4.0-3.2.e 100% |=========================| 1.1 MB    01:26
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kannel                       ######################### [1/1]

Installed: kannel.i386 0:1.4.0-3.2.el4.rf
Complete!

Then I plugged the gsm modem in:

Mar 20 17:12:43 server-mail kernel: usb 3-1: new full speed USB device using address 2
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
Mar 20 17:12:44 server-mail kernel: usbcore: registered new driver usbserial_generic
Mar 20 17:12:44 server-mail kernel: usbcore: registered new driver usbserial
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for PL-2303
Mar 20 17:12:44 server-mail kernel: pl2303 3-1:1.0: PL-2303 converter detected
Mar 20 17:12:44 server-mail kernel: usb 3-1: PL-2303 converter now attached to ttyUSB0
Mar 20 17:12:44 server-mail kernel: usbcore: registered new driver pl2303
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.11

So far so good….

Leave a Reply

Your email address will not be published.