Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
pyqt 4.9.4 fails to build on 10.8.2 #15430
I'm fairly new to this, so my apology if I forget something.
I'm trying to recompile QGIS and am getting stuck with pyqt failing to compile.
I went through all basic troubleshooting steps (i.e. updated brew, ran brew doctor and found no errors, tried --env=std, updated Xcode and made sure CLT was installed, checked permissions)
Here is the link to the requested gist https://gist.github.com/3880905
As an FYI, I downloaded the latest QT bottle for mountain lion, but the problem persisted. Might I need to recompile QT on my system or is something else going on?
Thanks in advance.
brew config returns:
scmbp:~ xxxx$ brew --config HOMEBREW_VERSION: 0.9.3 HEAD: 40cc684147fb6686d2639892bbca6c21356cda94 HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: dual-core 64-bit penryn OS X: 10.8.2-x86_64 Xcode: 4.5.1 CLT: 126.96.36.199.1.1249367152 LLVM-GCC: build 2336 Clang: 4.1 build 421 X11: 2.7.4 => /opt/X11 System Ruby: 1.8.7-358 Perl: /usr/bin/perl Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
brew install -vd pyqt produces following output:
scmbp:~ XXXX$ brew install -vd pyqt /usr/local/bin/brew: loading /usr/local/Library/Formula/pyqt.rb /usr/local/bin/brew: loading /usr/local/Library/Formula/sip.rb /usr/local/bin/brew: loading /usr/local/Library/Formula/qt.rb /usr/local/Library/Formula/pyqt.rb: loading /usr/local/Library/Formula/sip.rb /usr/local/Library/Formula/pyqt.rb: loading /usr/local/Library/Formula/qt.rb /usr/local/Library/Formula/pyqt.rb: loading /usr/local/Library/Formula/python.rb ==> Downloading http://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.9.4/PyQt-mac-gpl-4.9.4.tar.gz Already downloaded: /Library/Caches/Homebrew/pyqt-4.9.4.tar.gz /usr/bin/tar xf /Library/Caches/Homebrew/pyqt-4.9.4.tar.gz ==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.4/bin --destdir=/usr/local/Cellar/pyqt/4.9.4/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.4/share/sip python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.4/bin --destdir=/usr/local/Cellar/pyqt/4.9.4/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.4/share/sip Determining the layout of your Qt installation... Error: qtdirs.app/Contents/MacOS/qtdirs failed to create qtdirs.out. Make sure your Qt v4 installation is correct. Error: #<ErrorDuringExecution: Failure while executing: python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.4/bin --destdir=/usr/local/Cellar/pyqt/4.9.4/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.4/share/sip> /usr/local/Library/Homebrew/utils.rb:105:in `safe_system' /usr/local/Library/Homebrew/formula.rb:526:in `system' /usr/local/Library/Formula/pyqt.rb:17:in `install' /usr/local/Library/Homebrew/build.rb:133:in `install' /usr/local/Library/Homebrew/formula.rb:224:in `brew' /usr/local/Library/Homebrew/formula.rb:594:in `stage' /usr/local/Library/Homebrew/extend/fileutils.rb:21:in `mktemp' /usr/local/Library/Homebrew/formula.rb:590:in `stage' /usr/local/Library/Homebrew/formula.rb:219:in `brew' /usr/local/Library/Homebrew/build.rb:114:in `install' /usr/local/Library/Homebrew/build.rb:42:in `main' /usr/local/Library/Homebrew/build.rb:12 /usr/local/Library/Formula/pyqt.rb:35 ==> Rescuing build... When you exit this shell Homebrew will attempt to finalise the installation. If nothing is installed or the shell exits with a non-zero error code, Homebrew will abort. The installation prefix is: /usr/local/Cellar/pyqt/4.9.4
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
When I first tried to install pyqt I received the same error. So QT had been installed previously but I didn't do so specifically. My guess is that it was installed when I first installed QGIS and the necessary frameworks, which I first did using the KyngChaos builds. I then uninstalled QT and reinstalled it from the bottle with no change in the error message.