General Topics :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
openSUSE tumbleweed and ghostscript
Posted by: rickrich ()
Date: April 12, 2019 02:43PM

If openSUSE tumbleweed and ghostscript gives:
     $ foo2*-wrapper testpage.ps > xxx.prn 
     GPL Ghostscript 9.26: **** Could not open the file cat 1>&3 .
then you will need to do one of two things:
1)
    $ su
    # aa-disable ghostscript
-OR-

2) Compile it yourself using the GHOSTSCRIPT BUGS in the INSTALL file. It is really a SUSE thing that they don't allow pipes.
        $ su
        # zypper up cups-devel
 
        $ wget "http://ghostscript.com/releases/ghostscript-8.71.tar.gz";;
        $ tar zxf ghostscript-8.71.tar.gz
        $ cd ghostscript-8.71

        - OR -

        $ wget "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/ghostscript-9.27.tar.gz";
        $ tar zxf ghostscript-9.27.tar.gz
        $ cd ghostscript-9.27

        $ ./autogen.sh
        $ make
        $ su                            OR $ sudo cp bin/gs /usr/bin/gs.foo
        # cp bin/gs /usr/bin/gs.foo

        $ gs.foo --version

Reference:
https://bugzilla.suse.com/show_bug.cgi?id=1132421
Comment # 1 on bug 1132421 from Marcus Meissner

Due to last years security issues in ghostscript we are confining it with
apparmor, and starting random binaries is not allowed by default.

You can whitelist cat yourself , run "logprof" and allow /usr/bin/cat for
instance, or switch the apparmor profile to complain by using "complain
/usr/bin/gs"



Edited 9 time(s). Last edit at 04/13/2019 12:52PM by rickrich.

Options: ReplyQuote


Sorry, you can't reply to this topic. It has been closed.
This forum powered by Phorum.