关键词: ninja的安装,安装graphviz
一、ninja的安装(三)
要安装ninja。需要预先安装 graphviz及其开发库gtest,git、re2c和python
1.1 Mac终端安装graphviz
1.1.1 it took me some timeto find out how to install graphviz v2.38 on osx 10.11.4 and maybe this ishelpful to others.
1) log in& download Xcode an Xcode Command Line Tools from
https://developer.apple.com/downloads/
2) install Xcode and the XcodeCommand Line Tools
3) agree to Xcode license interminal:
sudo xcodebuild -license
4) get MacPorts pkg installer foryour version of osx from
https://www.macports.org/install.php#installing
5) install MacPorts for yourversion of osx
6) in terminal:
sudo port -v selfupdate
7) install graphvizvia MacPorts. in terminal:
sudo port install graphviz-gui
8) installed guiapplication can befound here: /Application/Macports/Graphviz.app
注:以上方法好像不行,我试了下没成功。
1.1.2 在网上找到另外一种方法,如下:
brew install graphviz
运行结果如下:
重新编译(python ./bootstrap.py),报了个警告如下:
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build.
1.1.3 安装graphviz的第三种方法
http://www.graphviz.org/Download_macos.php
可以下载个pkg安装包,直接双击打开即可。
注:在安装时,可能会提示不是app里面的,不让安装,这在系统偏好设置里,设一下即可。
2016年12月5日星期一