doxygen无法使用dot简单解决方法

来源:互联网 发布:windows装mac os双系统 编辑:程序博客网 时间:2024/04/30 01:03
当使用doxygen的时候,dot是一个很重要的工具,在安装后,加载dot时候可能出现如下情况:
$ dot
dot: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
如何解决呢?
很简单,主要是LD_LIBRARY_PATH环境变量没有正确的被设置,我们可以在.bash_profile或者是.bashrc中加入下面两行句子:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:
export LD_LIBRARY_PATH
保存后然后退出,在命令行中输入:
$source ~/.bash_profile
或者是
$source ~/.bashrc
再次运行dot时候,就成功了:-)
原创粉丝点击