通过MacPorts在Mac OS x 10.10上安装Qutip

时间:2015-08-24 10:07:20

标签: osx-yosemite macports qutip

我不确定我是否可以在这里提出这个问题。

我尝试在我的mac osx 10.10上安装QuTips。我是按照这两个文档进行安装QutipMacPorts的。现在我很难安装gcc49。

当我执行此命令sudo port install py34-scipy时,我收到以下错误

    Admins-iMac-2:base admin$ sudo port install py27-scipy
--->  Computing dependencies for py27-scipy
The following dependencies will be installed: 
 gcc49
 py27-numpy
 swig
 swig-python
Continue? [Y/n]: y
--->  Building gcc49
Error: Failed to build gcc49: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py27-scipy failed
Admins-iMac-2:base admin$ sudo port install py34-numpy
--->  Computing dependencies for py34-numpy
The following dependencies will be installed:  gcc49
Continue? [Y/n]: y
--->  Building gcc49
Error: Failed to build gcc49: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py34-numpy failed
Admins-iMac-2:base admin$ vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log
Admins-iMac-2:base admin$ 

我去查找main.log文件。在这个文件的末尾我得到了以下错误

:info:build gcc/vtable-verify.o differs
:info:build make[2]: *** [compare] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build'
:info:build make[1]: *** [stage3-bubble] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build" && /usr/bin/make -j4 -w bootstrap
:info:build Exit code: 2
:error:build Failed to build gcc49: command execution failed
:debug:build Error code: CHILDSTATUS 2595 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:debug:build Registry error: gcc49 not registered as installed & active.
:debug:build     invoked from within
:debug:build "registry_active $subport"
:debug:build     invoked from within
:debug:build "$workername eval registry_active \$subport"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log for details.

我不熟悉这个。没有gcc49,我无法完成安装。或者我安装gcc48,但不适合我。每次它自动尝试ti安装gcc49。

任何人都有任何建议,我们将非常感激。

1 个答案:

答案 0 :(得分:1)

我可以回答我的问题

运行sudo port clean gcc49,然后重试