Forum > Packages and Libraries

Using OpenSSL under Linux

(1/2) > >>

mcwise:
Hello,

I am using Lazarus version 1.0 and FPC version 2.6.0, I'm trying to make a delphi appication using indy10 under Ubuntu 12.04.



Running this code

--- Code: ---// ...

httpCom := TIdHTTP.Create(nil);
IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
IOHandler.SSLOptions.Method := sslvSSLv3;
httpCom.IOHandler := IOHandler;

// ...

scriptUrl := 'https://mytesturl.com/;
body := httpCom.Get(scriptUrl);  // here EIdOSSLCouldNotLoadSSLLibrary occurs

--- End code ---

leads to "EIdOSSLCouldNotLoadSSLLibrary" Exception.

I have the openssl package correctly installed using "sudo apt-get install openssl".

I used the search functionality, I only found topic solving the issue on Windows and this message, which does not answer my issue.

So how do I tell Lazarus where to find OpenSSL?

Greetings,
mcwise

TurboRascal:
You can't and shouldn't be able to tell Lazarus where to find libraries. If the needed libraries are installed on the system are available it will find them, so I guess something is still missing. Perhaps you might try installing OpenSSL development package, libssl-dev ('apt-get install libssl-dev'), for it possibly contains some library you need (I did not check this, but it's worth a try)...

mcwise:
Hello,

thanks for your response.

libssl-dev is also already installed.

Greetings,
mcwise

mcwise:
Hello,

does anyone have a hint on this topic? To recap, I already properly installed openssl and libssl-dev and Lazarus still complains about missing openssl.

Greetings,
mcwise

BigChimp:
Perhaps try to run your application with a tool like strace to see where the application is looking for the .so and what names it is looking for exactly?

Navigation

[0] Message Index

[#] Next page

Go to full version