0

I use Asymptote. Upon compiling, I stumble across such error:

asy: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory

After some googling, libglut.so.3 is part of freeglut3, a graphics library that Asymptote uses. Apparently, TeXLive doesn't include it.

Since I don't want to create my own Docker image, if possible, is there a way to deactivate FreeGLUT (ideally via some command line option or in Asymptote code as a settings attribute)? What is it roughly used for in Asymptote, and is it really necessary?


Background: I'm trying to automate compilation via Gitlab CI/CD, i.e. every time I push, a script is executed that compiles my LaTeX code. I use the official TeXLive Docker image for that purpose. The reason I don't want to install FreeGLUT is that otherwise, I'd need to create a new custom Docker image.

7
  • On my system - for both TL's asy and the regular asy - the binary is dynamically linked to libglut.so. If asy can do without it, you'd need a binary compiled without. Please change 'official TeXLive Docker image' to 'official Docker TeX Live image'. The link you give is to Docker, so I'm assuming it is their image - not TeX Live's. This is important, especially if the image is providing binaries which cannot work without making a different image.
    – cfr
    Commented May 26 at 1:21
  • 1
    @cfr Interesting. The term "TeXLive Docker image" is traight up the title of the README, although I agree that it is a TeXLive image, not a Docker one. The image is actually created by Island of TeX, made official in TUGboat 40 (2019), so I assume that it is semi-official.
    – Gargantuar
    Commented May 26 at 14:53
  • Hmm. Also interesting. I don't know if that makes it official TeX Live or not, but it does provide some kind of sanction ;).
    – cfr
    Commented May 26 at 17:05
  • @cfr Where did you get TeXLive from? Maybe one of the precompiled binaries from your pkg manager on Linux?
    – Gargantuar
    Commented May 26 at 17:08
  • From tug.org/texlive. I don't use my distro's packages for TeX Live - only upstream. That's why I have e.g. two asy: one in /usr/local/texlive/bin and one in /usr/bin.
    – cfr
    Commented May 26 at 17:17

0

You must log in to answer this question.

Browse other questions tagged .