Diferenças entre edições de "Instalação do Octave"

De GNU Octave
Ir para: navegação, pesquisa
Linha 13: Linha 13:
 
sudo apt-get update
 
sudo apt-get update
 
sudo apt-get install octave
 
sudo apt-get install octave
 +
</syntaxhighlight>
 +
 +
=== Compilação do Octave em Ubuntu ===
 +
 +
Para compilar o Octave no Ubuntu, faça o seguinte:
 +
 +
<syntaxhighlight lang="bash">
 +
sudo apt-get install g++ gcc gfortran make autoconf automake bison flex gperf gzip icoutils librsvg2-bin libtool perl rsync tar
 +
sudo apt-get install libblas-dev liblapack-dev libpcre3-dev libarpack2-dev libcurl4-gnutls-dev epstool libfftw3-dev transfig libfltk1.3-dev libfontconfig1-dev libfreetype6-dev libgl2ps-dev libglpk-dev libreadline-dev gnuplot libgraphicsmagick++-dev libhdf5-serial-dev openjdk-7-jdk libsndfile1-dev llvm-dev lpr texinfo libgl1-mesa-dev libosmesa6-dev pstoedit portaudio19-dev libqhull-dev libqrupdate-dev libqscintilla2-dev libqt4-dev libqtcore4 libqtwebkit4 libqt4-network libqtgui4 libsuitesparse-dev libxft-dev zlib1g-dev
 +
cd /tmp
 +
wget -c ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz
 +
tar -xzf octave-4.0.0.tar.gz
 +
cd octave-4.0.0
 +
./configure --prefix=/opt/octave-4.0.0 CPPFLAGS=-I/usr/include/hdf5/serial LDFLAGS=-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/hdf5/serial
 +
make
 +
make check
 +
sudo make install
 
</syntaxhighlight>
 
</syntaxhighlight>

Revisão das 16h20min de 28 de setembro de 2015

Instalação em Windows 7, 8 e 10

Para Windows, use a versão Octave 4.0.0 para Windows.

Prossiga com a instalação, ignorando aos avisos que surjam.

Instalação em Ubuntu

Para instalar no Ubuntu, faça o seguinte:

sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave

Compilação do Octave em Ubuntu

Para compilar o Octave no Ubuntu, faça o seguinte:

sudo apt-get install g++ gcc gfortran make autoconf automake bison flex gperf gzip icoutils librsvg2-bin libtool perl rsync tar
sudo apt-get install libblas-dev liblapack-dev libpcre3-dev libarpack2-dev libcurl4-gnutls-dev epstool libfftw3-dev transfig libfltk1.3-dev libfontconfig1-dev libfreetype6-dev libgl2ps-dev libglpk-dev libreadline-dev gnuplot libgraphicsmagick++-dev libhdf5-serial-dev openjdk-7-jdk libsndfile1-dev llvm-dev lpr texinfo libgl1-mesa-dev libosmesa6-dev pstoedit portaudio19-dev libqhull-dev libqrupdate-dev libqscintilla2-dev libqt4-dev libqtcore4 libqtwebkit4 libqt4-network libqtgui4 libsuitesparse-dev libxft-dev zlib1g-dev
cd /tmp
wget -c ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz
tar -xzf octave-4.0.0.tar.gz
cd octave-4.0.0
./configure --prefix=/opt/octave-4.0.0 CPPFLAGS=-I/usr/include/hdf5/serial LDFLAGS=-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/hdf5/serial
make
make check
sudo make install