checking for UNITY... configure: error: Package requirements
问题现象解决方法
?
一、问题现象
?
编译安装一项程序时,提示以下错误
# ./configure checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether to enable maintainer-specific portions of Makefiles... nochecking for style of include used by make... GNUchecking for gcc... gccchecking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking dependency style of gcc... gcc3checking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking minix/config.h usability... nochecking minix/config.h presence... nochecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking for library containing strerror... none requiredchecking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking dependency style of gcc... (cached) gcc3checking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking dependency style of gcc... (cached) gcc3checking for ANSI C header files... (cached) yeschecking for pkg-config... /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yesconfigure: Configuring for plain GTK+checking for PACKAGE... yeschecking for UNITY... configure: error: Package requirements (dee-1.0dbusmenu-glib-0.4unity) were not met:No package 'dee-1.0' foundNo package 'dbusmenu-glib-0.4' foundNo package 'unity' foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively, you may set the environment variables UNITY_CFLAGSand UNITY_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.
?
?
二、解决方法
?
查看./configure 有关于unity的有关参数
# ./configure --help | grep [u]nity --enable-unity Build support for integration in Unity launcher
?
报错unity,那么举一反三使用--disable-unity参数。
# ./configure --disable-unitychecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether to enable maintainer-specific portions of Makefiles... nochecking for style of include used by make... GNUchecking for gcc... gccchecking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking dependency style of gcc... gcc3checking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking minix/config.h usability... nochecking minix/config.h presence... nochecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking for library containing strerror... none requiredchecking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking dependency style of gcc... (cached) gcc3checking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking dependency style of gcc... (cached) gcc3checking for ANSI C header files... (cached) yeschecking for pkg-config... /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yesconfigure: Configuring for plain GTK+checking for PACKAGE... yeschecking whether NLS is requested... yeschecking for intltool-update... /usr/bin/intltool-updatechecking for intltool-merge... /usr/bin/intltool-mergechecking for intltool-extract... /usr/bin/intltool-extractchecking for xgettext... /usr/bin/xgettextchecking for msgmerge... /usr/bin/msgmergechecking for msgfmt... /usr/bin/msgfmtchecking for gmsgfmt... /usr/bin/msgfmtchecking for perl... /usr/bin/perlchecking for perl >= 5.8.1... 5.10.1checking for XML::Parser... okchecking locale.h usability... yeschecking locale.h presence... yeschecking for locale.h... yeschecking for LC_MESSAGES... yeschecking libintl.h usability... yeschecking libintl.h presence... yeschecking for libintl.h... yeschecking for ngettext in libc... yeschecking for dgettext in libc... yeschecking for bind_textdomain_codeset... yeschecking for msgfmt... (cached) /usr/bin/msgfmtchecking for dcgettext... yeschecking if msgfmt accepts -c... yeschecking for gmsgfmt... (cached) /usr/bin/msgfmtchecking for xgettext... (cached) /usr/bin/xgettextchecking for catalogs to be installed... nl_NL it_IT zh_CN fr_FR sv_SE nb_NO tr_TR ru_RU de_DE es_ES cs_CZ gl_ES ca_ES pt_BR id_ID hr_HR zh_TWconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating src/Makefileconfig.status: creating po/Makefile.inconfig.status: creating grsync.specconfig.status: creating grsync.desktopconfig.status: creating grsync.xmlconfig.status: creating it.opbyte.grsync.serviceconfig.status: creating config.hconfig.status: executing depfiles commandsconfig.status: executing default-1 commandsconfig.status: executing po/stamp-it commands
?
至此、完成。