0

Am trying to use OpenSSL. But I get the error saying 'libs' dir not found in OpenSSL directory.

ld: warning: directory not found for option '-       L/Users/user56023/Documents/Software/openssl-1.0.1h/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Very much true that I couldn't find the 'lib' directory in OpenSSL directory. I tried searching about this error & got to this: http://curl.haxx.se/mail/archive-2008-05/0125.html

The reply says to install devel package. What does this mean? Is 'devel' another software or is it a short form for 'development' package in OpenSSL? From where do I download it? Can someone please help?

Jean
  • 2,611
  • 8
  • 35
  • 60
  • Related: [What does -devel mean when installing a library?](https://stackoverflow.com/q/7941068/4722345) – JBallin Apr 16 '21 at 17:59

1 Answers1

1

You're correct - it's short for "development package".

For Linux, you need a command like this:

yum install openssl openssl-devel # for Redhat/Centos/openSUSE

apt-get install openssl openssl-dev # for Debian/Ubuntu

Note: these commands use the "package manager" to install both openssl (which it sounds like you already have: but it wouldn't hurt to do an install), and openssl-devel.

pevik
  • 4,523
  • 3
  • 33
  • 44
FoggyDay
  • 11,962
  • 4
  • 34
  • 48
  • I use Mac. Can you please say how do I do this in Mac? – Jean Jul 01 '14 at 07:28
  • Let me try with HomeBrew. Thanks @FoggyDay ! Will get back! – Jean Jul 01 '14 at 07:39
  • Tried HomeBrew on Mac. I gave the command "brew install openssl openssl-dev", but it fails with the error : "Error: No available formula for openssl-dev" – Jean Jul 01 '14 at 07:41
  • These two links might help: [OpenSSL Version MacOSX Homebrew](http://stackoverflow.com/questions/15185661/openssl-version-macosx-homebrew and [OpenSSL - Compiling a Web Development Environment on MacOSX](http://mac-dev-env.patrickbougie.com/openssl/) – FoggyDay Jul 01 '14 at 08:40
  • Thanks @FoggyDay ! Will check out & be back! – Jean Jul 01 '14 at 08:45