Installing packages by library name -- how to get 64-bit?

General support questions
Post Reply
Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Installing packages by library name -- how to get 64-bit?

Post by Whoever » 2014/04/24 02:44:02

I would like to install a package by library name, however it always seems to select the 32-bit version. Is there any way to get yum to install the 64-bit version? For example:

Code: Select all

# yum install libQtSql.so.4
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
epel/metalink                                                                                                                              | 5.8 kB     00:00     
 * epel: mirror.west.ig2ad.com
 * rpmforge: mirror.webnx.com
base                                                                                                                                       | 3.7 kB     00:00     
epel                                                                                                                                       | 4.4 kB     00:00     
epel/primary_db                                                                                                                            | 6.1 MB     00:01     
extras                                                                                                                                     | 3.4 kB     00:00     
updates                                                                                                                                    | 3.4 kB     00:00     
updates/primary_db                                                                                                                         | 2.6 MB     00:00     
Setting up Install Process
Package 1:qt-4.6.2-28.el6_5.i686 already installed and latest version
The machine runs 64-bit CentOS:

Code: Select all

# uname -a
Linux <hostname>  2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Installing packages by library name -- how to get 64-bit

Post by gerald_clark » 2014/04/24 03:36:20

You can't install a library that way.

run
yum provides \*/libQtSql.so.4

Then yum install the indicated package.

You also have conflicting repositories installed and have not installed and configured priorities.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing packages by library name -- how to get 64-bit

Post by TrevorH » 2014/04/24 07:17:48

If you know what it's called then you can use

Code: Select all

yum install 'libQtSql.so.4()(64bit)'
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply