编译ZeroMQ以支持Libsodium出现的“ No package 'libsodium' found”问题
2016-11-22 16:59
1186 查看
在编译zeromq以支持libsodium时出现找不到libsodium包问题:checking for sodium... no执行"./configure --prefix=/usr --with-libsodium"出现:
[root@localhost zeromq-4.1.2]#./configure --prefix=/usr --with-libsodium
checking for sodium... no
configure: error: Package requirements (libsodium) were not met:
No package 'libsodium' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables sodium_CFLAGS
and sodium_LIBS to avoid the need to call pkg-config.
根据提示:查看PKG_CONFIG_PATH环境变量,
此时问空,原来如此。
加上pkg-config路径即可
此时再次./configure就通过。
[root@localhost zeromq-4.1.2]#./configure --prefix=/usr --with-libsodium
checking for sodium... no
configure: error: Package requirements (libsodium) were not met:
No package 'libsodium' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables sodium_CFLAGS
and sodium_LIBS to avoid the need to call pkg-config.
根据提示:查看PKG_CONFIG_PATH环境变量,
echo $PKG_CONFIG_PATH
此时问空,原来如此。
加上pkg-config路径即可
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
此时再次./configure就通过。
相关文章推荐
- 安装mysql ./configure编译时出现错误:error: No curses/termcap library found解决方法
- Ubuntu 出现apt-get: Package has no installation candidate问题
- 解决iOS6中编译和真机调试出现不支持armv7s的问题
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation - ____哊.時^随记 - 51CTO技术博客
- android自定义view[控件重用]时出现“No resource identifier found for attribute *** in package *** ”
- Ubuntu 出现apt-get: Package has no installation candidate问题
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- Cygwin中用NDK来编译程序出现"No such file or directory"问题
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- command line warning #10006: ignoring unknown option '/NODEFAULTLIB'错误解决(XPDF编译时出现的问题)
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- Erlang 编译时出现"no such file or directory" 与 当前工作目录问题
- 在编译CUDA程序时出现 fatal error C1083: 无法打开包括文件:“cutil.h”: No such file or directory 的问题
- 使用Ant编译出现如下问题 java.io.FileNotFoundException: bin\classes.dex
- 图片资源添加出现问题: No resource found that matches the given name