I read in the past this tutorial, so I tried again to compile and run the example under Windows using Lazarus 2.0.6+FPC 3.0.4, without encountering problems. In the zip file with the demo project, along with sources, are present libeay32.dll and ssleay32.dll, that are dynamic library for Windows, so they cannot run on Linux directly.
I'm running Lazarus 2.0.2 with FPC 3.0.4 on Gentoo Linux.
This does not work for me.
program openw; uses sysutils, opensslsockets, fphttpclient; begin with tfphttpclient.create(nil) do begin writeln(get('https://samples.openweathermap.org/data/2.5/weather?zip=94040,us&appid=b6907d289e10d714a6e88b30761fae22')); free; end; end.
works for me on ubuntu 19.04, fpc 3.2
john@oddio:~/source/code/pascal/openweather$ openssl version
OpenSSL 1.1.1b 26 Feb 2019
If you do have openssl installed, make sure its symlinked to what the unit wants considering you are using gentoo. Stuff like ssl1.1.1b""".o""" will fail.
Oh, yes, sure.I'm running Lazarus 2.0.2 with FPC 3.0.4 on Gentoo Linux.
Is Openssl package installed on your system?