一半君的总结纸

听话只听一半君

install ida pro 6.5 demo 32bit for linux under Fedora 20

综下所述,想全装就 装 “ia32-libs” 总结好一大堆要装的放txt文件里,高科技方法应该是像这里,用ldd查询需要哪些packages,然后

for i in $(< Fedora-ia32.txt ); do 
    yum -y install $i; 
done

不然就

yum install -y glibc.i686 libstdc++.i686 glib2.i686 freetype.i686 libSM.i686 libXrender.i686 fontconfig.i686 libXext.i686

开./idaq的时候遇到的提示

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

Main Problem:
Trying to execute an 32-bits C based application and it does not find the library /lib/ld-linux.so.2.

Associate Problems:
The 64-bits operating systems have excluded the 32-bits packages during its installation process. So if you are trying to execute third-party binaries you will find the error mentioned above.

Solution:
Install the glibc.i686 package using the following command as root:

    yum install glibc.i686

抄袭自这里

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

Solution

    yum install libstdc++.i686


error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
    yum install glib2.i686

越来越多怎么办,不是说不要装 ia32-libs 么

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

综合...

yum install freetype.i686 libSM.i686 libXrender.i686 fontconfig.i686 libXext.i686

跑题awk实验..
列出所有需要的.so

ldd idaq | grep -v /idademo65/ | awk '$2="=>"{if($3)print $3}'

这个可以查询 file在哪个package里

yum whatprovides /lib/libSM.so.6

Loaded plugins: langpacks, refresh-packagekit
home_tpokorra_mono                                                        67/67
fedora/20/x86_64/filelists_db                            |  27 MB     00:40     
home_tpokorra_mono/filelists                             |  65 kB     00:01     
updates/20/x86_64/filelists_db                           |  13 MB     00:25     
libSM-1.2.1-6.fc20.i686 : X.Org X11 SM runtime library
Repo        : @fedora
Matched from:
Filename    : /lib/libSM.so.6

如何把命令串起来呢?求大神指点

也许用yum-utils package里的 repoquery 会比较简单

repoquery -f libSM.so.6
libSM-0:1.2.1-6.fc20.i686

如果想找到file在哪个已经安了的package里

rpm -qf myfilename
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: