第22篇 ninja的安装(三)及安装graphviz

关键词: ninja的安装,安装graphviz

一、ninja的安装(三)

要安装ninja。需要预先安装 graphviz及其开发库gtestgitre2cpython

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日星期一


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值