pythonbrew で python3.2使うとhomebrewでglibがエラー ― 2012/04/26 08:37
pythonbrewでpythonを3.2で利用すると
brew upgrade glibでエラーが出る
File "/private/tmp/homebrew-glib-2.32.1-Vl8h/glib-2.32.1/gio/gdbus-2.0/codegen/parser.py", line 155, in handle_start_element
if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']:
AttributeError: 'dict' object has no attribute 'has_key'
make[4]: *** [gdbus-test-codegen-generated.c] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [gdbus-test-codegen-generated.h] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
config.log was copied to /Users/butcher/Library/Logs/Homebrew
でエラーどうも python3.2が影響していそうなのでpython2.7.2に戻してbrew upgrade glibとすると
エラーなしに glibがupdate 2.32.1に上がった。
一寸 困るのだが とりあえず2.7.2で全てupdateをかけた
pythonbrew pythons
Python-2.7.2 (*)
Python-3.2
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/butcher/.pythonbrew/pythons/Python-2.7.2/bin/python-config
/Users/butcher/.pythonbrew/pythons/Python-2.7.2/bin/python2.7-config
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install glib
Run `brew missing` for more details.
Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/usr/local/sbin/
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew install glib
Warning: Formula will not build with Clang, trying LLVM
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.32/glib-2.32.1.tar.
Already downloaded: /Library/Caches/Homebrew/glib-2.32.1.tar.xz
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file glib/gunicollate.c
patching file glib/gtimezone.c
patching file aclocal.m4
patching file config.h.in
patching file configure
patching file configure.ac
patching file gio/gdbusprivate.c
patching file gio/xdgmime/xdgmime.c
==> ./configure --disable-maintainer-mode --prefix=/usr/local/Cellar/glib/2.32.1
==> make
==> make install
/usr/local/Cellar/glib/2.32.1: 417 files, 15M, built in 106 seconds
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew outdated
gdk-pixbuf (2.24.1 < 2.26.1)
pango (1.28.4 < 1.30.0)
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew install autoconf
Error: autoconf-2.69 already installed
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew install gdk-pixbuf pango
Error: gdk-pixbuf-2.24.1 already installed
To install this version, first `brew unlink gdk-pixbuf'
Error: pango-1.28.4 already installed
To install this version, first `brew unlink pango'
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew upgrade gdk-pixbuf pango
==> Upgrading 2 outdated packages, with result:
gdk-pixbuf 2.26.1, pango 1.30.0
==> Upgrading gdk-pixbuf
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.26/gdk-pixbu
######################################################################## 100.0%
==> ./configure --disable-maintainer-mode --enable-debug=no --prefix=/usr/local/
==> make
==> make install
/usr/local/Cellar/gdk-pixbuf/2.26.1: 198 files, 3.8M, built in 35 seconds
==> Upgrading pango
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.30/pango-1.30.0.t
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pango/1.30.0 --enable
==> make
==> make install
/usr/local/Cellar/pango/1.30.0: 132 files, 3.9M, built in 36 seconds
brew upgrade glibでエラーが出る
File "/private/tmp/homebrew-glib-2.32.1-Vl8h/glib-2.32.1/gio/gdbus-2.0/codegen/parser.py", line 155, in handle_start_element
if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']:
AttributeError: 'dict' object has no attribute 'has_key'
make[4]: *** [gdbus-test-codegen-generated.c] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [gdbus-test-codegen-generated.h] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
config.log was copied to /Users/butcher/Library/Logs/Homebrew
でエラーどうも python3.2が影響していそうなのでpython2.7.2に戻してbrew upgrade glibとすると
エラーなしに glibがupdate 2.32.1に上がった。
一寸 困るのだが とりあえず2.7.2で全てupdateをかけた
pythonbrew pythons
Python-2.7.2 (*)
Python-3.2
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/butcher/.pythonbrew/pythons/Python-2.7.2/bin/python-config
/Users/butcher/.pythonbrew/pythons/Python-2.7.2/bin/python2.7-config
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install glib
Run `brew missing` for more details.
Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/usr/local/sbin/
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew install glib
Warning: Formula will not build with Clang, trying LLVM
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.32/glib-2.32.1.tar.
Already downloaded: /Library/Caches/Homebrew/glib-2.32.1.tar.xz
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file glib/gunicollate.c
patching file glib/gtimezone.c
patching file aclocal.m4
patching file config.h.in
patching file configure
patching file configure.ac
patching file gio/gdbusprivate.c
patching file gio/xdgmime/xdgmime.c
==> ./configure --disable-maintainer-mode --prefix=/usr/local/Cellar/glib/2.32.1
==> make
==> make install
/usr/local/Cellar/glib/2.32.1: 417 files, 15M, built in 106 seconds
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew outdated
gdk-pixbuf (2.24.1 < 2.26.1)
pango (1.28.4 < 1.30.0)
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew install autoconf
Error: autoconf-2.69 already installed
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew install gdk-pixbuf pango
Error: gdk-pixbuf-2.24.1 already installed
To install this version, first `brew unlink gdk-pixbuf'
Error: pango-1.28.4 already installed
To install this version, first `brew unlink pango'
suzuki-juunotto-no-MacBook-Pro:~ butcher$ brew upgrade gdk-pixbuf pango
==> Upgrading 2 outdated packages, with result:
gdk-pixbuf 2.26.1, pango 1.30.0
==> Upgrading gdk-pixbuf
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.26/gdk-pixbu
######################################################################## 100.0%
==> ./configure --disable-maintainer-mode --enable-debug=no --prefix=/usr/local/
==> make
==> make install
/usr/local/Cellar/gdk-pixbuf/2.26.1: 198 files, 3.8M, built in 35 seconds
==> Upgrading pango
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.30/pango-1.30.0.t
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pango/1.30.0 --enable
==> make
==> make install
/usr/local/Cellar/pango/1.30.0: 132 files, 3.9M, built in 36 seconds
最近のコメント