当前位置: 首页 > 工具软件 > Miasm > 使用案例 >

Ubuntu安装miasm

孟英叡
2023-12-01

操作系统版本:Ubuntu 14.04(64位)


安装llvm3.3,注意版本不要错误

Terminal command
$ sudo apt-get install llvm llvm-3.3

安装python-dev

Terminal command
$ sudo apt-get install python-dev

安装llvmpy的非发布包

Terminal command
$ sudo apt-get install python-pip
$ sudo pip install https://pypi.python.org/packages/source/l/llvmpy/llvmpy-0.12.7-9-g60b512d.tar.gz

安装elfesteem

Terminal command
$ git clone https://github.com/serpilliere/elfesteem.git elfesteem
$ cd elfesteem
$ python setup.py build
$ sudo python setup.py install

安装tinycc

首先下载tinycc源码包,不要去官网下载,用下面提供的下载地址下载:
http://repo.or.cz/tinycc.git/snapshot/d5e22108a0dc48899e44a158f91d5b3215eb7fe6.zip

编译时出现如下错误可以忽略:
texi2html -monolithic -number tcc-doc.texi
make: texi2html: Command not found
make: [tcc-doc.html] Error 127 (ignored)
makeinfo tcc-doc.texi
make: makeinfo: Command not found
make: [tcc-doc.info] Error 127 (ignored)

安装时出现如下错误忽略:
install: cannot stat ‘tcc-doc.html’: No such file or directory
make: [install] Error 1 (ignored)

安装成功后会在/usr/local/lib/目录下生成如下3个文件:
libtcc.so
libtcc.so.1
libtcc.so.1.0

Terminal command
$ cd tinycc_directory
$ ./configure --disable-static
$ make
$ sudo make install

安装pyparsing

下载地址如下:
https://launchpadlibrarian.net/290021680/pyparsing_2.1.10+dfsg1.orig.tar.gz

Terminal command
$ cd pyparsing_directory
$ python setup.py build
$ python setup.py install

安装miasm

Terminal command
$ cd miasm_directory
$ python setup.py build
$ sudo python setup.py install

测试

Terminal command
$ cd miasm_directory/test
$ python test_all.py
 类似资料: