Ubuntu – Installing 32-bit libbz2.so.1 in 64-bit Ubuntu

32-bit64-bit

I'm trying to install LabView on my computer (Ubuntu 15.04, 64-bit), but I need the 32-bit libbz2.so.1 library, based on these instructions on the NI website and googling elsewhere. However, the link to download getlibs to install it doesn't work, I can't find getlibs anywhere else (all the links are old and broken), and the other option I was considering (ia32-libs) isn't part of Ubuntu anymore. (These instructions were unsuccessful – I still got the error Package 'ia32-libs' has no installation candidate).

How can I get this 32-bit version of the library to install LabView?

Best Answer

The package for libbz2.so.1 is libbz2-1.0. You can check this with the command:

apt-file search libbz2.so.1

Sample output:

% apt-file search libbz2.so.1 
libbz2-1.0: /lib/x86_64-linux-gnu/libbz2.so.1
libbz2-1.0: /lib/x86_64-linux-gnu/libbz2.so.1.0
libbz2-1.0: /lib/x86_64-linux-gnu/libbz2.so.1.0.4

Therefore install the package for 32-bit with the command:

sudo apt-get install libbz2-1.0:i386

The library ia32-libs is no longer in the repositories. Check here.

Related Question