Ask Your Question
3

What about 32bit program support on fedora 26 x86_64 installation?

asked 2017-07-17 09:22:36 -0600

masi gravatar image

Just switched from fedora 12 (quite old, I know...) to 26, spin Workstation 64bit. All went fine so far, but obviously there is no support to run 32bit programs. Are there some packages available to install the required libraries? Or do I have to go the IMHO obscure way of installing some multilib stuff from somewhere? Thanks for your help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-07-17 12:49:14 -0600

muep gravatar image

A 64-bit Fedora x86-64 installation can run also 32-bit programs. However, most programs tend to require at least some libraries and by default there are none.

For very simple tools, it may be sufficient to just get the 32-bit glibc:

sudo dnf install glibc.i686

For a gtk3 program, you would need at least gtk3.i686:

sudo dnf install gtk3.i686

So there is a pattern here. DNF can get you either x8664 packages or i686 packages but you get only x8664 by default. So now you might wonder which libraries you need. Usually when you are missing some library, you get an error that includes the missing file. You can usually feed that file name to dnf provides, like this:

$ dnf provides /usr/lib/libgtk-3.so.0
Last metadata expiration check: 22:55:28 ago on Sun Jul 16 21:50:32 2017.
gtk3-3.22.16-1.fc25.i686 : GTK+ graphical user interface library
Repo        : @System

gtk3-3.22.16-1.fc25.i686 : GTK+ graphical user interface library
Repo        : updates

gtk3-3.22.2-2.fc25.i686 : The GIMP ToolKit (GTK+), a library for creating GUIs
                        : for X
Repo        : fedora

$

The 32-bit library files are typically located in /usr/lib/ so you might add that path to the file name that the error gives. Then from the output you can just check the package name and install it while adding that .i686 suffix. No need to add the version.

edit flag offensive delete link more

Comments

Thank you! This is a bit cucumbersome but works step by step

masi gravatar imagemasi ( 2017-07-17 14:01:07 -0600 )edit

Thanks! Adding packages glibc.i686 and libstdc++.i686 solved my particular problem. Think these (and maybe more) should be installed into /usr/lib by the standard installer...

masi gravatar imagemasi ( 2017-07-17 15:37:11 -0600 )edit

Normally when you use software that is properly packaged into RPM packages, you would get all the necessary i686 libraries automatically installed when you install an application from an i686 RPM. It would take a quite big increase in installation media size and initial disk space requirement if these libraries were included in the default package set. Especially if the set has to be big enough to have a good likelihood of hiding this need for separate 32-bit libs entirely.

muep gravatar imagemuep ( 2017-07-17 23:42:30 -0600 )edit

@muep There are several critical packages that can make your system unusable ... it's silly and stupid, say 32bits is 100% capable in a machine of 64bits. It tells you, a person with a little knowledge creating rpms. You can replace easy critical packages. Here a simple problem https://bugzilla.redhat.com/show_bug.... ... Remember your karma is reduced if you downvote ...

davidva gravatar imagedavidva ( 2017-07-18 12:31:57 -0600 )edit

Sure there are limitations in Fedora's dual-architecture setup which often does require that the package versions are identical on corresponding 32-bit and 64-bit packages. Still, the 32-bit support in my experience works really well on 64-bit systems and there are also programs that are badly supported or not available at all for 32-bit x86. Then in addition, level of support for pure i686 Fedora installations is gradually becoming worse because most of the developers and contributors tend to use x86_64. Thus I'd highly recommend that even for users who need some 32-bit-exclusive programs.

muep gravatar imagemuep ( 2017-07-22 03:15:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-07-17 09:22:36 -0600

Seen: 3,926 times

Last updated: Jul 17 '17