For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 1

LPC 1.4 Error 0012: Unable to load CURL

Hi. I have just install LPC 1.4 in RH 7. ./start_lpc works good but when trying to connect from client throws error:

Text:Error querying service discovery: Failed to initialize RsslRestClient. Text: </local/jenkins/workspace/RRT  LPC/OS/OL7-64/esdk/source/rtsdk/Cpp-C/Eta/Impl/Transport/rsslSocketTransportImpl.c:547> Error: 0012 Unable to load CURL.

I have correctly setup LD_LIBRARY_PATH as included in the start script and try also other locations but fails with same error.


elektron#technologyrefinitiv-realtime-optimisedlpc
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@christopher.dugan1

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply, and then close the question. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


Upvote
Accepted
232 2 0 0

There should be a "libcurl.so" library within the LD_LIBRARY_PATH path. That should have execute permissions. If the library isn't found or has incorrect permissions, then it cannot be loaded. Be sure to have "LD_LIBRARY_PATH" exported in your environment.

Another possibility is that the incorrect compiled version of libcurl.so is in your LD_LIBRARY_PATH. For example, a RHEL8 library is in the directory vs the RHEL7 version. The installer should have installed the correct library version.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi. LD_LIBRARY_PATH is correct and libcurl.so have execute permissions. I set the debug option in cnf file and here is part of the log. I can see a "RSSL_SC_USAGE_ERROR" code:

[Thu Apr 18  16:29:19.269253 2024] RSSL Message Of Length 241 Sent on Socket 13
<statusMsg domainType="RSSL_DMT_LOGIN" streamId="1" containerType="RSSL_DT_NO_DATA" flags="0x20 (RSSL_STMF_HAS_STATE)" dataState="RSSL_DATA_SUSPECT" streamState="RSSL_STREAM_CLOSED" code="RSSL_SC_USAGE_ERROR" text="Error querying service discovery: Failed to initialize RsslRestClient. Text: </local/jenkins/workspace/RRTLPC/OS/OL7-64/esdk/source/rtsdk/Cpp-C/Eta/Impl/Transport/rsslSocketTransportImpl.c:547> Error: 0012 Unable to load CURL.
"  dataSize="0">
</statusMsg>


@pmorales

Based on your response, I gather that you are still experiencing errors? Some questions:

  1. Are you using the startup script to execute the LPC 1.4 process?
  2. What major version of Linux are you using (Linux 7 or 8)?
  3. What version of OpenSSL is installed on your Linux?
pmorales avatar image pmorales christopher.dugan1
Hi, the problem was openssl 1.0.1. Update to 1.0.2 and works fine. Thank you.
Upvote
79.3k 253 52 74

@pmorales

It should be like this. For example, libcurl.so is in the /opt/lpc/curl directory.

[radmin@d4636649ed34 lpc]$ pwd
/opt/lpc
[radmin@d4636649ed34 lpc]$ export LD_LIBRARY_PATH=/opt/lpc/curl
[radmin@d4636649ed34 lpc]$ echo $LD_LIBRARY_PATH
/opt/lpc/curl
[radmin@d4636649ed34 lpc]$ ldd /opt/lpc/curl/libcurl.so
        linux-vdso.so.1 =>  (0x00007ffe3a159000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f63acac6000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007f63ac854000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f63ac3f1000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f63ac1db000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f63abe0d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f63acf59000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f63abbc0000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f63ab8d7000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f63ab6d3000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f63ab4a0000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f63ab29c000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f63ab08c000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f63aae88000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f63aac6e000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f63aaa47000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f63aa7e5000)
[radmin@d4636649ed34 lpc]$ strings /opt/lpc/curl/libcurl.so | grep libcurl\/
libcurl/7.86.0
[radmin@d4636649ed34 lpc]$

You may use the ldd to verify the requried libraries are found properly. Then, use the strings command to verify the version of libcurl.so.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dear @Jirapongse, the ldd comand on libcurl.so throws that libcrypto was expecting openssl 1.0.2, and I was working with 1.0.1. I just install openssl 1.0.2 and now is working fine.

Thanks for your help.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.