[OS X TeX] dvisvgm and ghostscript
Ettore Aldrovandi
ealdrov at mail.math.fsu.edu
Fri Oct 23 00:08:05 CEST 2020
I’m baffled too. I think I have a possible explanation for the first error, but not the second, reproducing Dick’s exact command line.
For what is worth: apparently dvisvgm needs to be told the location of ghostscript’s dylib. This happens by using the command line flag —libgs or setting the env variable LIBGS (the former overrides the latter). Also apparently dvisvgm does not find libgs.dylib by itself if not told in one of those two ways. Now, at the beginning, if the variable LIBGS, although set in .bash_profile was not picked up, it would have explained the failure, with the caveat that the error message was different.
Just for clarification, Terminal does not run a login shell, unless set in its preferences.
But all this does not explain the error once dvisvgm is run with the correct path put on the command line via —libgs.
Most of those dylib files are actually symlinks. Is is it possible there’s a problem there? Maybe something went wrong during installation? This is what I have, but I installed ghostscript differently:
albemuth:~/tmp> ls -l /opt/brw/Cellar/ghostscript/9.53.3/lib
total 26584
-r--r--r-- 1 ealdrov wheel 13610904 Oct 2 07:59 libgs.9.53.dylib
lrwxr-xr-x 1 ealdrov wheel 16 Oct 2 07:59 libgs.9.dylib@ -> libgs.9.53.dylib
lrwxr-xr-x 1 ealdrov wheel 16 Oct 2 07:59 libgs.dylib@ -> libgs.9.53.dylib
—Ettore
Ettore Aldrovandi
Department of Mathematics, Florida State University
1017 Academic Way * http://www.math.fsu.edu/~ealdrov
Tallahassee, FL 32306-4510, USA * * aldrovandi at math dot fsu dot edu
> On Oct 22, 2020, at 17:14, Herbert Schulz <herbs at wideopenwest.com> wrote:
>
>> On Oct 22, 2020, at 4:04 PM, Ettore Aldrovandi <ealdrov at math.fsu.edu> wrote:
>>
>> The quotes are probably not important, but Dick is right, this may not be a PATH issue at all, rather:
>>
>> The library name could be incorrect, as it may depend on how ghostscript was installed. Actually, /usr/local/share is a strange location for holding shared libraries. On my system the location is:
>>
>> /opt/brw/lib//opt/brw/lib/libgs.9.53.dylib
>>
>> Don’t mind the /opt/brw prefix and replace it with /usr/local. The library name is also different, which may be also an issue here. Taking this difference into account, I was able to run Dick’s example on one of my pdf files.
>>
>> So, Doris, check for these differences and see if you can run Dick’s example then.
>>
>> Then there is the separate question of which is the appropriate location for the shell variable to hold the library name to export to the environment. But that is a separate issue.
>>
>> Hope this helps,
>>
>> —Ettore
>>
>> Ettore Aldrovandi
>> Department of Mathematics, Florida State University
>> 1017 Academic Way * http://www.math.fsu.edu/~ealdrov
>> Tallahassee, FL 32306-4510, USA * * aldrovandi at math dot fsu dot edu
>>
>>> On Oct 22, 2020, at 15:19, koch at math.uoregon.edu wrote:
>>>
>>> Ettore has been giving good advice on this list recently! However, in this case Doris called dvisvgm by giving it the location of the ghostscript library directly, so PATH variables ought to be irrelevant.
>>>
>>> Doris, when you reported the command to us, you used quotation marks around the library path. When I tried this on my machine, I did not use those quotation marks. Did you retry the command by just copying my command and pasting?
>>> Did you look into the location and make sure the library is there?
>>>
>>> If so, I give up. After all, I created the install package and I installed on my machine running Catalina and we are running exactly the same command.
>>>
>>> Richard Koch
>
> Howdy,
>
> The path posted by Dick Koch is correct when using the installer provided by him which was also used by Doris.
>
> Along with Dick I am baffled since his command line works fine for me (acting on a different pdf and producing a different svg.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20201022/ca6eb6e2/attachment-0001.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list.