How to install ia32-libs in Ubuntu 14.04 LTS (Trusty Tahr)

前端 未结 11 2592
臣服心动
臣服心动 2020-11-28 18:01

I installed Ubuntu 14.04 (Trusty Tahr) yesterday. Everything seems OK. But when I tried to compile some C code, I encounter the following error. The error seems to be due to

相关标签:
11条回答
  • 2020-11-28 18:37

    You can try this to install the 32-bit library (not all in ia32-libs):

    sudo  apt-get install program:i386
    

    sudo dpkg --add-architecture i386 may be required (if you haven't ever run that).


    Or if you want to install the whole ia32-lib instead, try the following order:

    sudo -i
    cd /etc/apt/sources.list.d
    echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
    apt-get update
    apt-get install ia32-libs
    

    PS: In this way, you can install ia32-libs. However, we add the source of 13.04 instead, so, there may be some unknown problem. After installing ia32-libs, I recommend you to remove the ia32-libs-raring.list in /etc/apt/sources.list.d, and do sudo apt-get update.


    If you want to fix the dependency of Android SDK, you can try this bellow:

    sudo apt-get install -y libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1

    0 讨论(0)
  • 2020-11-28 18:39

    Install gcc multiple library.

    sudo apt-get install gcc-multilib
    
    0 讨论(0)
  • 2020-11-28 18:40

    The best answer I have ever seen is How to run 32-bit applications on Ubuntu 64-bit?

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
    sudo ./adb
    
    0 讨论(0)
  • 2020-11-28 18:41
    sudo -i
    cd /etc/apt/sources.list.d
    echo "deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" >ia32-libs-raring.list
    apt-get update
    apt-get install ia32-libs
    rm /etc/apt/sources.list.d/ia32-libs-raring.list
    apt-get update
    exit
    

    If you are in China, you can modify "raring" to "precise" (for Ubuntu 13.04 (Raring Ringtail) and Ubuntu 12.04 LTS (Precise Pangolin), respectively). I installed Beyond Compare on Ubuntu 14.04 (Trusty Tahr).

    0 讨论(0)
  • 2020-11-28 18:48

    Simply install the 32-bit version of the program, instead of the 64-bit version.

    This is much safer than installing packages that are not intended for the distribution at hand.

    I got this suggestion from the Google Earth installation instructions for Ubuntu 14.04. Google Earth used to employ ia32-libs under 64-bit Ubuntu 12.04.

    Quoting webupd8.org:

    The ia32-libs package is no longer available in Ubuntu, starting with Ubuntu 13.10. The package was superseded by multiarch support so you don't need it any more, but some 64bit packages (which are actually 32bit applications) still depend on this package and because of this, they can't be installed in Ubuntu 14.04 or 13.10, 64bit. [...]

    The "fix" or more specifically the correct way of installing these apps which depend on ia32-libs is to simply install the 32bit package on Ubuntu 64bit. Of course, that will install quite a few 32bit packages, but that's how multiarch works.

    The problem with some programs (like Google Earth) is that the 32-bit package does not support multiarch. Consequently, some 32-bit dependencies need to be installed manually to make the 32-bit version of the program run on Ubuntu 64-bit.

    sudo dpkg --add-architecture i386 # only needed once
    sudo apt-get update
    sudo apt-get install libfontconfig1:i386 libx11-6:i386 libxrender1:i386 libxext6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libsm6:i386
    
    0 讨论(0)
提交回复
热议问题