Problem of dependencies in casablanca

Apr 10, 2014 at 7:19 AM
Edited Apr 10, 2014 at 7:19 AM

I manage to compile casablanca in CentOs but when I do an ldd on the I got:

./ /usr/lib64/ version GLIBCXX_3.4.18' not found (required by ./
./ /usr/lib64/ version
GLIBCXX_3.4.15' not found (required by ./
./ /usr/lib64/ version GLIBCXX_3.4.14' not found (required by ./
./ /usr/lib64/ version
GLIBCXX_3.4.19' not found (required by ./
./ /usr/lib64/ version `GLIBCXX_3.4.15' not found (required by /home/user/dev/rebld/src/boost_1_55_0/lib/

I used libboost 1.55 and gcc 4.8.2.
I recompile libboost first then gcc 4.8.2.

If you have an idea ?

Marked as answer by kristo33 on 4/9/2014 at 11:37 PM
Apr 10, 2014 at 8:02 AM
Hi again kristo,

You've got an interesting error here. My gut impression is that you either have your toolchains slightly misconfigured or you're somehow using binaries for a different machine.

Searching your error leads me to this stackoverflow.

Could you try running the following commands (in the appropriate directories) and reporting back what they say?
strings /usr/lib64/ | grep GLIBCXX
ldd -v
ldd -v
Apr 10, 2014 at 8:28 AM

I succeed in found the answer. I was not using the right libstdc++. It was not the one generated by my compile of gcc 4.8.2.

Marked as answer by kristo33 on 4/10/2014 at 12:28 AM
Apr 11, 2014 at 6:18 PM
kristo33, it would be very helpful if you could document whatever is needed to get C++ Rest SDK running on CentOS/Red Hat. Otherwise, I'll have to retrace your steps in a few weeks.
Jun 2, 2014 at 6:36 PM
I ran into the same problem. The reason is that I built a custom gcc 4.8.3 and didn't tell the linker
to pick up the file that came with it, i.e.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/gcc4.8.3/lib64


cmake ..