Create a gelcock collector for inkscape using a volcano

I want to be able to use the inkscape version on the command line ( http://inkscape.org/ ) in my rails application on heroku for some image manipulation, No, imagemagick, etc. They will not do it.

So, I started working on my own buildpack with inkscape as an included binary.

To do this, I installed vulcanization, downloaded the inkscape source and tried to build like this:

curl -L -O http://downloads.sourceforge.net/inkscape/inkscape-0.48.4.tar.gz tar -xzvf inkscape-0.48.4.tar.gz cd inkscape-0.48.4 vulcan build -v -c './configure && make && make install' 

Now, if life were simple, it would be "Just Work", but instead it is a mistake, because the version of "intltool" is too old.

 ./configure: line 5371: intltool-update: command not found checking for intltool >= 0.22... found configure: error: Your intltool is too old. You need intltool 0.22 or later. 

Ok, great, so I'm trying to create this volcano binary to include it as -deps. Now this fails because I need the perl XML :: Parser module. How can I get this perl module?

I poked and I came up a bit, I installed XML :: Parser using cpanminus:

 vulcan build -v -c 'curl -LO http://xrl.us/cpanm && chmod +x cpanm && ./cpanm -v XML::Parser && ./configure && make && make install' 

this gives me the XML :: Parser installed in / app / perl 5, but how can I get it intltool configure?

Very frustrating. Many yaks shaved. Any tips?


UPDATED

I got intltool for the build, and in order to recognize it inkscape configure script, this is what happened:

 vulcan build -p /tmp/intltool -v -c 'curl --silent -L http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib && eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib` && cpanm -n XML::Parser && ./configure --prefix=/tmp/intltool && make && make install' 

After that, gettext became the next dependency, and I also had to build:

 wget ftp://ftp.gnu.org/gnu/gettext/gettext-0.18.2.1.tar.gz tar -xzvf gettext-0.18.2.1.tar.gz cd gettext-0.18.2.1.tar.gz vulcan build -p /tmp/gettext -v -c './configure --prefix=/tmp/gettext && make && make install' 

Now, when I go to build inkscape, things seem to be moving forward - I even calculated the correct syntax for a few --deps , but then stopped using this gettext binary. Here is the compilation command I'm trying to execute:

 vulcan build -p /tmp/inkscape -v -c './configure --prefix=/tmp/inkscape && make && make install' --deps=intltool-build.herokuapp.com/output/1a0ef36b-f134-497d-b970-06896d90f936 gettext-build.herokuapp.com/output/9b9853c0-dfcc-47c8-9d8b-f48e1453026d 

But when configure checks gettext executables, it claims that libgettextsrc-0.18.2.so not found, but I looked in the binary and it is in the correct lib directory

Here is the error (you can see how to configure the intltool binary search correctly, and some of the gettext binaries do not work when using xgettext ):

 checking for intltool >= 0.22... 0.50.2 found checking for intltool-update... /tmp/d20130529-2-9gtra6/deps/bin/intltool-update checking for intltool-merge... /tmp/d20130529-2-9gtra6/deps/bin/intltool-merge checking for intltool-extract... /tmp/d20130529-2-9gtra6/deps/bin/intltool-extract checking for xgettext... /tmp/d20130529-2-9gtra6/deps/bin/xgettext checking for msgmerge... /tmp/d20130529-2-9gtra6/deps/bin/msgmerge checking for msgfmt... /tmp/d20130529-2-9gtra6/deps/bin/msgfmt checking for gmsgfmt... /tmp/d20130529-2-9gtra6/deps/bin/msgfmt /tmp/d20130529-2-9gtra6/deps/bin/xgettext: error while loading shared libraries: libgettextsrc-0.18.2.so: cannot open shared object file: No such file or directory /tmp/d20130529-2-9gtra6/deps/bin/msgmerge: error while loading shared libraries: libgettextsrc-0.18.2.so: cannot open shared object file: No such file or directory /tmp/d20130529-2-9gtra6/deps/bin/msgfmt: error while loading shared libraries: libgettextsrc-0.18.2.so: cannot open shared object file: No such file or directory configure: error: GNU gettext tools not found; required for intltool 

Perhaps my progress will help someone else use the volcano for such pleasure. Any ideas on what happens with binary gettext? Perhaps someone has already started working on a hero / volcano?

+4
source share

Source: https://habr.com/ru/post/1483250/


All Articles