How to extract the Android NDK package? -
my os centos 32-bit.
i want extract package 7-zip, install 7-zip rpm without error. when extract ndk package,it doesn't work. this:
[root@localhost ~]# ls anaconda-ks.cfg jni-test android-ndk-r10e-linux-x86.bin p7zip-9.20.1-1.el5.rf.i386.rpm install.log p7zip-plugins-9.20.1-1.el5.rf.i386.rpm install.log.syslog [root@localhost ~]# 7z x android-ndk-r10e-linux-x86.bin 7-zip 9.20 copyright (c) 1999-2010 igor pavlov 2010-11-18 p7zip version 9.20 (locale=zh_cn.utf-8,utf16=on,hugefiles=on,1 cpu) processing archive: android-ndk-r10e-linux-x86.bin error: can not open file archive
according google's official document operation:
[root@localhost ~]# ll 总用量 307344 -rw-------. 1 root root 1096 6月 25 17:41 anaconda-ks.cfg -rwxr-xr-x. 1 root root 309844799 6月 25 21:24 android-ndk-r10e-linux-x86.bin -rw-r--r--. 1 root root 9119 6月 25 17:41 install.log -rw-r--r--. 1 root root 3091 6月 25 17:41 install.log.syslog drwxr-xr-x. 2 root root 4096 6月 25 20:04 jni-test -rw-r--r--. 1 root root 4455529 4月 20 2011 p7zip-9.20.1-1.el5.rf.i386.rpm -rw-r--r--. 1 root root 382577 4月 20 2011 p7zip-plugins-9.20.1-1.el5.rf.i386.rpm [root@localhost ~]# ./android-ndk-r10e-linux-x86.bin 7-zip sfx 9.20 copyright (c) 1999-2010 igor pavlov 2010-11-18 p7zip version 9.20 (locale=zh_cn.utf-8,utf16=on,hugefiles=on,1 cpu) processing archive: ./android-ndk-r10e-linux-x86.bin error: can not open file archive archive errors: 1 [root@localhost ~]# file android-ndk-r10e-linux-x86.bin android-ndk-r10e-linux-x86.bin: elf 32-bit lsb executable, intel 80386, version 1 (sysv), dynamically linked (uses shared libs), gnu/linux 2.6.24, stripped
why?
update: cause of problem md5 value not same.
if it's 7zip format package, can extract 7zip. not, can see format file
command.
$ file android-ndk-r10e-linux-x86_64.bin android-ndk-r10e-linux-x86_64.bin: elf 64-bit lsb executable, x86-64, version 1 (sysv), dynamically linked (uses shared libs), gnu/linux 2.6.24, buildid[sha1]=8c7de897dd2f5d869d108bed2f2152a68b2f7b0a, stripped
from output result above, can see it's elf executable, add executable bit , execute it.
$ chmod u+x android-ndk-r10e-linux-x86_64.bin $ ./android-ndk-r10e-linux-x86_64.bin
it extract directory android-ndk-r10e
under current directory.
Comments
Post a Comment