2016-09-24 156 views
1

我嘗試在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 

我曾嘗試以下指示以下錯誤:

  1. 從終端窗口code-select --install安裝 命令行工具安裝的MacPorts爲Mac。這是一個標準的 安裝程序,您可以從Macports下載。
  2. sudo port install gcc48 - >這是一個Fortran編譯,這是 的是安裝倍頻一般
  3. sudo port install octave-general [注:這花了很長的時間, 我不得不禁用Spotlight索引...一個小時MacBook Pro的]
  4. sudo port install octave-control
  5. 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軟件包?

+2

我不是一個MacOSX的用戶,但有一些提示:八度3.8.0已經過時,你應該嘗試4.0.x的版本。有關macports,homebrew和fink的說明,請參閱http://wiki.octave.org/Octave_for_MacOS_X。對於初學者也有一個dmg。我無法在您的問題中看到您使用的是哪個MacOSX版本 – Andy

+0

謝謝。我正在使用Mac Yosemite。將編輯它 –

+0

對不起,實際上使用埃爾卡皮坦 –

回答

0

首先,你的所有版本都是舊的,它爲我工作的最新版本:MacOS 10.13 + Xcode 9.2 + clang-4.0 (4.0.1 from Anaconda) + Octave 4.0.3

  • 對於Octave 4.0.3我用他們的MacOS bundle而不是MacPorts。它速度超快,它包含GUI,而且你提到的gcc48沒有任何延遲。

    • pkg install -forge io對我的作品(直接倍頻僞造的數據包進行)

    • 至於MacPorts的方法,我不能爲它說話,我從來不需要使用(我使用BREW相反,但不是八度),它看起來更痛苦,更容易出錯。我期望使用Octave自己的Octave-Forge軟件包安裝應該比端口更清潔,從sudo port install octave-*查看您的輸出。 Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed看起來像安裝了xcode的錯誤版本。所以如果你真的想繼續調試,看看SO或Apple上xcode的許多解決方案。 (您可能只需要命令行工具Xcode的,不是一個完整的Xcode安裝)

    • 我讓我的compiler tools (clang/clang++) from Anaconda,GCC/G ++

    • 但說實話,請更新到一切的最新版本(如上面不),然後再次使用Octave MacOS捆綁包和Octave-Forge而不是MacPorts,它應該可以工作。

    • 僅供參考一般情況下,我被告知2015年左右人們從MacPorts切換到釀造,釀造被認爲不易碎和易於使用。同樣,Anaconda編譯器工具比gcc/g ++工作得更好。

相關問題