You are not logged in.

#1 2006-10-05 15:36:54

clam
Member
Registered: 2005-12-28
Posts: 33

matlab issue after upgrade

[~]# matlab
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
[~]# 

Does anyone know what this is referencing?  I just noticed this error after a pacman -Syu, after about 6 months.  I remember why I should only upgrade individual packages one at a time, and only if the new package possesses a new function I desparately need. 

This last major arch upgrade seems to be less succinct and efficient as the previous ones for me.  I had to basically troubleshoot about 5-8 faulted apps in the last week.

Offline

#2 2006-10-05 15:45:52

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: matlab issue after upgrade

Dont know what the problem is, but Matlab works fine on my Arch install: Version 7.1.0.183 (R14) Service Pack 3

Offline

#3 2006-10-05 18:34:20

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: matlab issue after upgrade

pacman -Qo /lib/libdl.so.2
/lib/libdl.so.2 is owned by glibc 2.4-4

HTH


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2006-10-19 00:01:02

clam
Member
Registered: 2005-12-28
Posts: 33

Re: matlab issue after upgrade

lessthanjake, I am running version 7.0.1... is there a way to upgrade.  If I disable LD_ASSUME_KERNEL=2.4.21 in the matlab start script, it works but all symbolic processing doesn't function anymore.  What discipline do you use matlab for by the way?

Offline

#5 2006-10-19 00:28:33

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: matlab issue after upgrade

Is your system up-to-date? You should have that file on your system. It's part of the current glibc package as Lone_Wolf pointed out.

Offline

#6 2006-10-22 05:23:47

clam
Member
Registered: 2005-12-28
Posts: 33

Re: matlab issue after upgrade

Yes, my system is up to date.  I also do have the file in /lib.  I think my problem is that the system is up to date and have some issues with the new glibc package.

Offline

#7 2006-10-22 05:57:58

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: matlab issue after upgrade

Try running pacman -Syu again... I'm getting the feeling you have an out of sync mirror.

Dusty

Offline

#8 2006-10-22 10:28:20

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: matlab issue after upgrade

LD_ASSUME_KERNEL to force linuxthreads doesn't work anymore, linuxthreads is dead and forcing a 2.4 kernel to LD will cause it to skip all glibc libraries, resulting in the failed link message you get.

Offline

#9 2006-10-22 21:36:38

clam
Member
Registered: 2005-12-28
Posts: 33

Re: matlab issue after upgrade

Dusty,  I did pacman -Syu again.  But no luck.

JGC, disabling LD_ASSUME_KERNEL allows me to start matlab -- however, many things seem broken like the symbolic package. 
in matlab:

>>syms a b
>> a + b
Unable to load mex file: /opt/matlab/toolbox/symbolic/maplemex.mexglx.
/opt/matlab/bin/glnx86/libmaple.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
??? Invalid MEX-file '/opt/matlab/toolbox/symbolic/maplemex.mexglx': .

Error in ==> maple at 104
[result,status] = maplemex(statement);

Error in ==> sym.maple at 85
[result,status] = maple(statement);

Error in ==> sym.plus at 22
X = maple(A(:),'+',B(:));

I refered to this before though.  I'm still not sure whats the hold up.

Offline

#10 2006-11-15 06:14:10

jsham
Member
Registered: 2006-08-28
Posts: 4

Re: matlab issue after upgrade

So I'm suffering from the exact same problem as clam. Basically what I've gleaned from the internet is that maple (the backend for matlab's symbolic functions) isn't compatible with nptl threading, only linuxthreads.

According to this thread: http://bbs.archlinux.org/viewtopic.php? … sumekernel
and JGC, arch doesn't support linuxthreads anymore, so....

Does this mean arch cannot support maple/symbolic matlab anymore?

Offline

#11 2006-12-17 17:12:40

david_e
Member
From: Italy
Registered: 2006-08-28
Posts: 83

Re: matlab issue after upgrade

Maybe it is possible:

Alternatively, obtain a version of the C library that does not have support for 2.0 symbols removed -- glibc-2.2.5 is a good one. Place this library into $MATLAB/sys/os/glnx86 for MATLAB's use, where $MATLAB is the root MATLAB directory.

from:

http://www.mathworks.com/support/soluti … 1BDU5.html

the first possibility they talk about is to use LD_ASSUME_KERNEL that doesn't work anymore, but it is still possible to build the old glibc-2.2.5 from an old PKGBUILD and put it in the $MATLAB directory making it use the old version without the risk to break the whole system.

I am going to try it...

Offline

#12 2006-12-17 22:57:22

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: matlab issue after upgrade

I had the sample problem while installing maple. I searched the internet and I found this solution. I believe it was also written this works for matlab.

$ cp maple.linux.v10.installer.bin maple.linux.v10.installer.bin.bak
$ cat maple.linux.v10.installer.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > maple.linux.v10.installer.bin
$ ./maple.linux.v10.installer.bin

Offline

#13 2006-12-18 19:13:56

david_e
Member
From: Italy
Registered: 2006-08-28
Posts: 83

Re: matlab issue after upgrade

Thanks for the suggestion, but:

[davide@hp-arch cd1]$ cat install | grep -c LD_ASSUME_KERNEL
0

and it's the same with every file I have checked... In particular I have checked the ones in the $CD2/update/pd/toolbox/symbolic that seems to be the ones linked with the symbolic toolbox and maple...

Offline

Board footer

Powered by FluxBB