无法让Ghostscript在OpenBSD上运行chroot

时间:2012-09-28 20:10:13

标签: php apache ghostscript chroot openbsd

我有webinstall想要使用gs(ghostscript)将.ps转换为pdf。但它不适用于openBSD 4.9,因为“chroot”Web服务器(我想留在“chroot”dirs)我尝试将所有ghostscript文件复制到chroot目录/ var / www - 但它给了我错误:

gs:gs: undefined symbol 'gsapi_new_instance'
lazy binding failed!
Segmentation fault (core dumped)

它也只能看到五个库:

# /bin/ldd  /bin/gs
    /bin/gs:
    Start    End      Type Open Ref GrpRef Name
    1c000000 3c004000 exe  1    0   0      /bin/gs
    08611000 28617000 rlib 0    1   0      /usr/lib/libgs.so.11.0
    023af000 223b5000 rlib 0    1   0      /usr/lib/libjpeg.so.64.0
    04d98000 24da1000 rlib 0    1   0      /usr/lib/libpthread.so.13.1
    01c3d000 21c71000 rlib 0    1   0      /usr/lib/libc.so.58.0
    028bc000 028bc000 rtld 0    1   0      /usr/libexec/ld.so

在非chroot时:

# ldd gs                       
    gs:
    Start    End      Type Open Ref GrpRef Name
    1c000000 3c004000 exe  1    0   0      gs
    0f97d000 2fd19000 rlib 0    1   0      /usr/local/lib/libgs.so.11.0
    0a51c000 2a522000 rlib 0    2   0      /usr/local/lib/libjpeg.so.64.0
    0c537000 2c540000 rlib 0    1   0      /usr/lib/libpthread.so.13.1
    058ae000 258e2000 rlib 0    1   0      /usr/lib/libc.so.58.0
    08dbb000 28dc1000 rlib 0    1   0      /usr/local/lib/libpng.so.10.0
    0bd65000 2bd69000 rlib 0    1   0      /usr/local/lib/libijs.so.0.0
    0dbd9000 2dbe0000 rlib 0    1   0      /usr/lib/libz.so.4.1
    0ff75000 2ff7d000 rlib 0    1   0      /usr/lib/libm.so.5.2
    0a056000 2a135000 rlib 0    1   0      /usr/local/lib/libiconv.so.6.0
    0ce72000 0ce72000 rtld 0    1   0      /usr/libexec/ld.so

所以我猜“gs”需要一些库? (gs在没有chroot的cmd行上工作正常。)

0 个答案:

没有答案