Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ps2pdf hangs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Wed Feb 12, 2003 4:43 pm    Post subject: ps2pdf hangs? Reply with quote

Hola folks, having a very frustrating issue attempting to convert a PostScript file into pdf using ps2pdf. I am running the latest version of Ghostscript available unmasked in portage.

Basically, all it does is hang. I can ctrl+c to exit the program, but nothing converts.

I have uploaded the same file to an online ps2pdf conversion utility and it turned the same file into a perfect PDF.

Any ideas? I've tried running ps2ascii on the file and ps2ascii was able to parse it.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Wed Feb 12, 2003 4:57 pm    Post subject: Reply with quote

Can you post the commands that you are issuing at the commandline?
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Wed Feb 12, 2003 5:05 pm    Post subject: Reply with quote

"ps2pdf file.ps file.pdf"
"ps2pdf12 file.ps"
"ps2pdf file.ps"

All with the same "hanging" result.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Wed Feb 12, 2003 6:23 pm    Post subject: Reply with quote

I just did a quick test, and it failed since I had recently unmerged CUPS for LPRng.

Do you have ghostscript and CUPS installed? I don't know why, but it complained that I didn't have a shared object file provided by CUPS.

Sorry... but I am on my way out the door now. I'll check back when i get home.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Wed Feb 12, 2003 6:26 pm    Post subject: Reply with quote

If you want, email me the ps file at

tuxmaster@linuxmail.org

and I will try it from work when I get there. Perhaps it is the file. Do you know latex, you could also create a quick tex file, tex it, ps the dvi, and then ps2pdf that. (If you know latex, you will know that is very easy).
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Thu Feb 13, 2003 5:39 am    Post subject: Reply with quote

That really seems the long way around. :) I have tried the same file via an online PS-PDF conversion site and they were able to spit back a PDF immediately..so I don't think it is the file.

I do have both CUPS and Ghostscript installed. I don't get an error, just....nothing. It hangs until I Ctrl+C. Very frustrating. Does this on every system. Will try from one more system and see.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Thu Feb 13, 2003 5:52 am    Post subject: Reply with quote

What do you mean "does this from every system?"

If it is not the file, then I would guess that it would only "not" work on one system, but should work on the others.

I use ps2pdf as provided by the Gentoo ebuild all the time and it works for me.

Have you tried converting another postscript file to pdf? Does it hang everytime you try to convert any ps file?

Do you have tetex installed? If so, create a file called test.tex that only contains the following:

\documentclass[12pt]{report}
\begin{document}
This is a test
\end{document}

Then type the following:

Code:

latex test.tex
dvips -o test.ps test.dvi
ps2pdf test.ps


Again, feel free to email the ps file, I don't mind, but I also understand if you don't want to (there are alot of scary people on the internet :twisted: )
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Thu Feb 13, 2003 12:21 pm    Post subject: Reply with quote

Sorry, suffering from severe fatigue on my end.

When I said "from every system", I meant from the two Gentoo servers I have here at work available for testing.

When I took the PostScript files home to try the same conversion on my home Gentoo PC, it worked fine.

The only difference I can see is that the work servers have CUPS installed. I have removed CUPS from one of my test servers, and I'm currently rebuilding Ghostscript with -cups as a USE variable.

I'll test again once it finishes and let you know if it works.
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Thu Feb 13, 2003 12:42 pm    Post subject: Reply with quote

Once I removed the CUPS package and recompiled Ghostscript with -cups as a USE variable, ps2pdf was able to convert the test file.

I have removed the '-cups' setting, and will re-emerge CUPS to re-test. If it still works, I'll re-emerge Ghostscript with CUPS installed and see if the problem returns.

If it does, it looks like an issue for bugs.gentoo?
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Thu Feb 13, 2003 1:08 pm    Post subject: Reply with quote

Oh, crap. I've isolated the problem!

I was using SSH to connect to the servers on which I was attempting to run ps2pdf. If I run it from the console directly, it works just fine.

The output from ps2pdf usually has strings like:

%%[ Product Name: Blah ]%%

I think that the string is somehow causing SSH to lock. Any insight on this twist?
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Thu Feb 13, 2003 7:05 pm    Post subject: Reply with quote

Well,

I tried SSHing to another machine and using ps2pdf, and it worked fine. I did notice some lag, and I was ps2pdf'ing a very small file.

Have you tried starting ps2pdf, going for a cup of coffee, and seeing if it is just taking an unusually long time?

I think I am officially out of ideas... hopefully you get it going though.
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Fri Feb 14, 2003 1:35 pm    Post subject: Reply with quote

I waited about..20 minutes for one attempt via SSH to finish. Nada.

Fortunately, I have no production need for SSH if we set up the ps2pdf print queue we're looking to do. It was just a quick means of connecting to the server to run a test.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum