manim icon indicating copy to clipboard operation
manim copied to clipboard

Having trouble with dvisvgm (MacOS)

Open HugoAndre276 opened this issue 6 years ago • 6 comments

I installed manim on MacOS 10.11.6 but had an error trying to run my files because I didn't have dvisvgm installed. I tried to install running the compile file provided but I was missing kpathsea. I tried using tlmgr to download it but I got

tlmgr: package repository http://www.ctan.org/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable) tlmgr install: package already present: kpathsea

I indeed saw in TeX Live Utility I have kpathsea installed as x86_64-darwin files of kpathsea, however I am still missing files such as kpathsea.h when I'm trying to install dvisvgm.

Note: I can't upgrade my OS to Sierra and therefore have macTex 2017 installed.

Thanks for reading my issue!

HugoAndre276 avatar Jan 28 '20 20:01 HugoAndre276

Install GhostScript

zavden avatar Jan 28 '20 22:01 zavden

I have Ghostscript installed but it wasn't linked so I ran brew link ghostscript and got Error: Could not symlink share/ghostscript/9.50 /usr/local/share/ghostscript is not writable.

I tried using brew doctor which issued Broken symlinks were found. Remove them with brew cleanup: following with ghostscript files.

I then ran brew cleanup which answered with Permission denied @ apply2files - /usr/local/share/ghostscript/9.21/Resource/CIDFSubst/ipaexg.ttf

I'm stuck at this point...

HugoAndre276 avatar Jan 29 '20 10:01 HugoAndre276

Update : I followed these instructions ( https://discussions.apple.com/thread/250801501?answerId=251544673022#251544673022 ) and cleanup worked.

I used brew link --overwrite ghostscript which created the files.

Yet I still have checking kpathsea/kpathsea.h usability... no checking kpathsea/kpathsea.h presence... no checking for kpathsea/kpathsea.h... no configure: error: please install the kpathsea development package when running ./compile to install dvisvgm...

HugoAndre276 avatar Jan 29 '20 11:01 HugoAndre276

I am having this issue as well on MacOS even though ghostscript is installed and linked correctly.

tbdcit avatar Dec 07 '23 12:12 tbdcit

I had the same issue. Please install dvisvgm using tlmgr. Just go ahead and run tlmgr install dvisvgm with sudo permission. Hope this helps! Comment whether it worked. If not we can figure out what's wrong further.

Priyatham10 avatar Jun 04 '24 08:06 Priyatham10