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.
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.
Best 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.
0
Answers
-
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>0 -
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.
0 -
Based on your response, I gather that you are still experiencing errors? Some questions:
- Are you using the startup script to execute the LPC 1.4 process?
- What major version of Linux are you using (Linux 7 or 8)?
- What version of OpenSSL is installed on your Linux?
0 -
@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.Dear
Thanks for your help.
0 -
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 250 ETA
- 555 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛