Installing libctemplate.so.2 and libzip.so.2 packages on Fedora 16

5

While trying to install a MySql Workbench I am getting the following errors:

Error: Package: mysql-workbench-gpl-5.2.45-1fc17.i686 (/mysql-workbench-gpl-5.2.45-1fc17.i686)
   Requires: libzip.so.2
Error: Package: mysql-workbench-gpl-5.2.45-1fc17.i686 (/mysql-workbench-gpl-5.2.45-1fc17.i686)
   Requires: libctemplate.so.2

How do I install the packages libzip.so.2 and libctemplate.so.2 ? I am using Fedora 16 on 32 bit machine.

saplingPro

Posted 2013-01-10T13:17:17.100

Reputation: 1 101

Answers

1

In general, in Linux, when something asks for libfoo.so.N, the package to install will be libfoo which contains libfoo.so.N. According to the fedora packages database, the libzip package name is libzip. You should be able to install it using yum:

yum install libzip

I could not find a libctemplate package in fedora's repository but you can download an RPM from here which you can then install using rpm:

rpm -i ctemplate-devel-2.0-1.i386.rpm 

terdon

Posted 2013-01-10T13:17:17.100

Reputation: 45 216

libzip package installed fine. But I am not sure if ctemplate installed I took a snapshot of the terminal.I tried the two rpm. One was ctemplate-devel-2.0-1.i386.rpm and the other one ctemplate-2.0-1.i386.rpm – saplingPro – 2013-01-10T16:55:11.213

Looks fine to me. The first command failed because ctemplate-dev needs ctemplate. From what I see in the screenshot, you the proceeded to install ctemplate and then cteplate-dev installed correctly. You can check by running rpm -q ctemplate. Assuming everything is OK, try installing mysql again. – terdon – 2013-01-10T17:11:48.683

it returns ctemplate-2.0-1.i386 – saplingPro – 2013-01-10T17:13:44.540

and I get these when I try re-installing it

– saplingPro – 2013-01-10T17:16:58.000

OK, looks like the devel package (which should contain libctemplate.so.2 was not installed). Is there a specific reason you are not using yum to install mysql-workbench? That should be able to deal with all the dependencies automatically. – terdon – 2013-01-10T17:24:34.063

Actually I am trying to install fedora 17 package in fedora 16..I have tried but it doesn't help

– saplingPro – 2013-01-10T17:43:05.493

In that case you are bound to get all sorts of dependency and version problems. You would probably be better off installing at least some things from source. – terdon – 2013-01-10T19:06:43.670

shall I try to compile and then install the third download using ./configure commands.. ?

– saplingPro – 2013-01-11T04:49:54.767

The problem is that since you are trying to install a package that is newer than your system, it will likely depend on specific versions of libraries that are newer than those available as RPMs for your system. It is those libraries that you may need to install from source. If you install the mysql workbench from source you will run into the same problems as you have with the RPM. Do you really need this specific version of the workbench? Can't you use one that is packaged for fedora 16? Unless you have a specific requirement I would go for the version already packaged for your system. – terdon – 2013-01-11T18:45:06.373

I am unable to find MySql Workbench for fedora 16 – saplingPro – 2013-01-12T06:42:40.120