Published on

Texworks 0.5r952, error, Ubuntu 12.04

  • avatar
    Predrag TASEVSKI

I had to use the texworks to do some changes in my LaTeX CV template, and in the previous version of Ubuntu I had not issues at all. But unfortunately in the new latest version of Ubuntu 12.04 LTS (Precise Pangolin) I had to do some tricks to get it started. It is therefore, I will provide the readers and solution of how to fix this issue. But before we continue I would like to mention that this issue has never been posted before, anywhere else.

Installation of Texworks

In the shell command we install the texworks with the following script:

sudo apt-get install texworks

Issue / Error

After the installation is finished, then if we try to run the program from Unity or even from the terminal, it will give us an error:<

    texworks: error while loading shared libraries: cannot open shared object file: No such file or directory```So now we know that there is some issue with the ```libpoppler-qt4``` library. To determine if we miss any other dependency libraries we can double check with the following command:```ldd /usr/bin/texworks```And the following output should look like this: = (0xb76f2000) =\) /usr/lib/i386-linux-gnu/
(0xb7682000) =\) not found =\) /lib/i386-linux-gnu/ (0xb766b000) =\) /usr/lib/i386-linux-gnu/ (0xb75eb000) =\) /usr/lib/i386-linux-gnu/
(0xb7367000) =\) /usr/lib/i386-linux-gnu/
(0xb72b2000) =\) /usr/lib/i386-linux-gnu/ (0xb7272000) =\) /usr/lib/i386-linux-gnu/ (0xb679e000) =\) /usr/lib/i386-linux-gnu/ (0xb64c1000) =\) /lib/i386-linux-gnu/ (0xb64a6000) =\) /usr/lib/i386-linux-gnu/ (0xb63c1000)

libgcc\ =\) /lib/i386-linux-gnu/libgcc\ (0xb63a3000) =\) /lib/i386-linux-gnu/ (0xb61fd000) =\) /lib/i386-linux-gnu/ (0xb61b4000) =\) /lib/i386-linux-gnu/ (0xb6188000) =\) /usr/lib/i386-linux-gnu/
(0xb6154000) =\) /usr/lib/i386-linux-gnu/ (0xb613b000) =\) /lib/i386-linux-gnu/ (0xb6041000) =\) /lib/i386-linux-gnu/ (0xb6017000) =\) /usr/lib/i386-linux-gnu/
(0xb5f7d000) =\) /usr/lib/i386-linux-gnu/
(0xb5f2e000) =\) /usr/lib/i386-linux-gnu/ (0xb5f25000) =\) /usr/lib/i386-linux-gnu/ (0xb5f0a000) =\) /usr/lib/i386-linux-gnu/ (0xb5efa000) =\) /usr/lib/i386-linux-gnu/ (0xb5ef0000) =\) /usr/lib/i386-linux-gnu/ (0xb5ede000) =\) /usr/lib/i386-linux-gnu/ (0xb5daa000) =\) /lib/i386-linux-gnu/ (0xb5da4000) =\) /lib/i386-linux-gnu/ (0xb5d9b000)

/lib/ (0xb76f3000) =\) /lib/i386-linux-gnu/ (0xb5d71000) =\) /usr/lib/i386-linux-gnu/ (0xb5d15000) =\) /usr/lib/i386-linux-gnu/ (0xb5d11000) =\) /lib/i386-linux-gnu/ (0xb5cd4000) =\) /usr/lib/i386-linux-gnu/ (0xb5ccd000) =\) /lib/i386-linux-gnu/ (0xb5cc7000) =\) /usr/lib/i386-linux-gnu/ (0xb5ca6000) =\) /usr/lib/i386-linux-gnu/ (0xb5c9e000)

Where we can see from the above output that the = not found is missing.The best way to solve this issue, first we have to locate where are the other libraries of QT4. This is very simple approach, because the other libraries links, location is provided from the above output. Therefore, we can see that in the path /usr/lib/i386-linux-gnu/ there is an library called: ResolutionFrom the above output, and the path that we have found of the missing library, there is an simple and easy way of fixing this issue, shown below.Therefore, in the terminal we can make an soft link with the missing library from the already existing one, with the following:sudo ln -s /usr/lib/i386-linux-gnu/ /usr/lib/i386-linux-gnu/ now the texworks works perfectly!# Details

\$ texworks --version

TeXworks 0.5r952 (Debian)

Copyright (C) 2007-2011 Jonathan Kew, Stefan Löffler

License GPLv2+: GNU GPL (version 2 or later)

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.


Also this bug/issue has been reported in