On 06/12/2007, Kobayashi Noritada wrote: > Hi graphviz maintainer, Hi,
> Thank you for shipping packages of the bindings, which may provide > nice interface for light-weight language programmers. 'welcome. ;-) > However, it seems libgv-ruby is completely broken. I tried to run a > demo script in the source package, but failed: > > noritada[0:24]% find . -name "*.rb" > terra:~/tmp/pkg/graphviz-2.12 > ./config/config_ruby.rb > ./tclpkg/gv/demo/modgraph.rb > noritada[0:24]% ruby tclpkg/gv/demo/modgraph.rb > terra:~/tmp/pkg/graphviz-2.12 > tclpkg/gv/demo/modgraph.rb:7:in `require': no such file to load -- gv > (LoadError) > from tclpkg/gv/demo/modgraph.rb:7 Upstream sources are assuming some stuff about the locations of the installed files, which results in having some tweaks to have the examples working. > I find that the so file is installed in /usr/lib/graphviz/ruby, which > is not the default library search path for Ruby, and that the file is > not named as gv.so, which is checked by Ruby when users wrote "require > 'gv'": Did you also check “man gv_ruby”? The needed tweak (at the moment) is documented there. > So, I think you should install /usr/lib/ruby/1.8/gv.so, which is a > symlink to this file. You did the job at least for lua ;-) As far as I remember, I prepared some of the 2.12-* uploads during DebConf'07, and a ruby policy was pending. That's why I didn't apply any modification to the ruby package until now. I've got to check whether such a policy is available now… I hope the tweak mentioned in gv_ruby.3 will suit your needs until I do what's needed. I'll probably include further bindings modifications into the 2.16-* uploads to experimental (2.16-2 is there already). I've got some C++ linking errors to solve at the same time. > (SWIG just provides low-level interface with script languages. > Ideally, a higher-level interface should be built on this interface > and that interface should be shipped as /usr/lib/ruby/1.8/gv.rb > instead of /usr/lib/ruby/1.8/gv.so. However, such a interface does > not seem to be available for Graphviz so far...) Feel free to send patches upstream, they love including them. ;-) > Many thanks! You're welcome. Thanks for the comments and the reminder (I must confess I forgot a bit about the ruby binding). Cheers, -- Cyril Brulebois
pgpYTsYFTKFAH.pgp
Description: PGP signature