1.在安裝Theos之前象泵,先安裝dpkg和ldid
我們使用Homebrew來(lái)安裝琼腔,如果沒有安裝Homebrew瑰枫,在終端輸入:
/usr/bin/ruby -e "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)”
如果安裝了Homebrew,直接跳過(guò)這一步
2.在終端輸入brew install dpkg丹莲,安裝dpkg
3.在終端輸入brew install dpkg ldid光坝,安裝ldid
4.安裝Thoes,在終端輸入:
sudo git clone --recursivehttps://github.com/theos/theos.git/opt/theos
5.然后把/opt/theos的權(quán)限改成你自己:
sudo chown $(id -u):$(id -g) /opt/theos
最后這一步也很重要甥材,要把theos的執(zhí)行路徑加入到環(huán)境變量之中教馆,?在終端輸入open ~/.bash_profile ,在打開的~./bash_profile中加上這么三句:
export THEOS=/opt/theos
export PATH=$THEOS/bin:$PATH
export THEOS_DEVICE_IP=example.local THEOS_DEVICE_PORT=22
加完以后,command+s一下擂达,然后在在終端輸入source .bash_profile
6.然后在終端執(zhí)行:nic.pl, ?顯示如下則安裝成功