LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-23-2006, 02:41 PM   #1
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
Solaris - linking with OpenSSL


Does anyone knows of the best autoconf hack to sort through the many paths that may contain libraries (in my case, OpenSSL) in Solaris ?

On a Solaris box I found it in /usr/sfw/ so I had to use -I/usr/sfw/include and -L/usr/sfw/lib. I'd like to have #HAVE_OPENSSL_RIPEMD_H defined and have the configure script to search the available directories.

How can I know where a package (openssl) is installed ?
 
Old 02-23-2006, 07:11 PM   #2
technopark02
Member
 
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99

Rep: Reputation: 15
Quote:
How can I know where a package (openssl) is installed ?
1. Get the exact package name with "pkginfo | grep -i openssl"
2. Run "pkginfo -r <pkgname>" to get the installation location (or base directory)

If (2) returns "/", then check under the standard locations.
 
Old 02-24-2006, 01:08 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
After you figure out the package name, you can display all files belonging to it with the command:
Code:
pkgchk -v <pkgname>
 
Old 02-24-2006, 03:09 AM   #4
primo
Member
 
Registered: Jun 2005
Posts: 542

Original Poster
Rep: Reputation: 34
Thanks a lot technopark02 and jlliagre.
I think I'm gonna use this information on a shell script and provide multiple -L and -I's to gcc.
 
Old 02-24-2006, 03:53 PM   #5
technopark02
Member
 
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99

Rep: Reputation: 15
Some additional information, for the records:

"grep <pkgname> /var/sadm/install/contents" will show the exact file names, and their locations where they were installed
 
Old 02-24-2006, 04:07 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
And reciprocally,
"grep <file-pattern> /var/sadm/install/contents" whill show you the package name a file is belonging to.

One warning though, this file is marked as "unstable interface" in the Solaris documentation, which means any use of it may break in the future, including it may disappear as a file and be replaced by something else, like say a database.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 12:14 AM
Windows and FC3 and Solaris---and only Solaris boot error message zillah Linux - Laptop and Netbook 1 07-07-2005 10:17 PM
new to solaris - is it possible to multi-boot with solaris? spyghost Solaris / OpenSolaris 6 02-08-2004 06:39 PM
Solaris Noob wants solaris firewall lhiggins Solaris / OpenSolaris 3 05-09-2003 03:22 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration