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

前端 未结 11 2642
臣服心动
臣服心动 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

提交回复
热议问题