0

env: centos7 install curl

when i start install curl and ./configure --with-ssl --with-zlib, i occurs errors about libs, what mean about link-time? it's env set? i have no any experience about installtaion by make, needed to install other package? how to fix it?

./configrue --with-ssl --with-zlib

accurs errors:

checking run-time libs availability... failed
configure: error: one or more libs available at link-time are not available 
run-time. Libs used at link-time: -lssh2  -lssl -lcrypto -lz
Olumide
  • 5,397
  • 10
  • 55
  • 104
Ham Yu
  • 353
  • 4
  • 13
  • Possible duplicate of [libcurl with libssh2 - one or more libs available at link-time are not available run-time](https://stackoverflow.com/questions/8059425/libcurl-with-libssh2-one-or-more-libs-available-at-link-time-are-not-available) – Tsyvarev Dec 07 '17 at 16:44
  • The error probably means that you need to install the missing libraries e.g. `ssh2`, `ssl` and `crypto` – Olumide Dec 07 '17 at 18:02
  • i uninstall ssh2, that's not effect for installing – Ham Yu Dec 08 '17 at 01:53
  • i find the reason that about install oepnssl, i post answer – Ham Yu Dec 08 '17 at 01:59

2 Answers2

4

the errors occur bebause of openssl install

after installed openssl, should check up while it usefully when i input openssl version, it show same unkown path errors

so, u should set:

ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

it worked!

Ham Yu
  • 353
  • 4
  • 13
1

You can also add LD_LIBRARY_PATH in front of the configure script:

LD_LIBRARY_PATH=/usr/local/lib64 ./configure --with-ssl --with-zlib

nijm
  • 2,158
  • 12
  • 28
Jarlsberg
  • 11
  • 3