How can i use ghost4j on OS X 10.9

后端 未结 2 1613
误落风尘
误落风尘 2021-01-26 03:27

When i want to use ghost4j on OS X 10.9, i see this error:

Unable to load library \'gs\': dlopen(libgs.dylib, 9): image not found

I

2条回答
  •  忘了有多久
    2021-01-26 04:20

    A bit of an old thread but maybe useful for people still looking for an answer.

    Install ghostscript using port

    port install ghostscript

    That done, you need to create a link so ghost4j finds the dylib.

    cd /usr/lib
    sudo ln -s /opt/local/lib/libgs.9.10.dylib libgs.dylib
    

    Once I did that it worked like a charm.

提交回复
热议问题