dermesser / libsocket

The ultimate socket library for C and C++, supporting TCP, UDP and Unix sockets (DGRAM and STREAM) on Linux, FreeBSD, Solaris. See also my uvco library for a refreshed version!
https://borgac.net/~lbo/doc/libsocket/
Other
797 stars 195 forks source link

error while run apps #51

Open liamlangli opened 7 years ago

liamlangli commented 7 years ago

error while loading shared libraries: libsocket.so: cannot open shared object file: No such file or directory

i got this while run compiled example. i'm sure libsocket.so was located at /usr/lib this is my compile command. gcc -Wall -g -std=gnu99 -L/usr/lib -lsocket http.c -o app my system is centos 7,

viocycling commented 6 years ago

I have same problem while loading shared libraries, but after I excute sudo ldconfig everything goes well. You can have a try.