关于openbsd安装graphviz的问题
我在安装 graphviz 2.29 oj FreeBSD 系统时遇到问题。 ./configure
工作正常,但在 make
之后我看到了:
sftable.c:262: error: 'ptrdiff_t' undeclared
我不熟悉到 FreeBSD,所以我不知道如何处理这个问题。 在我看来,这是一个已知的错误(http://www.graphviz.org/bugs/b1019.html),但没有答案。
请帮忙!
ps: gcc 版本 4.2.1 20070719
FreeBSD 7.3-RELEASE-p2
I'm facing a problem installing graphviz 2.29 oj FreeBSD system../configure
works fine but after make
i see this:
sftable.c:262: error: 'ptrdiff_t' undeclared
I'm not familiar to FreeBSD so i don't know what to do with this issue.
It seems to me that it's a known bug (http://www.graphviz.org/bugs/b1019.html) but there's no answer.
Please, help!
ps: gcc version 4.2.1 20070719
FreeBSD 7.3-RELEASE-p2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安装比移植版本更新的软件的一种方法是更改移植版本(以 graphviz 为例):
编辑
Makefile
并更改PORTVERSION
以匹配您的版本想。注释任何PORTREVISION
并保留PORTEPOCH
。在很多情况下,这很有效,因为端口维护者应用的补丁使事情正常工作,并不总是使其及时上游。如果这不起作用并且您对端口系统的了解很少,您可能想停止,如果不是或渴望学习,则阅读错误并尝试解决它们。
One way to install software that is newer then the port's version is to change the port's version (using graphviz as example):
Edit the
Makefile
and changePORTVERSION
to match the version you want. Comment anyPORTREVISION
and leavePORTEPOCH
alone.In a lot of cases this simply works, because the patches that the port maintainer applies to make things work, don't always make it upstream timely. If this don't work and your knowledge is of the ports system is minimal, you might want to stop, if not or eager to learn, then read the errors and try to resolve them.
好吧,然后尝试添加这一行:
在 sftable.c 文件的顶部。
Well, then try to add this line:
at the top of sftable.c file.