Pretty new to c++, coded a few years in other languages though. I been stuck all day with this issue that I can't seem to figure out.
When I run the code published here: http://www.nongnu.org/fastcgipp/doc/2.1/a00004.html I get the following error message:
error while loading shared libraries: libfastcgipp.so.2: cannot open shared object file: No such file or directory
Using ubuntu 13.10
I can build the code with out problem, but not run it. There is a libfastcgipp.so.2
and libfastcgipp.so
in /usr/local/lib/
I tryed creating a symlink from /usr/lib/libfastcgipp.so
edit
Result from ldd command...
ldd joppli.bot.dummy
linux-vdso.so.1 => (0x00007fff497fe000)
libboost_system.so.1.53.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.53.0 (0x00007f8b1828f000)
libboost_thread.so.1.53.0 => /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.53.0 (0x00007f8b18079000)
libfastcgipp.so.2 => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8b17d74000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8b17b5e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8b17795000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8b1758d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8b17370000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8b1706b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8b184b6000)
I solved the issue by creating a symlink to the file as first explained above, but added the trailing number
2
, the version number, at the end.e.g:
ln -s /usr/local/lib/libfastcgipp.so.2.0.0 /usr/lib/libfastcgipp.so.2
UPDATE
Ran in to this issue again and couldn't figure out the same issue again, so I'm posting a docker file that will get your fastCGI++ script running (probably only me that will use this, but anyway ...)
The fastcgi++2.1 source: http://www.nongnu.org/fastcgipp/
config/apache/default.conf
.htaccess