无法安装etherape mac

时间:2015-02-09 22:34:02

标签: macos homebrew gnome sniffing

我尝试使用Homebrew在我的mac上安装etherape,但是我收到了这个错误:

Lore:etherape-0.9.13 lorenzoferri$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-apple-darwin14.1.0
checking host system type... x86_64-apple-darwin14.1.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin14.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ETHERAPE... configure: error: Package requirements (glib-2.0 libglade-2.0 libgnomeui-2.0) were not met:

No package 'libgnomeui-2.0' 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 ETHERAPE_CFLAGS
and ETHERAPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

这是brew list的结果:

Lore:etherape-0.9.13 lorenzoferri$ brew list
atk         gdk-pixbuf      hadoop          libglade        mahout          pkg-config
cairo           gettext         harfbuzz        libiconv        maven           python
fontconfig      glib            icu4c           libpng          openssl         readline
freetype        gobject-introspection   jpeg            libtiff         pango           sqlite
gdbm            gtk+            libffi          libxml2         pixman          wget

如果我尝试安装libgnomeui:

Lore:etherape-0.9.13 lorenzoferri$ brew install libgnomeui
==> Installing libgnomeui from aisipos/homebrew-libgnomeui
Error: No available formula for libiconv (dependency of libgnomeui)
Searching formulae...
Searching taps...

否则,如果你能告诉我一个很好的替代etherape for mac,我希望看到我网络中的流量'因为有时我的互联网变得非常慢。

3 个答案:

答案 0 :(得分:1)

问题出在homebrew-libgnomeui / libbonobo.rb:

depends_on 'libiconv'

首先,libiconv已经由OS X提供,所以这不是必需的。

实际错误是由交叉抽头依赖性引起的。您安装的libiconv来自自制/欺骗,但上述依赖关系仅指向了libgnomeui tap或core的brew。尝试使用brew edit libbonobo对其进行测试并指定

depends_on 'homebrew/dupes/libiconv'

答案 1 :(得分:1)

首先添加点按:

$ brew tap aisipos/libgnomeui

然后:

$ brew edit libbonobo

替换它:

depends_on 'libiconv'

有了这个:

depends_on 'homebrew/dupes/libiconv'

然后运行:

$ brew install libgnomeui

或者,然后只需安装etherape,而不是安装libgnomeui(无需编译etherape源代码):

$ brew install etherape

答案 2 :(得分:0)

Ciao Lorenzo,

如果' libgnomeui-2.0'是你需要的只需输入:

brew install libgnomeui