存档

2009年3月 的存档

使用Graphviz遇到的一个错误

2009年3月2日

在使用段老师给的seems.tar.gz时,发现系统无法描绘出path的路径图像。

运行dot生成图像时提示:
Error: Layout was not done. Missing layout plugins

解决办法,由root运行dot -c一次即可。

Its is looking for its plugins at runtime in the location
/usr/lib/graphviz/ (or /usr/lib64/graphviz/ on 64bit machines),
where the prefix, “/usr”, is set at ./configure time or at install-time.

So dot is not run-time relocatable in the way you are trying. It is
install-time relocatable, but that requires root access.

/usr/lib/graphviz/config is created at install-time, by running “dot
-c” as root. It is a record of the plugins found in
/usr/lib/graphviz/libgvplugin-*

wenzk 未分类 ,

date在时间转换上不同版本的差异

2009年3月2日

# date –version
date (coreutils) 5.2.1
Written by David MacKenzie.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@node40 data]# date +%s
1235955408
# date -d @1235955408
date: invalid date `@1235955408′
# date -d “1970-01-01 UTC 1235955408 seconds”
Mon Mar 2 08:56:48 CST 2009

$ date –version
date (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License .
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.
$ date -d @1235955408
Mon Mar 2 08:56:48 CST 2009
$ date -d “1970-01-01 UTC 1235955408 seconds”
Mon Mar 2 08:56:48 CST 2009

wenzk 未分类