Theos的安装及使用
2018-03-21 本文已影响0人
Just丶Go
一、 安装theos
1.打开终端(terminal)
2.先安装Homebrew
3.brew install ldid
成功后如图
![](https://img.haomeiwen.com/i2571591/0df14d552c635440.png)
4.下载theos 建议最好使用命令行的方式进行下载安装,因为theos内含有一些依赖文件
git clone --recursive https://github.com/theos/theos.git $THEOS
pS:$THEOS
为环境变量,theos下载的目录
配置环境变量的方法如下->
$ ls -al /*找到bash_profile */
$ vim .bash_profile /* 编辑文件 */
$ export THEOS=~/theos /* 加入环境变量 */
$ export PATH=~/theos/bin:$PATH /* 如果不加入这行,theos的命令会无效。 */ /** $PATH 千万不要忘记写或者写错,不然所有的命令都用不了了。如果真这样了请打开这个链接按步骤进行https://zhidao.baidu.com/question/1755826278714933228.html **/
$ :wq /* 保存退出 */
$ source .bash_profile /* 使新添加的环境变量立即生效 */
- 开始使用
新建项目
$ nic.pl
成功如下图
![](https://img.haomeiwen.com/i2571591/ba350a5789cb3f1a.png)
未完... 待整理~~