2014年4月8日 星期二

安裝octave

呃.... 好懶得打 XD
---------------------------------
[使用apt-get]

直接用apt-get install octave有可能會裝到舊版的, 如果想要安裝新版的話, 可以加入這些apt站台
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
 
然後就會自動安裝新版的octave了~ XD 
[ref] http://askubuntu.com/questions/194151/how-do-you-install-the-latest-version-of-gnu-octave
 
---------------------------------[無法執行]
在終端機打octave, 然後出現這個的話


bash: /usr/local/bin/octave: No such file or directory


可以打這幾個指令去修復
type svnsync
hash -r
或者是直接打這個 
hash -d svnsync 

[ref] http://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-paths-to-executables

---------------------------------
[使用source code]
總而言之, 遇到了一堆缺少套件

configure: error: cannot compile a simple Fortran program
    sudo apt-get install f2c gfortran libblas-dev liblapack-dev

WARNING: I need GNU Readline 4.2 or later
    sudo apt-get install libpcre3-dev libreadline-dev

OpenGL libs (GL and GLU) not found. Native graphics will be disabled.
    sudo apt-get install freeglut3 freeglut3-dev

configure: WARNING: I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h
configure: WARNING: UMFPACK not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: qrupdate not found.  The QR & Cholesky updating functions will be slow.
configure: WARNING: AMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: COLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CCOLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CHOLMOD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CXSparse library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: cURL library not found.  The ftp objects, urlread and urlwrite functions will be disabled.
configure: WARNING: GLPK library not found.  The glpk function for solving linear programs will be disabled.
configure: WARNING: GraphicsMagick++ library not found.  The imread function for reading image files will not be fully functional.
configure: WARNING: HDF5 library not found.  Octave will not be able to save or load HDF5 data files.
configure: WARNING: Qhull library not found -- this will result in loss of functionality of some geometry functions.
configure: WARNING: FLTK config script not found.  Native graphics will be disabled.
    sudo apt-get install libsuitesparse-dev
    sudo apt-get install libcholmod1.7.1
    sudo apt-get install libsuitesparse-dev
    sudo apt-get install libqrupdate-dev
    sudo apt-get install libcurl4-gnutls-dev
    sudo apt-get install libgraphicsMagick++1-dev
    sudo apt-get install libglpk-dev
    sudo apt-get install libhdf5-serial-dev
    sudo apt-get install libqhull5 libqhull-dev

裝完後的錯誤訊息還剩一些些
configure: WARNING: I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h
configure: WARNING: FLTK config script not found.  Native graphics will be disabled.
configure: WARNING:
configure: WARNING: I didn't find the necessary libraries to compile native
configure: WARNING: graphics.  It isn't necessary to have native graphics,
configure: WARNING: but you will need to have gnuplot installed or you won't
configure: WARNING: be able to use any of Octave's plotting commands
configure: WARNING:
configure:
configure: NOTE: libraries may be skipped if a library is not found OR
configure: NOTE: if the library on your system is missing required features.

不過看起來應該是不影響執行啦 XD.....

[ref] http://wiki.octave.org/Octave_for_Debian_systems
後來才發現這個網只有提到一些相依性套件 ˊ_>ˋ
-------------
我要安裝geometry套件啊啊啊啊啊~~~~~

為啥都裝不起來  =口=

沒有留言: