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

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

    I had the same problem as above and Eclipse suggested installing:

    Hint: On 64-bit systems, make sure the 32-bit libraries are installed:   
       "sudo apt-get install ia32-libs"    
    or on some systems,  
       "sudo apt-get install lib32z1"   
    

    When I tried to install ia32-libs, Ubuntu prompted to install three other packages:

    $ sudo apt-get install ia32-libs  
    Reading package lists... Done  
    Building dependency tree         
    Reading state information... Done  
    Package ia32-libs is not available, but is referred to by another package.  
    This may mean that the package is missing, has been obsoleted, or  
    is only available from another source  
    However the following packages replace it:  
      lib32z1 lib32ncurses5 lib32bz2-1.0  
    
    E: Package 'ia32-libs' has no installation candidate  
    $   
    $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0    
    

    With Android Studio and intellij, I also had to install the 32bit version of libstdc++6:

    sudo apt-get install lib32stdc++6
    

提交回复
热议问题