Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用vulcan为inkscape制作heroku构建包_Heroku_Vulcan - Fatal编程技术网

使用vulcan为inkscape制作heroku构建包

使用vulcan为inkscape制作heroku构建包,heroku,vulcan,Heroku,Vulcan,我希望能够在heroku上的rails应用程序中使用inkscape()的命令行版本进行一些图像处理。不,imagemagick等不行 因此,我开始使用inkscape作为包含的二进制文件开发自己的构建包 为此,我安装了vulcan,下载了inkscape源代码,并尝试如下构建: curl -L -O http://downloads.sourceforge.net/inkscape/inkscape-0.48.4.tar.gz tar -xzvf inkscape-0.48.4.tar.gz

我希望能够在heroku上的rails应用程序中使用inkscape()的命令行版本进行一些图像处理。不,imagemagick等不行

因此,我开始使用inkscape作为包含的二进制文件开发自己的构建包

为此,我安装了vulcan,下载了inkscape源代码,并尝试如下构建:

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' 
现在,如果生活是简单的,这将“只是工作”,但它会出错,因为“intltool”的版本太旧了

./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.
好的,我开始尝试用vulcan构建二进制文件,将其包含为--deps。 现在失败了,因为我需要一个perl模块XML::解析器。 我该怎么安装这个perl模块呢

我四处看看,再走近一点,我用cpanminus安装了XML::Parser:

vulcan build -v -c 'curl -LO http://xrl.us/cpanm && chmod +x cpanm && ./cpanm -v XML::Parser && ./configure && make && make install'
这会让我将XML::Parser安装到/app/perl5,但是如何让intltool配置在那里找到它呢

非常令人沮丧。许多牦牛刮胡子。有什么建议吗


已更新

我让intltool进行构建,并被inkscape
configure
脚本识别,以下是最终有效的方法:

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'
在此之后,gettext是下一个依赖项,我还需要构建这个依赖项:

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'
现在,当我开始构建inkscape时,事情似乎进展得很顺利——我甚至为多个
--deps
找到了正确的语法,但后来却迟迟不使用这个gettext二进制文件。下面是我正在尝试的compile命令:

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
但是当configure开始检查gettext可执行文件时,它声明了
libgettexsrc-0.18.2。因此没有找到
,但我已经查找了二进制文件,它在正确的lib目录中

下面是错误(您可以看到configure正确查找intltool二进制文件,一些gettext二进制文件在使用
xgettext
时失败):

也许我的进步会帮助其他人使用vulcan来获得这种乐趣。
有没有关于gettext二进制文件的想法?也许有人已经在heroku/vulcan上解决了这个问题?

你解决了吗?没有。接着使用phantomjs将svg渲染为png,png已经有了一个构建包。一个星期以来,我一直在用键盘敲击我的头,现在正试图将Inkscape放到Heroku上。这里有一些其他旅行者的资源。如果我能让它工作,我会回答的-
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