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.
1
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.
1 -
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 -
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.
0 -
Hi, the problem was openssl 1.0.1. Update to 1.0.2 and works fine. Thank you.0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛