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.


Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • christopher.dugan1
    Answer ✓

    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.

Answers

  • pmorales
    pmorales Newcomer

    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>


  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @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.


  • @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
    pmorales Newcomer
    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.

  • pmorales
    pmorales Newcomer
    Hi, the problem was openssl 1.0.1. Update to 1.0.2 and works fine. Thank you.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.