有关ubunt8.04 64位的编译环境

来源:百度知道 编辑:UC知道 时间:2024/09/18 19:18:48
我输入./configure时显示一大堆 最后提示Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
Package 'cairo', required by 'Pycairo', not 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 PYCAIRO_CFLAGS
and PYCAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我把cairo复制后在新里德里装还是装不了 这样我就编译不来啊 晕阿???????!!!~~~!@!@~

解决方法 首先搜一下看看有没有rpm安装包 ,没有的话只能手动make了
你配置的这个东东我倒没试过,看提示信息感觉是Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

环境变量没设置好

那你就看看把PKG_CONFIG_PATH 先搞定喽

查看一下当前的环境变量里面是不是没有PKG_CONFIG_PATH

good luck