Haivision / srtgo

Go bindings for SRT. Advantages of SRT technology for an easy to use programming language
Mozilla Public License 2.0
184 stars 52 forks source link

centos8 tips #45

Open seamanm opened 2 years ago

seamanm commented 2 years ago

run filereceive example,get error: error while loading shared libraries: libsrt.so.1.4: cannot open shared object file: No such file or directory exit status 127 im confirm,im make and make install srt

jeoliva commented 2 years ago

Hey, @seamanm. Looks like a problem on your setup. Could you please run pkg-config --libs srt in a shell and verify the file libsrt.so.1.4 exists and is accessible (read permission) in the directory indicated by pkg-config output?

seamanm commented 2 years ago

hi this flow centos 8:

pkg-config --libs srt

Package srt was not found in the pkg-config search path. Perhaps you should add the directory containing `srt.pc' to the PKG_CONFIG_PATH environment variable Package 'srt', required by 'virtual:world', not found

this flow ubuntu: root@ecs-EGsYA:~# pkg-config --libs srt -L/usr/local/lib -lsrt root@ecs-EGsYA:~#

seamanm commented 2 years ago

[root@ns544235 local]# ls lib [root@ns544235 local]# ls lib64 bpf libsrt.a libsrt.so libsrt.so.1.4 libsrt.so.1.4.4 pkgconfig [root@ns544235 local]#

seamanm commented 2 years ago

[root@ns544235 local]# pkg-config --variable pc_path pkg-config /usr/lib64/pkgconfig:/usr/share/pkgconfig