Ubuntu 14.04安裝Octave

安裝依賴

首先使用apt-get install安裝依賴。(如下包括全部推薦的可選包)web

libjack0 libjack-dev libarpack2-dev libcurl4-gnutls-dev epstool libfftw3-dev transfig libfontconfig1-dev libfreetype6-dev libgl2ps-dev libglpk-dev libreadline-dev gnuplot libhdf5-serial-dev openjdk-7-jdk libsndfile1-dev lpr texinfo libosmesa6-dev pstoedit portaudio19-dev libqhull-dev libqrupdate-dev libqscintilla2-dev libqt4-dev libqtcore4 libqtwebkit4 libqt4-network libqtgui4 libsuitesparse-dev libxft-dev zlib1g-dev libfltk1.3-dev llvm-3.6-dev libgl1-mesa-dev

因爲Ubuntu倉庫中的GraphicsMagick的quantum depth爲8,因此在上述命令中咱們沒有包括libgraphicsmagick++1-dev,而是經過如下步驟編譯安裝。curl

編譯安裝GraphicsMagick

下載GraphicsMagick並解壓,而後進入其目錄,執行以下命令:ui

$ ./configure --with-quantum-depth=32 --enable-shared --disable-static --with-magick-plus-plus=yes
$ make
$ sudo make install

編譯安裝Octave

爲了不以下錯誤:url

Warning: HDF5 library not found. Octave will not be able to save or load HDF5 data files.spa

在configure中要指定庫文件位置。以後編譯安裝:code

$ ./configure --prefix=/opt CPPFLAGS=-I/usr/include/hdf5/serial LDFLAGS=-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/hdf5/serial
$ make
$ sudo make install
相關文章
相關標籤/搜索