Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with maple 8 and libdl.so.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
R0B_IX
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2003
Posts: 83

PostPosted: Wed Aug 27, 2003 1:14 am    Post subject: problem with maple 8 and libdl.so.2 Reply with quote

Ok, so I installed maple 8, and have checked out the faq for maple 8 on maplesoft.com, but I can't seem to find an answer to this problem. When I try to run maple, I get this error

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

in order to run maple, I made a script

#! /bin/sh

export LD_ASSUME_KERNEL=2.4.1
/usr/maple8/bin/maple


My current kernel is 2.6.0-test3-mm2, glibc = 2.3.2-r2 w/ nptl. I have tried to set the LD_ASSUME_KERNEL to 2.6.0, but that gave me another error (which was covered in the faq).

doing a "# whereis libdl.so.2" I get

libdl.so: /lib/libdl.so.2 /usr/lib/libdl.so

thanks for any input. It is probably just a linking error that needs to be fixed, but I am not sure how to fix it.
_________________
Laptop:Sager 5670
CPU:3.06ghz w/HT enabled
RAM:512 megs PC2100
Video:ATI Radeon Mobility 9000
HD1:40 gig 5400 RPM 2.5" drive
HD2:20 gig 5400 RPM external 2.5" USB2 drive
OS of choice:Windows 3.1 (just kidding, it's gentoo)
Back to top
View user's profile Send private message
LockeAverame
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2003
Posts: 108

PostPosted: Wed Aug 27, 2003 9:23 am    Post subject: Reply with quote

that's strange cause /lib has mostly an entry in /etc/ld.so.conf
check if the permission are set right so that you can use it.
try
export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH
or instead of /lib /usr/lib.

an output of "ldd /path/to/maple/maplebinary" would be interesting.
maybe maple8 uses his own libs in /usr/maple8/lib or something like this than u could write a small env-script and put it into /etc/env.d/ and start env-update.
Back to top
View user's profile Send private message
percking
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2003
Posts: 90

PostPosted: Wed Aug 27, 2003 2:43 pm    Post subject: Reply with quote

I don't currently have maple installed as i've rebuilt my machine since last school year and i don't want to remind myself that i gotta go back here shortly.
But i seem to remember there being a libdl.so.2 in the $MAPLE_DIR/bin.IBM_INTEL???? (don't remember the god awful long thing) . Because with previous versions of maple there were problems with the libraries being in two places. Maybe maple is looking there and not finding it?? just a thought.


percking
Back to top
View user's profile Send private message
R0B_IX
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2003
Posts: 83

PostPosted: Wed Aug 27, 2003 4:58 pm    Post subject: Reply with quote

well, I tried the stuff that you guys sugested, but still no luck. I traced down the actual program to be in /usr/maple8/bin.IBM_INTEL_LINUX and it's called maplew. I did an ldd of maplew "ldd maplew" and got this...

bash-2.05b# ldd maplew
libGL.so.1 => /usr/lib/libGL.so.1 (0x40026000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x400a4000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40119000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4016e000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40183000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40248000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40258000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40261000)
libdl.so.2 => /lib/libdl.so.2 (0x40278000)
libmclient.so => not found
libstdc++.so.2.9 => /usr/lib/libstdc++.so.2.9 (0x4027b000)
libm.so.6 => /lib/libm.so.6 (0x4027d000)
libc.so.6 => /lib/libc.so.6 (0x402a0000)
libpthread.so.0 => /lib/libpthread.so.0 (0x403d2000)
libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/libstdc++.so.5 (0x403e2000)
libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/libgcc_s.so.1 (0x40493000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x4049c000)

From my very basic knowledge of what is going on, it looks like it knows where libdl.so.2 is, but right below that it says that it cannot find libmclient.so. So, I did a whereis, and nothing was turned up, but by doing a find, it found it in the same directory as maplew. Looking throught the maple script, it looks like it exports that directory as a library directory, however, so I am not sure if that is causing a problem or not. This is driving me crazy right now.
_________________
Laptop:Sager 5670
CPU:3.06ghz w/HT enabled
RAM:512 megs PC2100
Video:ATI Radeon Mobility 9000
HD1:40 gig 5400 RPM 2.5" drive
HD2:20 gig 5400 RPM external 2.5" USB2 drive
OS of choice:Windows 3.1 (just kidding, it's gentoo)
Back to top
View user's profile Send private message
R0B_IX
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2003
Posts: 83

PostPosted: Wed Aug 27, 2003 5:05 pm    Post subject: Reply with quote

Well, just for fun I moved maplew and cmaple to a different directory, and then ran the maple script, and it still gave those errors. The only thing is, I can't find out where in the script it runs another program.
_________________
Laptop:Sager 5670
CPU:3.06ghz w/HT enabled
RAM:512 megs PC2100
Video:ATI Radeon Mobility 9000
HD1:40 gig 5400 RPM 2.5" drive
HD2:20 gig 5400 RPM external 2.5" USB2 drive
OS of choice:Windows 3.1 (just kidding, it's gentoo)
Back to top
View user's profile Send private message
LockeAverame
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2003
Posts: 108

PostPosted: Thu Aug 28, 2003 8:14 am    Post subject: Reply with quote

libmclient is AFAIK a modem library, you shouldn't need it.
you should watch into the maple directory if it's libs are in a special directory of maple, if so then
export LD_LIBRARY_PATH=/path/to/maple/lib:$LD_LIBRARY_PATH

if the errors still occure then try ignore the libraries of maple.

if nothing helps than post an strace output:

strace -e open /bin/maple
Back to top
View user's profile Send private message
LockeAverame
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2003
Posts: 108

PostPosted: Thu Aug 28, 2003 8:16 am    Post subject: Reply with quote

posting the maple scripts or using the binaries directly with own LD... settings could solve some strange mistakes here.
Back to top
View user's profile Send private message
R0B_IX
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2003
Posts: 83

PostPosted: Thu Aug 28, 2003 6:39 pm    Post subject: Reply with quote

Here is the output from strace on the xmaple script (which is simply the maple script with the -X flage to run in graphical mode (regular maple script gives the same outout/error)

strace -e open ./xmaple
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
open("/etc/mtab", O_RDONLY) = 3
open("/proc/meminfo", O_RDONLY) = 3
open("./xmaple", O_RDONLY|O_LARGEFILE) = 3
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
--- SIGCHLD (Child exited) @ 0 (0) ---

Right now I am downloading a 2.4 kernel, and am going to see if running that makes anything work better. The reason is, when I type this in the command like "export LD_ASSUME_KERNEL=2.4.1", and then try to do anything simple, like an ls, or cd command, I get a library error. Forinstance, if I try ls, I get this error

bash-2.05b# ls
ls: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

So I think that my problems may be caused by not running a 2.4.X kernel. The reason why I export version 2.4.1 is because on the maple faq page, it says that if I get this error

/root/maple8/bin.IBM_INTEL_LINUX/mserver: relocation error: /root/maple8/bin.IBM_INTEL_LINUX/libmaple.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

Then it is fixed by making the program think that I am using a 2.4.1 kernel. Is there a better way around that problem because I think that is why I am getting the libdl.so.2 error.

[edit] I built kernel 2.4.22 (vanilla sources), and, as I kind of expected, it refused to load saying that it was out of date (most likely caused by the fact that I have glibc compiled with NPTL support, which requires a 2.5+ kernel.). I would really like to get this all working without rebuilding my entire system. I would really hate to have to use windows just to run this one program.
_________________
Laptop:Sager 5670
CPU:3.06ghz w/HT enabled
RAM:512 megs PC2100
Video:ATI Radeon Mobility 9000
HD1:40 gig 5400 RPM 2.5" drive
HD2:20 gig 5400 RPM external 2.5" USB2 drive
OS of choice:Windows 3.1 (just kidding, it's gentoo)
Back to top
View user's profile Send private message
LockeAverame
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2003
Posts: 108

PostPosted: Fri Aug 29, 2003 9:41 am    Post subject: Reply with quote

ok the strace output says that he could find all libs and has loaded them, so your problem is that maple is not compiled for your system, so that incompatibilities occur. which glibc version and gcc version has maple used?
and try to use maple's own libs if there are some, maybe you should watch on the maple homepage if they have a right compiled version for your system.
Back to top
View user's profile Send private message
R0B_IX
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2003
Posts: 83

PostPosted: Sun Aug 31, 2003 7:51 pm    Post subject: Reply with quote

I looked around maple's website, and couldn't find anything. I am using maple8, and they do have a version 9 out, but I don't want to upgrade because
1.We have to learn how to use 8 for school, and my prof said some things have changed in 9
2. I don't have the money to spend on maple9.

I also wrote to maple a few days ago, asking them for help, and they have yet to respond. I even linked them to this thread, hoping they could find an easy solution.

My question is, do you think that if I take the trouble to build my system for the 2.4.X kernel, that it would solve the problem?
_________________
Laptop:Sager 5670
CPU:3.06ghz w/HT enabled
RAM:512 megs PC2100
Video:ATI Radeon Mobility 9000
HD1:40 gig 5400 RPM 2.5" drive
HD2:20 gig 5400 RPM external 2.5" USB2 drive
OS of choice:Windows 3.1 (just kidding, it's gentoo)
Back to top
View user's profile Send private message
LockeAverame
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2003
Posts: 108

PostPosted: Mon Sep 01, 2003 8:10 am    Post subject: Reply with quote

i wouldn't use the 2.6testkernel either cause it is not marked stable.
for a production environment a 2.4 kernel is better to use.
u only have to compile a 2.4 kernel not the whole system, but i doubt that this would solve the problem.
have u nptl support in glibc? maybe maple doesn't like nptl which has quite some probs with some applications.
try to see if maple has its own libs maybe like /path/to/maple/libs and try:
export LD_LIBRARY_PATH=/path/to/maple/libs:$LD_LIBRARY_PATH
and start maple again.
Back to top
View user's profile Send private message
percking
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2003
Posts: 90

PostPosted: Tue Sep 09, 2003 9:42 pm    Post subject: Reply with quote

i decided to do a little searching because schools starting and i'm gonna need maple....and all it took was typing maple into the forum search...and i found this link..

http://www.maplesoft.com/support/Faqs/Maple8/Installation/10.shtml

it should solve your problems....i followed that and another post dealing with java and i installed it just fine.

percking
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum