1 |
On Wed, Oct 09, 2013 at 11:52:19PM +0200, Alan McKinnon wrote: |
2 |
> On 09/10/2013 23:41, José Romildo Malaquias wrote: |
3 |
> > Hello. |
4 |
> > |
5 |
> > I have installed the *binary distribution of scilab* available form its |
6 |
> > download page. |
7 |
> > |
8 |
> > About two months ago, I was using it without problems. |
9 |
> > |
10 |
> > Now it does not work anymore. Running the binary gives the following |
11 |
> > error message: |
12 |
> > |
13 |
> > $ /alt/scilab-5.4.1/bin/scilab |
14 |
> > scilab-bin: /alt/scilab-5.4.1/lib/thirdparty/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/lib64/libpng16.so.16) |
15 |
> > |
16 |
> > I need helping understanding this message and fixing this issue on my |
17 |
> > ~amd64 system. |
18 |
> |
19 |
> libpng16 is a library you already have on your system (not bundled with |
20 |
> scilab). And strangely, this *system* library is complaining that it |
21 |
> can't find the correct version of libz. These libs have names (sonames) |
22 |
> so you can tell different versions apart and use the right one. |
23 |
> |
24 |
> But the system libpng has no business trying to use a third party app |
25 |
> under any circumstances. And in fact in regular use it doesn't, see mine: |
26 |
> |
27 |
> $ ldd /usr/lib64/libpng16.so.16 |
28 |
> linux-vdso.so.1 (0x00007fff7d79a000) |
29 |
> libz.so.1 => /lib64/libz.so.1 (0x00007ff9ad6ab000) |
30 |
> libm.so.6 => /lib64/libm.so.6 (0x00007ff9ad3b5000) |
31 |
> libc.so.6 => /lib64/libc.so.6 (0x00007ff9ad00a000) |
32 |
> /lib64/ld-linux-x86-64.so.2 (0x00007ff9adb3c000) |
33 |
> |
34 |
> See? system libpng uses system libz. |
35 |
> |
36 |
> How does this happen? Easy. The authors of scilab are probably fiddling |
37 |
> with LD_LIBRARY_PATH, which just happens to be one of the more dangerous |
38 |
> things you can do in Unix. |
39 |
> |
40 |
> Go find the startup script for scilab and edit the mods to |
41 |
> LD_LIBRARY_PATH to put the scilab directory at the end (not the |
42 |
> beginning where it is now) |
43 |
|
44 |
In fact the startup script for scilab sets LD_LIBRARY_PATH. Running it |
45 |
in verbose modes gives this information: |
46 |
|
47 |
$ SCIVERBOSE=1 /alt/scilab-5.4.1/bin/scilab |
48 |
SCILABBIN : scilab-bin |
49 |
DISABLE_JAVA_DETECTION : 0 |
50 |
SCILAB_MODE : gui |
51 |
OS : Linux |
52 |
MODEL : x86_64 |
53 |
IS_SCILAB_BINARY : 1 |
54 |
SCI : /alt/scilab-5.4.1/share/scilab |
55 |
SCIBIN : |
56 |
PATH : /alt/scilab-5.4.1/bin:/home/romildo/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.1:/usr/games/bin:/opt/vmware/bin:/alt/scilab-5.4.1/share/scilab/modules/scicos/ |
57 |
CLASSPATH : /alt/scilab-5.4.1/share/scilab/modules/core/jar/org.scilab.modules.core.jar |
58 |
LD_LIBRARY_PATH : /alt/scilab-5.4.1/thirdparty/java//lib/amd64/:/alt/scilab-5.4.1/thirdparty/java//lib/amd64/server/:/alt/scilab-5.4.1/thirdparty/java//lib/amd64/native_threads/:/alt/scilab-5.4.1/lib/scilab:/alt/scilab-5.4.1/lib/thirdparty:/alt/scilab-5.4.1/share/scilab/bin:/alt/scilab-5.4.1/share/scilab/lib/scilab/:/alt/scilab-5.4.1/share/scilab/lib64/scilab/:. |
59 |
scilab-bin: /alt/scilab-5.4.1/lib/thirdparty/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/lib64/libpng16.so.16) |
60 |
|
61 |
I will try to modify the script to put the scilab directory at the end. |
62 |
|
63 |
Romildo |