每次換電腦都得重新安裝所有的環境和軟件,為方便日后再次安裝,特此記錄。
1、安裝 Homebrew
直接打開終端并輸入以下命令
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、安裝 dpkg 和 ldid
brew install dpkg ldid
3、安裝 Theos
把 Theos 安裝在 /opt/theos 目錄下
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
把 /opt/theos 的權限改為自己
sudo chown $(id -u):$(id -g) /opt/theos
把theos的執行路徑加入到環境變量之中,在 ?./ bash_profile 中加上這么兩句,如果沒有 ./bash_profile 文件,那么就用 vim 編輯來創建一個
vim .bash_profile
并且用編輯模式在里面添加兩行
export THEOS =/opt/theos
export PATH =/opt/theos/bin/:$PATH
4、驗證時否安裝成功
cd 到任意可執行目錄輸入以下命令
nic.pl
安裝成功現實如下圖:安裝成功.png
參考文章鏈接:
http://bbs.iosre.com/t/tutorial-install-the-latest-theos-step-by-step/2753
https://github.com/theos/theos/wiki/Installation