Where is libsunir.so?
Hello all.
I'm trying to build the 1st tutorial in the sampledir and I'm stuck already with this.
dmake -m serial -f "/.sunstudio/11-SunOS-sparc/sampledir/Tutorials/Makefile"
cc -g -xCC -c -o Tutoriall/squares.o Tutoriall/squares.c
ld.so.l: acomp:fatal: libsunir.so: open failed: No such file or dir.
***Error code 9
dmake: Fatal error: command failed for target 'Tutoriall/squars.o'
Where would I find libsunir.so and why can't the tutorial setup find it?
I ran the find command and oddly enough I can't find it(libsunir.so) either.
I'm on Sunstudio11 Solaris 10 on a sparc.
Any help and or laughter would be great.
Thanks
[706 byte] By [
unixrules] at [2007-11-26 8:32:21]

# 1
Strange indeed that this library was not found automatically. It should be here: /opt/SUNWspro/prod/lib/sys/libsunir.so and acomp depends on it:
[code]
$ ldd /opt/SUNWspro/prod/bin/acomp
...
libsunir.so =>/opt/SUNWspro/prod/bin/../lib/sys/libsunir.so
...
[/code]
# 4
Something is wrong with the installation.
How did you install Studio 11? Did you use the GUI installer, the batch installer, or some other method? Did the intstallation run to completion without any error messages?
Did you attempt to install Sun Studio 11 in a location where another Sun Studio release was already installed -- or a pre-release version of Studio 11?
You will probably have to completely uninstall the product. As root:
cd /var/sadm/prod/com.sun.studio_11
./batch_uninstall_all
It would not hurt to go to /opt/SUNWspro and completely rermove everything under that directory.
Then run the batch installer, watching for error messages.
# 5
You can look up the file in the package database, and see if the system
thinks it is installed. This command should do the trick:
# pkgchk -l -p libsunir.so
(You might have to run it as root)
That should tell you if it is installed, and if so, which package it
is part of.
I don't have the packages installed at the moment so I can't check
what it is supposed to say.