CentOS7 C++ Cons113 Unable to load CURL

I use C++ version of EMA on Windows and CentOS 6.7 work fine. I am trying to use it on CentOS 7 but it always display error

Exception Type='OmmInvalidUsageException', Text='Failed to add RsslChannel(s) to RsslReactor. Channel name(s) Channel_4
        Instance Name Consumer_4_1
        RsslReactor 0x0x2a34b70
        RsslChannel 0
        Error Id -1
        Internal sysError 0
        Error Location /home/centos/rtsdk/Real-Time-SDK/Cpp-C/Eta/Impl/Reactor/rsslReactor.c:1351
        Error Text Failed to initialize RsslRestClient. Text: </home/centos/rtsdk/Real-Time-SDK/Cpp-C/Eta/Impl/Transport/rsslSocketTransportImpl.c:547> Error: 0012 Unable to load CURL.', ErrorCode='-1'

The curl is verion 7.29 on CentOS7. Please advise if any solution on it. Thanks.

Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Alvin.Cho

    I just set the LD_LIBRARY_PATH environment variable.

    [root@1e537192d113 Optimized]# env
    HOSTNAME=1e537192d113
    TERM=xterm
    OLDPWD=/opt/openssl/bin
    LD_LIBRARY_PATH=/opt/refinitiv/Real-Time-SDK/Cpp-C/Ema/Executables/CENTOS7_64_GCC485/Optimized
    LS_COLORS=
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PWD=/opt/refinitiv/Real-Time-SDK/Cpp-C/Ema/Executables/CENTOS7_64_GCC485/Optimized
    SHLVL=1
    HOME=/root
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    _=/usr/bin/env

    You can test it with the OpenSSL command. Run the "openssl version -a" command.

    [root@1e537192d113 bin]# ./openssl version -a
    OpenSSL 1.1.1n  15 Mar 2022
    built on: Mon Sep 12 07:45:50 2022 UTC
    platform: linux-x86_64
    options:  bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr)
    compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG
    OPENSSLDIR: "/usr/local/ssl"
    ENGINESDIR: "/opt/openssl/lib/engines-1.1"
    Seeding source: os-specific

    Then, test the connection to the server. For example:

    ./openssl s_client -connect us-east-1-aws-1-med.optimized-pricing-api.refinitiv.net:443

Answers