ghostview can not open .ps (110 Views)
Reply
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 1 of 29 (110 Views)
Accepted Solution

ghostview can not open .ps

Hi,

once I installed ghostview doing the following steps:

Installed the gv version for HP-UX 11.0 (my system is 11.11 TCOE). After that some libaries (/usr/local/lib/X11/libXaw3d.dl) have been missing. I installed them and it seems to run properly (I only opened ghostview without viewing a real .ps file!!).

Today I would like to open a .ps but gh complains with the following error:

"Exec of /opt/gs-5.10/bin/gs failed: No such file or directory"

Where can I obtain this files or how can I fix this otherwise?

Thanks for some hints,

Oliver
Oliver Schmitz
Regular Advisor
Mehdi_1
Posts: 107
Registered: ‎05-21-2001
Message 2 of 29 (110 Views)

Re: ghostview can not open .ps

Hi Oliver

Would you give me some times. I am tyring to fix the problem. It seems the gv is trying to find "gs" in /opt/ rather than /usr/. and even when It finds it It seem they are not compatible!!.

__Mehdi

Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 3 of 29 (110 Views)

Re: ghostview can not open .ps

Dear Mehdi,

thank you very much for your help. It would be very welcome if you will find some hints to solve this.
I had a look again to my remarks when I installed the gv and the corresponding libaries (I did it from the Utah server) and I do not see any dependencies which I should have installed. Can anybody give me a list of the main dependencies, maybe one is not satisfied at all.

I leave for two weeks now but I will read through the posts in this forum and I would be very lucky to find something helpfull.

Thanks to all and best regards,

Oliver
Oliver Schmitz
Regular Advisor
Mehdi_1
Posts: 107
Registered: ‎05-21-2001
Message 4 of 29 (110 Views)

Re: ghostview can not open .ps

Hi

What version of ghostscript have you got on your system??

Download the ghostscript-7.05 ( if you already haven't got it on your system ):

http://hpux.connect.org.uk/hppd/hpux/PostScript/ghostscript-7.05

set the font path:

export GS_FONTPATH=/usr/local/share/ghostscript/fonts


Run "gv" again. That should work now!.

Let me know if you still have problem.

Cheers

__Mehdi

PS. I am about to update from ghostscript-7.05 to ghostscript-7.07. you may want to wait for that.

Trusted Contributor
Paulo A G Fessel
Posts: 180
Registered: ‎08-19-2001
Message 5 of 29 (110 Views)

Re: ghostview can not open .ps

As far as I can tell, you may have one of two problems:

* GhostScript, the PS engine that Ghostview uses to show .ps documents, is not installed. Install it and use Ghostview's interface to change the path of GS.

* Ghostscript is installed but not in the correct path. Find where gs is in your system and change GS configuration.

You'll change GS path in "Advanced Options" menu option of Ghsotview.

HTH
Paulo Fessel
L'employé propose, le boss dispose.
Trusted Contributor
Paulo A G Fessel
Posts: 180
Registered: ‎08-19-2001
Message 6 of 29 (110 Views)

Re: ghostview can not open .ps

BTW, download GS for HP-UX here:

http://big.asknet.de/hppd/hpux/PostScript/ghostscript-7.05/

HTH
Paulo Fessel
L'employé propose, le boss dispose.
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 7 of 29 (110 Views)

Re: ghostview can not open .ps

Dear all,

finally I have to solve this problem now.
I tried all your uggestions (reinstall ghostview and export the envar) but unfortunately all did not help.

When I start gv I get the message that it is "unable to load ANY fontset" and when I try to open an .ps file I always get the message:

Exec of /opt/gs-5.10/bin/gs failed: No such file or directory

Error: PostScript interpreter failed in main window.

Do anybody have some more hints or ideas. I am really lost...

Thanks for more advices and best regards,

Oliver
Oliver Schmitz
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 8 of 29 (110 Views)

Re: ghostview can not open .ps

Another remark:

If I type gv -v I get ghostview 3.5.8

Is this the correct release from the 7.5 download mentioned above?

Thanks,

Oliver
Oliver Schmitz
Regular Advisor
Mehdi_1
Posts: 107
Registered: ‎05-21-2001
Message 9 of 29 (110 Views)

Re: ghostview can not open .ps

Hi Oliver

I am sorry. I did misunderstand your question in a first place. you have problem with gv not ghostscript. you download ghostscript from:

http://hpux.connect.org.uk/hppd/hpux/PostScript/ghostscript-7.07

and set the font path:

export GS_FONTPATH=/usr/local/share/ghostscript/fonts

And use ghostscript to view your ".ps" file.

gs "yourfile".ps

Meanwhile I will try to fix gv. Although gv is an old program.

Let me know how you get on with ghostview.


Thanks

Mehdi
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 10 of 29 (110 Views)

Re: ghostview can not open .ps

Hi Mehdi,

thank you for your engaged help. GhostSCRIPT is running fine but I and exspecially the users of the maschine want to use ghostVIEW. Therefore it would be very nice and helpfull if you have an idea to solve the problems described. I myself have no idea.

Thanks and best regards,

Oliver
Oliver Schmitz
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 11 of 29 (110 Views)

Re: ghostview can not open .ps

Some new hints:

Correspondinmg to the message
"Can not open /opt/gs-5.10/bin/gs" I made a link from my working ghostSCRIPT in /usr/local/bin/gs to the position mentioned above.
Now my ghostview can open the file but the appearance is awfull.
I installed the newst gs version which was suggested above.
Can anybody now tell me how to get the version needed or how to adapt the gv to this version?

Thanks and best regards,

Oliver

P.S.: I don't mind to deinstall both and reinstall them if this is could be successfull...
Oliver Schmitz
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 12 of 29 (110 Views)

Re: ghostview can not open .ps

Now I installed the 7.07 version of ghostview/ghostscript (by the way: Do I understand it right: It is one packege with these two programms and ghostVIEW is some framework around ghostSCRIPT?).
Unfortunately another error appeared: When I trz to start ghostscript now I got themessage:

/usr/lib/dld.sl: Can't open /usr/local/lib/libz.sl. No such file or directory.

Where can I get this sl from?

Thanks in advance,

Oliver
Oliver Schmitz
Honored Contributor
RolandH
Posts: 627
Registered: ‎11-06-1997
Message 13 of 29 (110 Views)

Re: ghostview can not open .ps

Hi Oliver,

deinstall everything to be in a clear state.

Then install these products in this order or copy them all in one depot.

zlib
jpeg
libpng
tiff
ghostscript7.05
Xaw3d
gv

These software can all get from this server.
http://hpux.connect.org.uk/hppd/hpux/PostScript/gv-3.5.8/

Klich the link above and follow the run-time dependencies.

HTH
Roland

BTW: the products will all installed in /opt /
Sometimes you lose and sometimes the others win
Honored Contributor
RolandH
Posts: 627
Registered: ‎11-06-1997
Message 14 of 29 (110 Views)

Re: ghostview can not open .ps

Sorry,

installation path is /usr/local ...
Sometimes you lose and sometimes the others win
Honored Contributor
Umapathy S
Posts: 970
Registered: ‎12-04-2001
Message 15 of 29 (110 Views)

Re: ghostview can not open .ps

Oliver,
libz is part of zlib.
http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Misc/zlib-1.1.4/zlib-1.1.4-sd-11.00.depot.gz

install libz. You can also download from
http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.1.4/

I will suggest you to go by the way Roland has suggested.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 16 of 29 (110 Views)

Re: ghostview can not open .ps

Thanks RolandH for this advice. One question: How can I do a clean uninstall on hpux? I always made an update by overinstalling.

Thanks for this answer in advance, I will try the procedure you described when I know how to uninstall.

Oliver
Oliver Schmitz
Regular Advisor
Mehdi_1
Posts: 107
Registered: ‎05-21-2001
Message 17 of 29 (110 Views)

Re: ghostview can not open .ps

Honored Contributor
RolandH
Posts: 627
Registered: ‎11-06-1997
Message 18 of 29 (110 Views)

Re: ghostview can not open .ps

Have you installed your product with swinstall ?
Then you have to go this way.

1. swlist
#You will get a output what you have installed.
#You will see something like this

gostscript 7.05 ghostscript7.05 ...

Do an "swremove ghostscript". To remove a product with sremove you must give swremove the first argument from the swlist output. ( I think in this case is no reboot necessary, otherwise add "-x autoreboot=true" to your command.

Do it similar to gv and other product you have installed for that installation.

2. If you have a tarball installation I think you must only remove the dirs to be clean.

HTH
Roland
Sometimes you lose and sometimes the others win
Honored Contributor
Umapathy S
Posts: 970
Registered: ‎12-04-2001
Message 19 of 29 (110 Views)

Re: ghostview can not open .ps

Oliver,
swremove will remove the software if you had installed a depot.

For the bundle name check with swlist -l bundle.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Regular Advisor
Mehdi_1
Posts: 107
Registered: ‎05-21-2001
Message 20 of 29 (110 Views)

Re: ghostview can not open .ps

RolandH : Why should Oliver remove and reinstall the packages?? I think it is wrong advise you giving in here. He should only check to see what program he is missing and install them. That all he need to do!!!. Also for your information "swremove" doesn't always delete the actual files from /usr/local or /opt/*. some time you need to delete them manually. Another thing is the current version of ghostscript is 7.07, Why are you keep refering to 7.05??

Oliver: The problem is you didn't have and gs installed on your machine!!. Or the installation path is not in your PATH.Otherwise gv would have bypass "/opt/gs-5.10/bin/gs" and use the gs that was installed in "/usr/local/bin". You must make sure you have all the dependency installed first.

Mehdi
Regular Advisor
Mehdi_1
Posts: 107
Registered: ‎05-21-2001
Message 21 of 29 (110 Views)

Re: ghostview can not open .ps

New gv depot is ready to download:

http://hpux.connect.org.uk/hppd/hpux/PostScript/gv-3.5.8

Mehdi
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 22 of 29 (110 Views)

Re: ghostview can not open .ps

Thank you all very much for all the advices. I finally choosed the version of mehdi to add the installation of the software products listed by RolandH. So both of you helped me very much. It is running fine now (only the quality of the output is not as good as I thought it would be... ? it looks like a high compressed jpeg (any hint for this?/Don't know wethher it depends on the file quality)).

Best regards, Oliver
Oliver Schmitz
Honored Contributor
RolandH
Posts: 627
Registered: ‎11-06-1997
Message 23 of 29 (110 Views)

Re: ghostview can not open .ps

Hi Mehdi and Oliver,


that is a decission what must be made by oliver. I do not know what he has really did.
I mean a clear state is a point of view where we all know how the system looks like. And that is the only point from where I can five a advice to oliver. Everything else is dancing in the dark !!!!


The recommendation for ghostview7.05 was a cut & paste. Yes I saw there is a new one. Oliver take the 7.07 version, please.


HTH
Roland


PS: are you satisfied now, mehdi =;-}
Sometimes you lose and sometimes the others win
Regular Advisor
Oliver Schmitz
Posts: 150
Registered: ‎06-04-2003
Message 24 of 29 (110 Views)

Re: ghostview can not open .ps

Hi RolandH,

as I mentioned before: Thank you for your straigh and save advice to go back to a save point and walk from there. If the lazy way would not have been working I would have followed your solution. I am a little bit in a hurry, therefore I first tried to bring it up running in the short and somewhat really dark way.

Before I proceed I checked by find what is missing and installed these missing products (There were some of the targets you listed really missing, so I supposed that they are the reason. Exspecially because the messages of gv correspond with your list step by step.)).

So again a lot of thanks to everybody. It helps and gv is working now.

Best regards,

oliver
Oliver Schmitz
Occasional Visitor
Glen Goldsmith
Posts: 1
Registered: ‎04-13-2004
Message 25 of 29 (110 Views)

Re: ghostview can not open .ps

I followed Randalls advise above.. however I get this error whenever I tried to execuse ghostscript:

GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
/usr/lib/dld.sl: Unresolved symbol: jpeg_std_error (code) from gs
Abort(coredump)

I symlinked the libs from /usr/local/lib to /lib and that didn't seem to help... any ideas?

Many thanks!
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.