Your advice is correct in some respects, but incorrect in others.
- libdb.so is a shared library, whereas libdb.a is a static library. If you have both libdb.so and libdb.a available in the search paths used by a C compiler (gcc in this case), then the shared library is preferred. Shared libraries are preferred because they prevent the code from begin compiled into your resulting Perl binary, which increases binary size and requires more resources every time it is invoked. The previous comments about needing libdb.a instead of libdb.so were incorrect.
- Having the library is not sufficient; you need the development headers as well. This was a correct stateement.
If you or someone you know has root access to the system, you can start at this page for the version of Solaris you have (as opposed to using the SunFreeware one):
http://www.sun.com/software/solaris/freeware/index.xml
You can get the Berkeley DB companion software for Solaris 8, 9, 10 and on Sparc and Intel platforms. Sun requires a free login to access the downloads (both DVD ISO image and individual package downloads).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.