【发布时间】:2017-02-02 03:11:32
【问题描述】:
我尝试在 Macbook Air 上的 Octave 上安装软件包(来自 Octave Forge 的软件包 io)。具体使用以下命令pkg install -forge io。但是好像不行,打印出如下错误
/usr/local/octave/3.8.0/bin/mkoctfile-3.8.0: line 512: 1600 Segmentation
fault: 11 /usr/local/octave/3.8.0/bin/g++-mp-4.7 -c -fPIC -I/usr/local/octave/3.8.0/include/octave-3.8.0/octave/.. -I/usr/local/octave/3.8.0/include/octave-3.8.0/octave -I/usr/local/octave/3.8.0/include -pipe-Os -m64 -D_THREAD_SAFE -pthread csvexplode.cc -o csvexplode.o
make: *** [csvexplode.oct] Error 139
/usr/local/octave/3.8.0/bin/mkoctfile-3.8.0 csvexplode.cc
pkg: error running `make' for the io package.
error: called from 'configure_make' in file /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/configure_make.m near line 82, column 9
error: called from:
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m at line 199, column 5
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9
我已尝试以下说明:
-
code-select --install从终端窗口安装 命令行工具 为 Mac 安装 MacPorts。这是一个标准 可以从 Macports 下载的安装程序。 -
sudo port install gcc48--> 这是一个 Fortran 编译器,它是 安装 octave-general 所必需的 -
sudo port install octave-general[注意:这花了很长时间, 我不得不禁用 Spotlight 索引...Macbook Pro 上的小时数] sudo port install octave-controlsudo port install octave-signal
但它刚刚停止,并在sudo port install octave-general 打印以下内容:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for octave-general
---> Dependencies to be installed: octave qscintilla qt4-mac dbus libmng texinfo texlive-basic texlive-bin harfbuzz-icu icu libzzip poppler openjpeg15 poppler-data potrace texlive-common xorg-libXaw xorg-libXmu xorg-libXi xorg-inputproto xorg-libXfixes xorg-fixesproto xorg-libXp xorg-printproto texlive-fonts-recommended texlive-latex transfig netpbm libnetpbm
---> Activating dbus @1.10.8_0
Error: org.macports.activate for port dbus returned: Image error: /Library/LaunchAgents/org.freedesktop.dbus-session.plist already exists and does not belong to a registered port. Unable to activate port dbus. Use 'port -f activate dbus' to force the activation.
Error: Failed to install dbus
Please see the log file for port dbus for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_dbus/dbus/main.log
Error: The following dependencies were not installed: octave qscintilla qt4-mac dbus libmng texinfo texlive-basic texlive-bin harfbuzz-icu icu libzzip poppler openjpeg15 poppler-data potrace texlive-common xorg-libXaw xorg-libXmu xorg-libXi xorg-inputproto xorg-libXfixes xorg-fixesproto xorg-libXp xorg-printproto texlive-fonts-recommended texlive-latex transfig netpbm libnetpbm
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port octave-general failed
我想知道如何在 MacOS 上安装 Octave 包?
【问题讨论】:
-
我不是 MacOSX 用户,但有几点提示:Octave 3.8.0 已过时,您应该尝试 4.0.x 构建。有关 macport、homebrew 和 fink 的说明,请参阅wiki.octave.org/Octave_for_MacOS_X。还有一个针对初学者的dmg。我在您的问题中看不到您使用的是哪个 MacOSX 版本
-
抱歉,实际使用的是 El Capitan
标签: macos installation octave packages macports