gcc echo.c -o app
find ./ -name "lib*"
gcc echo.c -o app -lfcgi
ldd app
[root@10-41-93-228 home]
linux-vdso.so.1 => (0x00007ffd6a396000)
libfcgi.so.0 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f94ea1b1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f94ea57f000)
find / -name "libfcgi.so"
/usr/local/lib/libfcgi.so
vim /etc/ld.so.conf
sudo ldconfig
ldd app
[root@10-41-93-228 home]
linux-vdso.so.1 => (0x00007ffdeebc4000)
libfcgi.so.0 => /usr/local/lib/libfcgi.so.0 (0x00007f9124da6000)
libc.so.6 => /lib64/libc.so.6 (0x00007f91249d8000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f91247be000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9124fb1000)