在非标准环境中安装编译的二进制文件


1

我正在尝试在托管帐户中安装GraphicsMagick ...

我使用此信息来使其在大多数情况下都能正常工作:

如何指定二进制库的位置?(Linux)的

但是,它仍然找不到该错误所见证的delegates.mgk(位于./lib/GraphicsMagick-1.3.14/delegates.mgk中):

gm-bin convert: Unable to access configuration file (delegates.mgk) [No such file or directory].

或者,a)如何找出二进制文件认为该文件应该在的位置,或者b)如何扩展包装器脚本以帮助解决该问题?

Answers:


2

浏览完/ PATH /的二进制文件后,找出来

二进制文件需要以下其他路径变量:

$MAGICK_CONFIG_PATH
$MAGICK_CODER_MODULE_PATH
$MAGICK_FILTER_MODULE_PATH

...这是从我的设置中得到的脚本修改:

#!/bin/sh
if [ -n "$LD_LIBRARY_PATH" ]; then
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/USER/lib
else
  LD_LIBRARY_PATH=/home/USER/lib
fi
[ -z "${MAGICK_CONFIGURE_PATH}" ] && export MAGICK_CONFIGURE_PATH=/home/USER/lib/GraphicsMagick-1.3.14/config
[ -z "${MAGICK_CODER_MODULE_PATH}" ] && export MAGICK_CODER_MODULE_PATH=/home/USER/lib/GraphicsMagick-1.3.14/modules-Q8/coders
[ -z "${MAGICK_FILTER_MODULE_PATH}" ] && export MAGICK_FILTER_MODULE_PATH=/home/USER/lib/GraphicsMagick-1.3.14/modules-Q8/filters
export LD_LIBRARY_PATH
exec /home/USER/bin/gm-bin "$@"
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.