Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/graph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugh Perkins <hughperkins@gmail.com>2015-08-08 04:59:25 +0300
committerHugh Perkins <hughperkins@gmail.com>2015-08-08 04:59:25 +0300
commite759be5de947a36eabe1dcf0bde3eeeb3848b4f6 (patch)
tree048f8386e404ce2960c3e97c3e1ebfd3011c4a21
parent83cbda2754268d82d55cca52f44b741d191909fe (diff)
Fix using .dot/graphviz on ubuntu 14.04 64-bit
-rw-r--r--.gitignore2
-rw-r--r--graphviz.lua7
2 files changed, 9 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dc84959
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+build/
+
diff --git a/graphviz.lua b/graphviz.lua
index a30fff6..785e325 100644
--- a/graphviz.lua
+++ b/graphviz.lua
@@ -34,7 +34,14 @@ extern int gvFreeLayout(GVC_t *context, graph_t *g);
extern int gvFreeContext(GVC_t *context);
]]
graphvizOk, graphviz = pcall(function() return ffi.load('libgvc') end)
+ if not graphvizOk then
+ graphvizOk, graphviz = pcall(function() return ffi.load('libgvc.so.6') end)
+ end
+
cgraphOk, cgraph = pcall(function() return ffi.load('libcgraph') end)
+ if not cgraphOk then
+ cgraphOk, cgraph = pcall(function() return ffi.load('libcgraph.so.6') end)
+ end
else
graphvizOk = false
cgraphOk = false