LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ps2pdf broke (https://www.linuxquestions.org/questions/linux-general-1/ps2pdf-broke-935979/)

centguy 03-22-2012 10:48 PM

ps2pdf broke
 
What is the root of this problem ?

Thanks for your attention.

Quote:


man -t man | ps2pdf - test.pdf

Error: /limitcheck in /findfont
Operand stack:
Times-Italic@0 --nostringval-- Times-Italic
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1820 3 4 %oparray_pop
Dictionary stack:
--dict:1151/1684(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:59/120(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1


John VV 03-23-2012 03:45 AM

1)what OS is this ?
cent 5 or cent 6

2) what repos are on ,or have been on ?
" yum repolist all"

that is do you have incompatible repos running on Cent5

are you running that command as root or a user ?

knudfl 03-23-2012 04:00 AM

CentOS 5 and CentOS 6 : 'ps2pdf' works OK on both ...

'man -t man | ps2pdf - test.pdf' : The file test.pdf is created.
'ps2pdf any-file.ps out.pdf' : No errors, out.pdf is created.


Solution ? Probably reinstall ghostscript, ghostscript-fonts :
# yum reinstall ghostscript ghostscript-fonts

.

centguy 03-23-2012 07:35 AM

Thanks for the response. I solved the problem. But I will share my experience.

Towards the end of 2011, I was excited to know the OOoLatex in openoffice and I was able to include OOoLatex through Tool -> Extension -> Add -> Browse to local disk -> OOoLatex-4.0.0-beta-2-linux.oxt

Then I could create nice Latex equation in openoffice presentation. But to get a high quality equation, I need to put the bakoma font
in the system. Back then in 2011 when I was still using
CentOS 5.2 or so, I need to

wget http://mirror.ctan.org/fonts/cm/ps-type1/bakoma.zip

unzip it,

and then

mv bakoma /usr/share/fonts


It worked on 5.x CentOS, but I must admit I did not test it thoroughly because soon after that (early 2012) I switched to CentOS 6.1.

Recently, I repeated the above steps in CentOS 6.1 and move bakoma to /usr/share/fonts and apparently this
breaks ps2pdf, xdvi in rending eps files, ...


By removing /usr/share/fonts/bakoma then the problem goes away.

One thing I notice is that the OOoLatex on CentOS 6.1 renders equations EMF perfectly even without having me to install bakoma!
So I guess CentOS 6.1 is really up to date that I can skip bakoma.

I have learned that installing new fonts in the system can break things big time ! Thanks if you are still following me.


All times are GMT -5. The time now is 08:32 PM.