방금 ruby-graphviz gem (http://github.com/glejeune/Ruby-Graphviz)을 사용해 보았습니다. 지침 (Graphviz, gem 및 종속성 설치)을 따라 Github 페이지에서 예제를 시도했습니다. 불행히도 출력 이미지 (png, 점)를 렌더링 할 수 없습니다.Ruby-Graphviz가 PNG를 렌더링하지 않습니다.
# Create a new graph
g = GraphViz.new(:G, :type => :digraph)
# Create two nodes
hello = g.add_node("Hello")
world = g.add_node("World")
# Create an edge between the two nodes
g.add_edge(hello, world)
# Generate output image
g.output(:png => "hello_world.png")
콘솔에서 스크립트를 실행할 때 오류 메시지가 나타나지만 예상대로 출력되지 않습니다.
무엇이 문제 일 수 있습니까? 폴더는 모든 사람에게 읽기/쓰기 권한이 있습니다.
미리 감사드립니다. Mac (Leopard 10.6)에서 작업하고 있습니다. MacPorts를 통해은 GraphVIZ 설치