linux run aapt error

1. Run aapt:

bash: ./aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

2. Install glibc.i686

yum install glibc.i686

3. Run aapt again

aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

4. Install zlib.i686

yum install zlib.i686

报错: Protected multilib versions: zlib-1.2.7-17.el7.i686 != zlib-1.2.7-15.el7.x86_64

解决:yum install zlib.i686 --setopt=protected_multilib=false

5. Then run aapt

aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

6. Install libstdc++.i686

yum install libstdc++.i686

Still getting an error: Protected multilib versions: libstdc++-4.8.5-28.0.1.el7.i686 != libstdc++-4.8.5-4.el7.x86_64

So use: yum install libstdc++.i686 --setopt=protected_multilib=false

Then an error is reported:

Transaction check error:
  file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.py from install of libstdc++-4.8.5-28.0.1.el7.i686 conflicts with file from package libstdc++-4.8.5-4.el7.x86_64
  file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyc from install of libstdc++-4.8.5-28.0.1.el7.i686 conflicts with file from package libstdc++-4.8.5-4.el7.x86_64
  file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyo from install of libstdc++-4.8.5-28.0.1.el7.i686 conflicts with file from package libstdc++-4.8.5-4.el7.x86_64

Solution: yum update libstdc++-4.8.5-4.el7.x86_64

Run again: yum install libstdc++.i686 The installation is successful

problem solved!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324979440&siteId=291194637