2

When I try to install MySql Workbench using the yum command :

yum install mysql-workbench-gpl-5.2.45-1fc17.i686.rpm

I get these errors :

Error: Package: mysql-workbench-gpl-5.2.45-1fc17.i686 (/mysql-workbench-gpl-5.2.45-1fc17.i686)
       Requires: /bin/python
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
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

What are these errors and what do I do to install this MySql GUI tool ?

2
  • What Linux distribution are you using? Jan 9, 2013 at 16:01
  • @MichaelHampton Fedora 16. I also tagged fedora
    – Y.E.P
    Jan 10, 2013 at 11:56

3 Answers 3

1

You're trying to install a package for Fedora 17 on Fedora 16. This isn't guaranteed to work, since the package versions for the package's dependencies may change from one version to the next. These dependencies do exist on my Fedora 17 box, though at least one of them appears to be different or missing on Fedora 16.

You have three options:

  1. The preferred option: Upgrade to Fedora 17 or Fedora 18 (which is being released a few days from now). Fedora 16 will be EOL'd a month after the release of Fedora 18. After upgrading, you can then install the package.

  2. Find the equivalent RPM for Fedora 16 and install it.

  3. If no such RPM exists, rebuild the package on your system from the source RPM.

1

Install the mysql-workbench available from the standard Fedora 16 repositories:

yum install mysql-workbench
...
Installed:
  mysql-workbench.x86_64 0:5.2.45-1.fc16      
1

It tells you that no python is installed on the system since the /bin/python is missing.

  1. Install python or create a symbolic link to existing python installed location.

    ln -s /usr/bin/python /bin/python
    
  2. Use yum whatprovides libzip.so.2 and see what package provides this library. Same for the other library

NOTE: You should install the .rpm package using the RPM package manager command and not yum. e.g.

rpm -Uvh mysql-workb....rpm

-U is for update, -I for install

11
  • what difference does it make if I use yum or rpm to install rpm package ?
    – Y.E.P
    Jan 9, 2013 at 17:13
  • Yum queries the dependencies of a certain package. It's the law that says: .rpm packages are installed/deployed using Redhat Package Manager. If you wanted to use yum, don't add the version and the .rpm extension just yum install mysql-workbench-gpl It will then search for all required dependencies and install them along with the mysql-workbench. This is preferrable of course. Jan 10, 2013 at 8:36
  • On entering the command it gives me this message : No package mysql-workbench-gpl available. Error: Nothing to do What do I do now ? !
    – Y.E.P
    Jan 10, 2013 at 12:22
  • You need to get mysql-workbench-gpl from mysql website. But to install it you need other dependencies which is python. First install python using yum and then those other 2 libraries. E.g. yum install python2.7 To install packages which provide those two libraries you run yum whatprovides *libzip.so.2* and yum whatprovides *libctemplate.so.2* After performing these steps last thing to do is rpm -Uvh mysql-workbench-gpl-5.2.45-1fc17.i686.rpm Jan 10, 2013 at 12:35
  • I have installed python from the tgz package. first unpacking it,then running the ./configure command,then make and finally make install command. I see the same message again. There was already python 2.7 installed. I installed 3.3 now
    – Y.E.P
    Jan 10, 2013 at 13:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .