0

I've been trying to build libyang on Ubuntu 22.04, and I keep running into this issue when running cmake:

cmake: usr/local/lib/libssh.so.4: version `LIBSSH_4_8_1' not found (required by /lib/x86_64-linux-gnu/libcurl.so.4)

I couldn't find anything on this anywhere. I have libssh-dev 0.9.6-2build1 installed and cmake version 3.22.1-1ubuntu1.

The error comes up when running cmake from anywhere, so I guess it's related to cmake itself?

Edit: For extra context, I've been trying to set up Netopeer2 using this guide: http://www.seguesoft.com/index.php/netconfc/free-trial-netconfc/2-uncategorised/1-setup-netopeer2

Anatintti
  • 1
  • 1
  • Okay so now the same error appeared when using "git clone" too, which feels a bit unrelated. I built and installed an older version of libssh earlier (0.8.6), although I did install the newest version after that. Maybe that broke something? – Anatintti May 04 '22 at 05:36
  • 1
    The file `libssh.so.4` on Ubuntu 22.04 is placed under `/usr/lib/x86_64-linux-gnu/libssh.so.4`: https://packages.ubuntu.com/jammy/amd64/libssh-4/filelist. Looks like you have **another installation** of libssh library, which conflicts with the system installation. – Tsyvarev May 04 '22 at 09:42
  • "/usr/local/lib/libssh.so.4" is an obstacle. `libyang` builds OK with the Ubuntu 22.04 provided `libssh-dev` : ........ `sudo apt install libcurl4-gnutls-dev libssh-dev libpcre2-dev graphviz doxygen` – Knud Larsen May 04 '22 at 14:42

0 Answers0