androguard安装和使用 (一)

来源:互联网 发布:php 订单系统设计 编辑:程序博客网 时间:2024/06/02 02:03

这两天在改好google play的crawler之后正式开始折腾androguard了。花了快一下午才在Mac上配置成功。这里说几点安装心得,for Mac OSX 10.9 & python 2.7:

在brew里是无法直接找到以下这些lib的

python-dev python-bzutils libbz2-dev libmuparser-dev libsparsehash-dev python-ptrace python-pygments python-pydot graphviz liblzma-dev libsnappy-dev
许多只能手动装了。其中最麻烦的是parsehash,编译不成功。后来发现brew 里其实有,只是不叫这名。具体解决方法可以参考

https://github.com/Homebrew/homebrew/issues/27652

在此过程中还把brew的permission整坏了,只好参考http://developpeers.com/blogs/fix-for-homebrew-permission-denied-issues 所言修复。

ubuntu下安装就省心多了。只是Ubuntu那远程桌面真是虐心。。。


在使用androdd过程中报错,

pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible

参考http://stackoverflow.com/questions/15951748/pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will解决

pip install pyparsing==1.5.7命令比最高票回答管用。

看图软件Gephi由于不兼容jdk 1.8,只好又装了java 1.6。修改Gephi的contents里的jdkhome使其重定向到java 1.6的目录(在System/Library下)。

btw, NetBeans的IDE如AndroidStudio和Pycharm,默认也不兼容1.8,但只要修改info.plist里1.6*到1.8*即可,无需安装1.6。

本来还打算搞搞国人开发的APKInspecter,再安装好pyqt 后无奈还是问题太多,只好做罢。等回去用Ubuntu试试好了。

pyqt安装照例用brew,但注意如果python不是从brew安装的而是用OSX自带的,则需要做:

you can add the path of PyQt to your PYTHONPATH. In fact, Homebrew will give you the path you will need to export, something along the lines of export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH. Put that in your ~/.bashrc file and you should be good to go.

0 0
原创粉丝点击