Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package libczmq was not found in the pkg-config search path. #305

Open
shiyong1989 opened this issue Apr 1, 2022 · 1 comment
Open

Package libczmq was not found in the pkg-config search path. #305

shiyong1989 opened this issue Apr 1, 2022 · 1 comment

Comments

@shiyong1989
Copy link

shiyong1989 commented Apr 1, 2022

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?

@bluca bluca transferred this issue from zeromq/czmq Apr 1, 2022
@nubunto
Copy link

nubunto commented Jul 7, 2022

you need to install libsodium, libzmq and czmq, which are mentioned here but that's not mentioned explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants