I tried compiling Stunnel on Debian and get an error -- I need the ssl libraries. I tried ./configure --with-ssl=/usr/lib/ssl, which is where libssl-dev was installed, and it doesn't help. There is a libssl file in /usr/lib, but --with-ssl=/usr/lib/ssl doesn't seem to work either. What package on Debian provides the needed headers (according to aptitude, libssl-dev, the one I installed, does, but experience is telling me otherwise).
(This, btw, is why I am trying to make static binaries -- you can never tell what to expect on Linux systems at this point. Often config/make doesn't work and there are many times when packages don't work out for one reason or another.)
Thanks for any help on this.
Hal
On Mon, 13 Mar 2006, Hal Vaughan wrote:
I tried compiling Stunnel on Debian and get an error -- I need the ssl libraries. I tried ./configure --with-ssl=/usr/lib/ssl, which is where libssl-dev was installed, and it doesn't help. There is a libssl file in /usr/lib, but --with-ssl=/usr/lib/ssl doesn't seem to work either. What package on Debian provides the needed headers (according to aptitude, libssl-dev, the one I installed, does, but experience is telling me otherwise).
This is what I have on my debian systems:
ii libssl-dev 0.9.7e-3sarge1 SSL development libraries, header files and ii libssl0.9.7 0.9.7e-3sarge1 SSL shared libraries
(This, btw, is why I am trying to make static binaries -- you can never tell what to expect on Linux systems at this point. Often config/make doesn't work and there are many times when packages don't work out for one reason or another.)
I share your thinking, rolling out 50 binaries is not something you'd do with make install but with kickstart or the like.
In the past I had a different reason for wanting to compile it statically: FreeBSD jails. It makes it all the easier if you don't have to worry about shared libraries in your jailed environment.
On Tuesday 14 March 2006 01:33, you wrote:
On Mon, 13 Mar 2006, Hal Vaughan wrote:
I tried compiling Stunnel on Debian and get an error -- I need the ssl libraries. I tried ./configure --with-ssl=/usr/lib/ssl, which is where libssl-dev was installed, and it doesn't help. There is a libssl file in /usr/lib, but --with-ssl=/usr/lib/ssl doesn't seem to work either. What package on Debian provides the needed headers (according to aptitude, libssl-dev, the one I installed, does, but experience is telling me otherwise).
This is what I have on my debian systems:
ii libssl-dev 0.9.7e-3sarge1 SSL development libraries, header files and ii libssl0.9.7 0.9.7e-3sarge1 SSL shared libraries
(This, btw, is why I am trying to make static binaries -- you can never tell what to expect on Linux systems at this point. Often config/make doesn't work and there are many times when packages don't work out for one reason or another.)
I share your thinking, rolling out 50 binaries is not something you'd do with make install but with kickstart or the like.
In the past I had a different reason for wanting to compile it statically: FreeBSD jails. It makes it all the easier if you don't have to worry about shared libraries in your jailed environment.
So you've gotten it to compile and produce static binaries for FreeBSD? How hard was it compared to a regular compile?
Any tips/suggestions/pointers?
Thanks!
Hal
Hal Vaughan wrote:
I tried compiling Stunnel on Debian and get an error -- I need the ssl libraries. I tried ./configure --with-ssl=/usr/lib/ssl, which is where libssl-dev was installed, and it doesn't help.
You're wrong. libssl-dev installs libraries in /usr/lib:
$ dpkg -L libssl-dev | grep libcrypto /usr/lib/libcrypto.a /usr/lib/libcrypto_pic.a /usr/lib/libcrypto.so
For stunnel you should use: ./configure --with-ssl=/usr since that's the prefix OpenSSL libraries and includes are installed on Debian.
BTW: Simple ./configure works fine on Debian.
Best regards, Mike
On Tuesday 14 March 2006 03:57, Michal Trojnara wrote:
Hal Vaughan wrote:
I tried compiling Stunnel on Debian and get an error -- I need the ssl libraries. I tried ./configure --with-ssl=/usr/lib/ssl, which is where libssl-dev was installed, and it doesn't help.
You're wrong. libssl-dev installs libraries in /usr/lib:
Hmmmm.... I had not /usr/lib/ssl until I installed libssl-dev, so it must put some files in there.
$ dpkg -L libssl-dev | grep libcrypto /usr/lib/libcrypto.a /usr/lib/libcrypto_pic.a /usr/lib/libcrypto.so
Saw these now, don't know if they were there earlier.
For stunnel you should use: ./configure --with-ssl=/usr
Yes! It works just fine. I had tried /usr/lib/ssl and /usr/lib without luck, but finally it works with this.
since that's the prefix OpenSSL libraries and includes are installed on Debian.
BTW: Simple ./configure works fine on Debian.
For some reason it isn't working on my system (running Sid). Tried it several times and got the same error (no ssl libs).
Thanks -- I can get ./configure working now. Some problems with make, but I don't have time to look deeper into that now. It'll have to wait until later today.
Hal