[texworks] problem in ubuntu 11.04

Stefan Löffler st.loeffler at gmail.com
Mon Jul 25 18:55:35 CEST 2011


Hi,

On 2011-07-25 18:16, Jiří Fišer wrote:
> I found out that I have different versions of Qt libraries in /lib and
> /usr/lib

so, my wild guess was correct after all.

> jirka at jirka-MS-7469:/lib$ ls libQt*
> libQtCore.so        libQtGui.so        libQtNetwork.so        libQtXml.so
> libQtCore.so.4      libQtGui.so.4      libQtNetwork.so.4     
> libQtXml.so.4
> libQtCore.so.4.6    libQtGui.so.4.6    libQtNetwork.so.4.6   
> libQtXml.so.4.6
> libQtCore.so.4.6.2  libQtGui.so.4.6.2  libQtNetwork.so.4.6.2 
> libQtXml.so.4.6.2

It looks like you have Qt 4.6.2 in /lib ...

> jirka at jirka-MS-7469:~$ ldd /usr/bin/texworks
> [snip]
>     libQtDBus.so.4 => /usr/lib/libQtDBus.so.4 (0x00b52000)
>     libQtScript.so.4 => /usr/lib/libQtScript.so.4 (0x00110000)
>     libQtScriptTools.so.4 => /usr/lib/libQtScriptTools.so.4 (0x00660000)
>     libQtXml.so.4 => /lib/libQtXml.so.4 (0x00746000)
>     libQtGui.so.4 => /lib/libQtGui.so.4 (0x00f0d000)
>     libQtCore.so.4 => /lib/libQtCore.so.4 (0x003b1000)
> [snip]

... and Tw indeed (partly) uses those libraries from /lib. The default
in Ubuntu 11.04 is Qt 4.7.2, however, and that's also what Tw was built
with. So naturally, this causes problems.

Since you didn't know initially that you had two versions installed, I
would suggest to remove the 4.6.2 version from /lib, unless you have any
good reason to keep it. Or at least move it out of the way (e.g., to
/opt, or to your home directory). Alternatively, you could start messing
around with how Linux looks for shared libraries (e.g., search the
internet for "linux shared libraries", or LD_LIBRARY_PATH, or something
like that), but I wouldn't generally recommend that.

Cheers,
Stefan


More information about the texworks mailing list