• 【问题】SUSE已经安装了libsodium,安装zeromq时出现下面的错误?


    1.【问题】SUSE已经安装了libsodium,安装zeromq时出现下面的错误?

    checking for libsodium... no
    configure: error: Package requirements (libsodium >= 0.0.0) 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 libsodium_CFLAGS
    and libsodium_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    解决办法:

    由于使用的普通用户,且是64位的系统.

    64位操作系统的so文件通常放在/usr/lib64,而不是/usr/lib。

    所以需要这样:

    a.安装libsodium

    通过CC变量使用64位的gcc编译器。

    sudo tar zxf libsodium-1.0.2.tar.gz ;cd libsodium-1.0.2 ;sudo ./configure CC="gcc -m64" --prefix=/usr --libdir=/usr/lib64 && sudo make && sudo make install

    b.安装zeromq

    通过CC变量使用64位的gcc编译器

    sudo tar zxf zeromq-4.1.3.tar.gz ;cd zeromq-4.1.3 ;sudo ./configure --prefix=/usr CC="gcc -m64" PKG_CONFIG_PATH="/usr/lib64/pkgconfig" --libdir=/usr/lib64 && sudo make && sudo make install

    PKG_CONFIG_PATH参数是添加一个pkgconfig文件的搜索目录。

  • 相关阅读:
    重写DEV的DateEdit控件的类只选择年月
    C# 模拟from表单提交webservice
    xpo 条件查询
    bzoj1001 [BeiJing2006]狼抓兔子
    bzoj3631 [JLOI2014]松鼠的新家
    bzoj2456 mode
    bzoj3156防御准备
    bzoj2424 [HAOI2010]订货
    [BZOJ3473]字符串
    BZOJ 3993 [SDOI2015]星际战争
  • 原文地址:https://www.cnblogs.com/jim-hwg/p/4952349.html
Copyright © 2020-2023  润新知