[SOLVED] Cannot compile curl demo "testcurl.pp" => Linker error (Linux) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Hartmut · 2022-02-03 14:13 In FPC 3.2.0 there is a curl demo in .../fpcsrc/packages/libcurl/examples/testcurl.pp. When I try to compile it, I get a Linker error: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Hint: (11030) Start of reading config file /opt/lazarus_210/fpc/bin/x86_64-linux/fpc.cfgHint: (11031) End of reading config file /opt/lazarus_210/fpc/bin/x86_64-linux/fpc.cfg/usr/bin/ld: -lcurl kann nicht gefunden werden (translated: "-lcurl can not be found")Note: (11046) DWARF debug information cannot be used with smart linking on this target, switching to static linkingFree Pascal Compiler version 3.2.0-r45643 [2020/12/20] for x86_64Copyright (c) 1993-2020 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling testcurl.pas(9015) Linking /hg/utis/testcurl/media/D/FPC/work/einmal/testcurl.pas(44,1) Error: (9013) Error while linking/media/D/FPC/work/einmal/testcurl.pas(44,1) Fatal: (10026) There were 1 errors compiling module, stoppingFatal: (1018) Compilation abortedError: /opt/lazarus_210/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode I'm on Linux Ubuntu 18.04 64-bit. In Packet Manager "Synapse" I can see, that library "libcurl4" is installed. I think I found it in the file system in folder /usr/lib/x86_64-linux-gnu/: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i hg6@i3300:/usr/lib/x86_64-linux-gnu$ ls -l libcurl*lrwxrwxrwx 1 root root     19 Sep 20 14:02 libcurl-gnutls.so.3 -> libcurl- gnutls.so.4lrwxrwxrwx 1 root root     23 Sep 20 14:02 libcurl- gnutls.so.4 -> libcurl-gnutls.so.4.5.0-rw-r--r-- 1 root root 522696 Sep 20 14:02 libcurl-gnutls.so.4.5.0lrwxrwxrwx 1 root root     16 Sep 20 14:02 libcurl.so.4 -> libcurl.so.4.5.0-rw-r--r-- 1 root root 530888 Sep 20 14:02 libcurl.so.4.5.0 I'm a bloody beginner to that library stuff. Thanks for help in advance. ---------------------------------------------------------------------- mica · 2022-02-03 14:48 curl-devel lib missing? ---------------------------------------------------------------------- korba812 · 2022-02-03 14:51 You need to install libcurl-dev package. ---------------------------------------------------------------------- Hartmut · 2022-02-03 15:17 Thank you, mica and korba812, for your quick answers. I looked in Packet Manager "Synapse" but did not find something with exactly the name "libcurl-dev", only 9 similar to it (see attached screenshot). Can you tell me, which of them is the right one? ---------------------------------------------------------------------- korba812 · 2022-02-03 16:29 I'm not sure, but it seems to be libcurl4-gnutls-dev. ---------------------------------------------------------------------- Hartmut · 2022-02-03 16:49 This was the solution! Thank you very much.