TeX - LaTeX Asked on March 20, 2021
After an upgrading following a break dependency on my MacOS High Sierra 10.13.5, the command “ps2pdf
” doesn’t work anymore.
I use it with latex to convert a ghostscript file .ps
, generated from latex
compiler and dvips
command.
Here is below the error I get with ps2pdf
: $ ps2pdf file.ps
While reading gs_ll3.ps:
Error: /undefinedresource in findresource
Operand stack:
(gs_icc.ps00gs_mex_e.ps00gs_mro_e.ps00gs_pdf_e.ps00gs_wan_e.ps00pdf_ops.ps00gs_l2img.ps00pdf_rbld.ps00pdf_base.ps00pdf_draw.ps00pdf_font.ps00pdf_main.ps00pdf_sec.ps00gs_cff.ps00gs_mgl_e.ps00gs_ttf.ps00gs_dps.ps00gs_dpn...) (gs_ll3.ps) 1 Pscript5Idiom.mp_1554149595 IdiomSet 6 Pscript5Idiom.mp_1554149595
Execution stack:
%interp_exit --nostringval-- findresource %loop_continue findresource findresource findresource false 1 %stopped_push --nostringval-- 1969 7 5 %oparray_pop findresource findresource --dict:16/18(ro)(G)-- --dict:2/2(G)-- findresource 2 %dict_continue findresource findresource 1967 5 5 %oparray_pop findresource %errorexec_pop findresource findresource findresource findresource
Dictionary stack:
--dict:1050/1123(G)-- --dict:0/20(G)-- --dict:72/200(L)-- --dict:1050/1123(G)-- --dict:40/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Current file position is 18894
A solution is to use instead pstopdf
but this binary doesn’t produce href URL link
on pdf generated output file : that’s why I would like to make work the classical binary ps2pdf
.
I tried to uninstall ghostscript macport and reinstall it but this doesn’t change anything.
I have also tried with pdflatex
but there are some errors too :
Underfull hbox (badness 10000) in paragraph at lines 45--46
! Undefined control sequence.
c@lor@to@ps ->PSTricks
_Not_Configured_For_This_Format
l.54 sepline
?
! Undefined control sequence.
XC@usec@lor ...string color@ #1#2endcsname @@
fi space
l.54 sepline
?
! Undefined control sequence.
c@lor@to@ps ->PSTricks
_Not_Configured_For_This_Format
l.54 sepline
?
...
Any suggestion or help is welcome, regards.
ps2pdf is included in the Ghostscript package. Thus first, verify that you already have installed. In the terminal window try with:
find /usr/local/ -name ps2pdf
Then, you will receive the new location of the 'ps2pdf' file. In my case it was '/usr/local//Cellar/ghostscript/9.50/bin/ps2pdf'. If you don't have installed the Ghostscript package, try to install it by using brew package manager:
brew install ghostscript
Correct answer by Gerardo Marx Chávez-Campos on March 20, 2021
Firstly, make sure the command "brew" works. If not, please try to install" homebrew" via typing the following code in the Terminal
ruby -e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then, install ghostscript
brew install ghostscript
Answered by XKL on March 20, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP