Posted here as per the requests of a couple folks on misc@ (sorry for
cross-posting):
--------------------------------------------------------------------------
I just installed the devel/jdk/1.2-blackdown port. When I attempted to run
my new java compiler, I got the message:
Error: can't find libjava.so.
After searching my drive and finding that the file existed in
/usr/local/jdk1.2-blackdown/jre/lib/i386, I went to the archives and did a
bit of research. Basically, I realized, I just needed to add this directory
to the "shlib_dirs" line of /etc/rc.conf and reboot, or use the command
"ldconfig -m <path>".
Not being a fan of rebooting often, I tried the latter command; it told me
that there was no such file or directory, despite the fact that I could cd
over to it and see libjava.so there no problem. Annoyed, but not worried, I
rebooted, figuring it'd all be solved when the system came back up.
For some odd reason, though, that didn't do the trick, either. The
appropriate directory for libjava.so is in the "search directories" line if
I do an ldconfig -r; disturbingly enough, this output also shows about 100
more entries than before I rebooted. Of course, none of them is libjava.
I can't figure out why this library can't be loaded. Any ideas why this is
happening?
Thanks,
Alex Kirk
|