libm missing in irix 6.2 -
darkhelmet02 - 08-11-2020
I recently installed some tgcware on my Challenge S running 6.2, but when I execute most applications I get:
Code:
8225:/usr/tgcware/bin/bash: rld: Fatal Error: Cannot Successfully map soname 'libm.so' under any of the filenames /usr/tgcware/lib/libm.so:/usr/lib32/libm.so:/usr/lib32/internal/libm.so:/lib32/libm.so:/opt/lib32/libm.so:/usr/tgcware/lib/libm.so.1:/usr/lib32/libm.so.1:/usr/lib32/internal/libm.so.1:/lib32/libm.so.1:/opt/lib32/libm.so.1:
Where can I find libm??
RE: libm missing in irix 6.2 -
Raion - 08-11-2020
It's an LD_LIBRARYN32_PATH issue. You need to add /usr/tgcware to that variable
RE: libm missing in irix 6.2 -
jpstewart - 08-11-2020
It's not an issue with LD_LIBRARYN32_PATH. The output clearly shows rld is looking in /usr/tgcware/lib already. Besides that, libm is the standard math library -- a crucial part of the operating system. As such, you'd expect it under /usr/lib32 rather than /usr/tgcware.
Can you show us the output of:
Code:
ls -l /usr/lib32/libm.so*
file /usr/lib32/libm.so*
file /usr/tgcware/bin/bash
RE: libm missing in irix 6.2 -
Raion - 08-11-2020
oh, well derp. I didn't think of that.
RE: libm missing in irix 6.2 -
darkhelmet02 - 08-11-2020
ls -l /usr/lib32/libm.so* - Cannot access /usr/lib32/libm.so: No such file or directory
file /usr/lib32/libm.so* - No match
file /usr/tgcware/bin/bash - /usr/tgcware/bin/bash: ELF N32 MSB mips-3 dynamic executable MIPS - version 1
I reinstalled irix once because I thought something got screwed up, but libm is simply not on the system
RE: libm missing in irix 6.2 -
darkhelmet02 - 08-12-2020
Is there something I can install that would have libm?
RE: libm missing in irix 6.2 -
Raion - 08-12-2020
No, not that I know of. You may be missing some development libraries or something, but I'm not familiar with 6.2. Something is wrong though.
RE: libm missing in irix 6.2 -
jpstewart - 08-12-2020
Hmm...I just looked at my 6.5.x discs and it seems that libm.so is actually distributed as part of the compiler_eoe packages. (I don't have a 6.2 machine to check.) I had assumed it was part of the base installation, but I was wrong. I guess SGI must have statically linked libm into their applications instead of distributing the shared library.
Since libm.so is part of the compiler_eoe package on 6.5, I'll assume it's there on 6.2 as well. So you'll need to install, at a minimum, the corresponding package. Or just install everything from the developer CDs if you have trouble locating the right package.
FWIW, if you don't have the developer CDs for 6.2, Raion has them mirrored here:
http://usftp.irixnet.org/sgi-irix/development/irix-6.2/
RE: libm missing in irix 6.2 -
darkhelmet02 - 08-12-2020
Huh. Just reinstalled Development Foundations and made sure everything was checked off, and now everything works, libm is found and tgcware uses it properly. I must have missed a check box or something in software manager. I appreciate the suggestions Raion and jpstewart! Hopefully this thread will be useful to anyone else that encounters the same issue!