How to build static executable dot with all dependencies?
Hi, i want to use graphviz in AWS lambda environment. I can't use package managers, because environment clean all things frequently. So i want to build static executable and place it in source files of my project.
Here is what i have done already:
$ // Rent ec2 instance.
$ // Connect to it using ssh.
$ yum groupinstall "Development tools" // that will install C compiler and delepment tools.
$ sudo yum install cairo-devel pango-devel // that dependencies required for PDF format.
$ wget http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.40.1.tar.gz
$ tar -xvf graphviz-2.40.1.tar.gz
$ cd graphviz-2.40.1
$ ./configure
$ make
$ cd cmd/dot
$ make dot_static
After that i packed dot_static in my Clojure application and call it programmatically. I want to generate pdf files.
Now i receive next error - "/tmp/dot_static: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory"
.
So my question is - is it possible to somehow build lib fully packed with all it dependencies? So that it can be passed as one executable file and can generate pdf files?
Thank you.