Package libczmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libczmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libczmq' found
pkg-config: exit status 1
vim /etc/profile
KG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/code/goProjects/libsodium-stable
LD_LIBRARY_PATH=/usr/local/lib
go build -tags 'goczmq' main.go
pkg-config --cflags -- libczmq libzmq libsodium
Package libczmq was not found in the pkg-config search path. Perhaps you should add the directory containing `libczmq.pc' to the PKG_CONFIG_PATH environment variable No package 'libczmq' found pkg-config: exit status 1
vim /etc/profile KG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/code/goProjects/libsodium-stable LD_LIBRARY_PATH=/usr/local/lib
[root@sy czmq]# ll /usr/local/lib/pkgconfig total 12 -rw-r--r-- 1 root root 959 Apr 1 10:50 libczmq.pc -rw-r--r-- 1 root root 267 Apr 1 09:26 libsodium.pc -rw-r--r-- 1 root root 290 Apr 1 10:47 libzmq.pc
[root@sy czmq]# ll /usr/local/lib total 61972 -rw-r--r-- 1 root root 5394616 Apr 1 10:50 libczmq.a -rwxr-xr-x 1 root root 1011 Apr 1 10:50 libczmq.la lrwxrwxrwx 1 root root 16 Apr 1 10:50 libczmq.so -> libczmq.so.4.2.2 lrwxrwxrwx 1 root root 16 Apr 1 10:50 libczmq.so.4 -> libczmq.so.4.2.2 -rwxr-xr-x 1 root root 2387528 Apr 1 10:50 libczmq.so.4.2.2 -rw-r--r-- 1 root root 4051946 Apr 1 09:26 libsodium.a -rwxr-xr-x 1 root root 953 Apr 1 09:26 libsodium.la lrwxrwxrwx 1 root root 19 Apr 1 09:26 libsodium.so -> libsodium.so.23.3.0 lrwxrwxrwx 1 root root 19 Apr 1 09:26 libsodium.so.23 -> libsodium.so.23.3.0 -rwxr-xr-x 1 root root 2579344 Apr 1 09:26 libsodium.so.23.3.0 -rw-r--r-- 1 root root 36762758 Apr 1 10:47 libzmq.a -rwxr-xr-x 1 root root 931 Apr 1 10:47 libzmq.la lrwxrwxrwx 1 root root 15 Apr 1 10:47 libzmq.so -> libzmq.so.5.2.5 lrwxrwxrwx 1 root root 15 Apr 1 10:47 libzmq.so.5 -> libzmq.so.5.2.5 -rwxr-xr-x 1 root root 12258384 Apr 1 10:47 libzmq.so.5.2.5 drwxr-xr-x 3 root root 18 Feb 25 17:59 node_modules drwxr-xr-x 2 root root 61 Apr 1 10:50 pkgconfig drwxr-xr-x. 3 root root 27 May 21 2021 python3.6
Where is wrong?