安装GLIB
时,我会得到此错误:
进行安装。 ./install -s -c -d'/usr/bin' /usr/bin/install -c glib -getTextize'/usr/bin' ./install -sh -c -d'/usr/local/share/glib-2.0/getText' /usr/bin/install -c mkinstalldirs'/usr/local/share/glib-2.0/getText' ./install -sh -c -d'/usr/lib/pkgconfig' /usr/bin/install -c -m 644 glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-no-export-2.0.pc gthread-2.0.pc gthread-2.pc gio-2.0.pc gio-2.0.pc gio-2.0.pc gio-unix-2.0.pc'/usr/lib/pkgconfig' 在M4macros中安装 制作[2]:"安装 - exec-am"无需完成。 .././install -sh -c -d'/usr/local/share/aclocal' /usr/bin/install -c -m 644 glib -2.0.m4 glib -getText.m4 gsettings.m4'/usr/usr/local/share/acnears/aclocal' 使安装glib Gen glib_probes.o 用法:dtrace [-aacefhlqsvvwz] [-ark i386 | x86_64] [-b bufsz] [-c cmd] [-d name [= def]] [-i path] [-l路径] [-o output] [-p pid] [-s脚本] [-u名称] [-x Opt [= Val]]
[-P provider [[ predicate ] action ]]
[-m [ provider: ] module [[ predicate ] action ]]
[-f [[ provider: ] module: ] func [[ predicate ] action ]]
[-n [[[ provider: ] module: ] func: ] name [[ predicate ] action ]]
[-i probe-id [[ predicate ] action ]] [ args ... ]
predicate -> '/' D-expression '/'
action -> '{' D-statements '}'
-arch Generate programs and Mach-O files for the specified architecture
-a claim anonymous tracing state
-A generate plist(5) entries for anonymous tracing
-b set trace buffer size
-c run specified command and exit upon its completion
-C run cpp(1) preprocessor on script files
-D define symbol when invoking preprocessor
-e exit after compiling request but prior to enabling probes
-f enable or list probes matching the specified function name
-F coalesce trace output by function
-h generate a header file with definitions for static probes
-H print included files when invoking preprocessor
-i enable or list probes matching the specified probe id
-I add include directory to preprocessor search path
-l list probes matching specified criteria
-L add library directory to library search path
-m enable or list probes matching the specified module name
-n enable or list probes matching the specified probe name
-o set output file
-p grab specified process-ID and cache its symbol tables
-P enable or list probes matching the specified provider name
-q set quiet mode (only output explicitly traced data)
-s enable or list probes according to the specified D script
-S print D compiler intermediate code
-U undefine symbol when invoking preprocessor
-v set verbose mode (report stability attributes, arguments)
-V report DTrace API version
-w permit destructive actions
-x enable or modify compiler and tracing options
-Z permit probe descriptions that match zero probes
make [1]:* [glib_probes.o]错误2 制作: * [安装回复]错误1
编辑:遵循尼尔森的建议后,出现了这个错误,直到最后:
gclosure.c:29:17: error: ffi.h: No such file or directory
gclosure.c:1128: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
gclosure.c: In function 'value_from_ffi_type':
gclosure.c:1217: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1217: error: (Each undeclared identifier is reported only once
gclosure.c:1217: error: for each function it appears in.)
gclosure.c:1217: error: 'int_val' undeclared (first use in this function)
gclosure.c:1217: error: expected expression before ')' token
gclosure.c: At top level:
gclosure.c:1296: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
gclosure.c: In function 'g_cclosure_marshal_generic':
gclosure.c:1391: error: 'ffi_type' undeclared (first use in this function)
gclosure.c:1391: error: 'rtype' undeclared (first use in this function)
gclosure.c:1394: error: 'atypes' undeclared (first use in this function)
gclosure.c:1397: error: 'ffi_cif' undeclared (first use in this function)
gclosure.c:1397: error: expected ';' before 'cif'
gclosure.c:1405: warning: implicit declaration of function 'value_to_ffi_type'
gclosure.c:1409: error: 'ffi_type_void' undeclared (first use in this function)
gclosure.c:1412: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1415: error: expected expression before ')' token
gclosure.c:1427: error: 'ffi_type_pointer' undeclared (first use in this function)
gclosure.c:1451: warning: implicit declaration of function 'ffi_prep_cif'
gclosure.c:1451: error: 'cif' undeclared (first use in this function)
gclosure.c:1451: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function)
gclosure.c:1451: error: 'FFI_OK' undeclared (first use in this function)
gclosure.c:1454: warning: implicit declaration of function 'ffi_call'
gclosure.c: In function 'g_cclosure_marshal_generic_va':
gclosure.c:1469: error: 'ffi_type' undeclared (first use in this function)
gclosure.c:1469: error: 'rtype' undeclared (first use in this function)
gclosure.c:1472: error: 'atypes' undeclared (first use in this function)
gclosure.c:1476: error: 'ffi_cif' undeclared (first use in this function)
gclosure.c:1476: error: expected ';' before 'cif'
gclosure.c:1489: error: 'ffi_type_void' undeclared (first use in this function)
gclosure.c:1492: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1495: error: expected expression before ')' token
gclosure.c:1504: error: 'ffi_type_pointer' undeclared (first use in this function)
gclosure.c:1525: warning: implicit declaration of function 'va_to_ffi_type'
gclosure.c:1547: error: 'cif' undeclared (first use in this function)
gclosure.c:1547: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function)
gclosure.c:1547: error: 'FFI_OK' undeclared (first use in this function)
make[3]: *** [libgobject_2_0_la-gclosure.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
编辑:决定将PKG_CONFIG_PATH
添加到我的用户中的bash .profile。不起作用。
似乎找不到 dtrace
命令,根据glib building docs:
DTRACE的可选支持需要SYS/SDT.H标头,该标题由SystemTap在Linux上提供。要在没有dtrace的情况下建造glib,请使用 -disable-dtrace配置选项。
可以使用-disable-systemTap配置选项禁用SystemTap的可选支持。
因此,如果您对SystemTap支持不感兴趣,请在运行configure
时将其禁用,例如:
configure --disable-dtrace --disable-systemtap