更新
我认为问题可能与安装程序试图将不同的框架解压缩到/Users/bld.qt
(/Users
目录被写保护)的事实有关,所以我尝试创建/Users/bld.qt
并赋予每个人写权限。但是,这不起作用,因为安装程序没有向该文件夹写入任何内容,并且仍然出现错误。
系统信息
我正在运行 Mac OS X 10.6.8 并安装了 XCode 3.2.5。
运行which gcc
输出/usr/bin/gcc
运行which clang
输出/usr/bin/clang
我尝试过
的我尝试使用离线和在线安装程序安装 qt:
qt-mac-opensource-1.4.0-2-x86_64-online.dmg
qt-mac-opensource-5.1.1-clang-offline.dmg
但是在中间Installing component Essential modules
,这两个都给了我以下错误(无论我打了多少次Retry
):
Error during installation process (qt.511.clang_64.essentials):
Command install_name_tool failed.
Arguments: -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQuickTest.framework/Versions/5/QtQuickTest /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQuickTest.framework/Versions/5/QtQuickTest -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtGui.framework/Versions/5/QtGui /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtCore.framework/Versions/5/QtCore /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQml.framework/Versions/5/QtQml /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQml.framework/Versions/5/QtQml -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/bin/qmltestrunner
Output:
在 期间Installing component Add-On modules
,我收到错误:
Error during installation process (qt.511.clang_64.addons):
Command install_name_tool failed.
Arguments: -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQuickTest.framework/Versions/5/QtQuickTest /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQuickTest.framework/Versions/5/QtQuickTest -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtGui.framework/Versions/5/QtGui /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtCore.framework/Versions/5/QtCore /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQml.framework/Versions/5/QtQml /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQml.framework/Versions/5/QtQml -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/bin/qmltestrunner
Output:
在点击Ignore
两者后,安装继续正常,但随后我尝试使用 Qt Creator 并在 Preferences 下收到以下消息:Qt version is not properly installed, please run make install
安装后,运行which qmake
输出/usr/local/qt/5.1.1/5.1.1/clang_64/bin/qmake