macports无法在Mac 10.9.5中安装八度音程

时间:2014-12-08 19:09:58

标签: gnuplot octave macports

我正在尝试使用macports使用以下命令安装octave:

sudo port install octave

在必须安装gnuplot之前,一切似乎都没问题,我有这样的错误消息:

--->  Computing dependencies for octave
--->  Dependencies to be installed: gnuplot gperf grep gsed hdf5 less pstoedit plotutils qhull qrupdate transfig netpbm
--->  Building gnuplot
Error: org.macports.build for port gnuplot returned: command execution failed
Error: Failed to install gnuplot
Please see the log file for port gnuplot for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/main.log
Error: The following dependencies were not installed: gnuplot gperf grep gsed hdf5 less pstoedit plotutils qhull qrupdate transfig netpbm
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port octave failed

然后我转到文件/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/main.log

并且最后一位似乎引用了错误,如下所示:

:info:build Making all in docs
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.6/docs'
:info:build ./doc2gih ./gnuplot.doc gnuplot.gih
:info:build dyld: Library not loaded: /opt/local/lib/libgobject-2.0.0.dylib
:info:build   Referenced from: /opt/local/lib/libpangocairo-1.0.0.dylib
:info:build   Reason: Incompatible library version: libpangocairo-1.0.0.dylib requires version 4201.0.0 or later, but libgobject-2.0.0.dylib provides version 4001.0.0
:info:build make[2]: *** [gnuplot.gih] Trace/BPT trap: 5
:info:build make[2]: Leaving directory `/opt/local/var/macports/build   /_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.6/docs'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.6'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.6'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.6" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port gnuplot returned: command execution failed
:debug:build Error code: CHILDSTATUS 89792 2
:debug:build Backtrace: command execution failed
while executing
"system -nice 0 $fullcmdstring"
("eval" body line 1)
invoked from within
"eval system $notty $nice \$fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"portbuild::build_main org.macports.build"
("eval" body line 1)
invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for gnuplot: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install gnuplot
:debug:build can not find channel named "debuglog"
while executing
"tcl::puts debuglog {DEBUG: Starting logging for gnuplot}"
invoked from within
"catch "tcl::puts $args""
:notice:build Please see the log file for port gnuplot for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/main.log

除了使用二进制安装程序安装octave之外,我不知道如何克服这个问题...但我想知道macport安装发生了什么。

1 个答案:

答案 0 :(得分:2)

似乎portfile没有强制更新。如果内存服务,libgobjectglib2的一部分。试试:

> sudo port -v selfupdate
> sudo port [-b] update glib2 [-universal]

然后再次尝试安装octave

可能值得检查其他库/端口是否需要更新:

> port list outdated
> sudo port [-b] update outdated [-universal]
> sudo port uninstall inactive