How to find a patch for a desired library?
Hello,
finding a certain library for Solaris applications seems to me not straightforward.
For example: ldd emacs
libtiff.so.3 => (file not found)
libjpeg.so.62 => (file not found)
libpng.so.3 => (file not found)
The problem is that i dont see the conection of these libraries to their patch name,
so that i just go to sun.com and download it.
I keep on searching google for maillists where people had the same problem.
Is there a more straightforward method? I've being facing often this problem
for different applications.
PS: i posted this question some time ago at Solaris > Solaris Discussion forum.
Nobody answered, so im posting here. Plese tell me if that is a bad practice. Thanks ...
[786 byte] By [
unitysuna] at [2007-11-27 5:01:13]

# 1
> Hello,
> finding a certain library for Solaris applications
> seems to me not straightforward.
> For example: ldd emacs
>
> libtiff.so.3 => (file not found)
> libjpeg.so.62 => (file not found)
> libpng.so.3 => (file not found)
>
> The problem is that i dont see the conection of these
> libraries to their patch name,
I'm not sure what you mean by "Patch" name.
If I search for libjpeg I come up with:
# cat /var/sadm/install/contents | grep libjpeg*
/usr/j2se/jre/lib/i386/libjpeg.so f none 0755 root bin 158224 48498 1147206547 SUNWj3rt
.
.
.
The rest of the entries are not pasted into this for brevity. In the snippet shown above, "SUNWj3rt" is the "Package" that contains the file libjpeg.so.
A patch is usually used to, well, patch an existing bug in an application. A package is the mechanism used by Sun to get the some version of a sofware application onto the box in the fist place.
I don't recall seeing an option to install emacs when I installed Solaris so I'll assume that you grabbed a package from some other source. If so, then you only grabbed one part of what you need to get emacs up and running. For the missing files, you will either need to grab them from where you grabbed emacs, find another source for those packages, or compile and add them yourself.
alan
# 2
Hallo,
sorry for the confusion between Patch and Package, u are right.
The emacs i got here ftp.sunfreeware.com/ftp/pub/freeware/sparc/9/
and run pkg_add -d ...
It installs fine, but does not run because of the libraries.
What i would like to know is where i can get all libraries that i need.
I have also library problems with other applications.
Some of them i find doing some google but i consider this a silly method.
What would be the best solusion.
At the site shown these libraries are not.
Thanks ...
# 3
> The emacs i got here
> ftp.sunfreeware.com/ftp/pub/freeware/sparc/9/
> and run pkg_add -d ...
> It installs fine, but does not run because of the
> libraries.
I browse to www.sunfreeware.com
! click on x86/Solaris 10 on the right hand side
I scroll down to emacs
I click once on emacs.
The middle panel gives me installation instructions towards the top of the panel.
# emacs-22.0.91-sol1--x86-local.gz Emacs is the extensible, customizable, self-documenting real-time display editor - installs in /usr/local. Dependencies: To use emacs you also need to install libgcc, jpeg, libpng, libungif, tiff, zlib, and xaw3d if you haven't already. This is test code. If you find any bugs or other problems, report them to me at steve@smc.vnet.net.
# emacs-22.0.91.tar.gz Source Code. [Details]
the dependencies all have links. If you have any other problems, steve does leave his e-mail address so you can take it up with him.
The other method is to download/compile/install the missing libraries yourself.
alan