Error loading " justenoughlibtexpdf " on Ubuntu (WSL)

35 views
Skip to first unread message

Asim Qayyum

unread,
May 20, 2018, 9:03:38 PM5/20/18
to SILE Users
Hello Everyone,
I am new to SILE and *nix system. After a seemingly long journey, I have been able to build SILE on Ubuntu (on Windows 10 WSL). Now I am trying to typeset a simple "Hello World" file, named hello.sil; but when I run sile on it, I get the following error output:


This is SILE 0.9.4
/usr/bin/lua: error loading module 'justenoughlibtexpdf' from file '/usr/local/lib/sile/justenoughlibtexpdf.so':
        libtexpdf.so.0: cannot open shared object file: No such file or directory
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        /usr/local/share/sile/core/libtexpdf-output.lua:1: in main chunk
        [C]: in function 'require'
        /usr/local/share/sile/core/sile.lua:51: in function 'init'
        /usr/local/bin/sile:11: in main chunk
        [C]: in ?

What should I do to resolve this issue?

Thanks,
Asim

Malachi James

unread,
May 23, 2018, 2:10:04 AM5/23/18
to SILE Users
It looks like that file should get installed when you build sile, so if the sile program is running at all it seems like the file should be present.

However, the first thing you might do is download the 0.9.5 version from github and install it instead. Even though 0.9.4 is 'released' and 0.9.5 is 'beta', I'm pretty sure that the newer version is stable enough and makes enough significant changes that you ought to use it.

--Malachi

Malachi James

unread,
May 24, 2018, 4:03:28 AM5/24/18
to SILE Users
Crazily enough, I ended up replicating your problem while dealing with an apparently unrelated issue (also posted here).

My justenoughlibtexpdf problem arose after re-installing dependencies (in my case harfbuzz and maybe fontconfig, freetype2 or graphite2) but not re-building sile.

So, my first suggestion would be to re-build sile. One thing to do after "./configure; make" would be to run the "make check" command since it looks like those tests have to do with libtexpdf. If you pass those tests you should be able to run "sudo make install" and have a running version of sile.

--Malachi

On Monday, May 21, 2018 at 6:03:38 AM UTC+5, Asim Qayyum wrote:

Asim Qayyum

unread,
May 28, 2018, 3:15:01 AM5/28/18
to SILE Users
There is a thread on Stack Overflow here which, for a similar problem, points that such problem is due to some missing dependency - in that case a symlink - which he resolved by making the required symlink; though I could not utilize that hint any further.

I tried installing SILE 0.9.5 (sile-master) using the "aclocal; autoheader; autoconf; ./configure; make; sudo install" commands but the autoheader failed every time I tried. Though after some struggling with "autoreconf", the SILE is now finally installed and I have successfully compiled my hello.sil document.

-- Asim

Shriramana Sharma

unread,
Mar 24, 2019, 3:10:30 AM3/24/19
to SILE Users
I think the problem is that the install script doesn't run `ldconfig` after installing the `.so` file to `/usr/local/lib/`. Try if running `sudo ldconfig` fixes the issue because it did so for me.
Reply all
Reply to author
Forward
0 new messages