我嘗試在Macbook Air上的Octave上安裝軟件包(來自Octave Forge的軟件包io)。具體使用以下命令pkg install -forge io
。但它似乎沒有工作,並打印出來如何在Mac OS El Capitan上安裝Octave軟件包?
/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
安裝 命令行工具安裝的MacPorts爲Mac。這是一個標準的 安裝程序,您可以從Macports下載。 sudo port install gcc48
- >這是一個Fortran編譯,這是 的是安裝倍頻一般sudo port install octave-general
[注:這花了很長的時間, 我不得不禁用Spotlight索引...一個小時MacBook Pro的]sudo port install octave-control
sudo 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的用戶,但有一些提示:八度3.8.0已經過時,你應該嘗試4.0.x的版本。有關macports,homebrew和fink的說明,請參閱http://wiki.octave.org/Octave_for_MacOS_X。對於初學者也有一個dmg。我無法在您的問題中看到您使用的是哪個MacOSX版本 – Andy
謝謝。我正在使用Mac Yosemite。將編輯它 –
對不起,實際上使用埃爾卡皮坦 –