|
|
Linha 1: |
Linha 1: |
− | === Instalação em Windows 7 e Windows 8 === | + | === Instalação em Windows 7, 8 e 10 === |
| | | |
− | Para Windows, recomenda-se a utilização da versão personalizada criada pela Universidad Politécnica de Madrid (UPM). | + | Para Windows, use a versão [https://ftp.gnu.org/gnu/octave/windows/octave-4.0.0_0-installer.exe Octave 4.0.0 para Windows]. |
| | | |
− | Para descarregar esta versão, siga as instruções em [http://mat.caminos.upm.es/octave/index.html Octave UPM].
| + | Prossiga com a instalação, ignorando aos avisos que surjam. |
− | | + | |
− | ===== Navegador na internet (browser) =====
| + | |
− | | + | |
− | No Windows evitem usar o navegador Internet Explorer por questões de segurança. Recomenda-se que usem o navegador [https://www.google.com/intl/pt-PT/chrome/browser/ Chrome] ou o navegador [http://www.mozilla.org/pt-PT/firefox/new/ Firefox].
| + | |
| | | |
| === Instalação em Ubuntu === | | === Instalação em Ubuntu === |
| | | |
− | Pode-se usar também o Octave-UPM em Ubuntu.
| + | Para instalar no Ubuntu, faça o seguinte: |
| | | |
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
− | sudo add-apt-repository ppa:herraiz/octave-upm | + | sudo apt-add-repository ppa:octave/stable |
| sudo apt-get update | | sudo apt-get update |
− | sudo apt-get install octave-upm liboctave-dev | + | sudo apt-get install octave |
| </syntaxhighlight> | | </syntaxhighlight> |
− |
| |
− |
| |
− | === Instalação em Ubuntu (com a língua em Português) ===
| |
− |
| |
− | O Octave-UPM pode ser compilado de forma a suportar mais uma língua, o Português. Se se sente confortável em Linux, siga as instruções seguintes.
| |
− |
| |
− |
| |
− | ==== Instalar dependências ====
| |
− |
| |
− | <syntaxhighlight lang="bash">
| |
− | sudo apt-get install qt4-qmake libqt4-dev libqtwebkit-dev
| |
− | sudo add-apt-repository ppa:herraiz/octave-upm
| |
− | sudo apt-get update
| |
− | sudo apt-get install liboctave-dev
| |
− | </syntaxhighlight>
| |
− |
| |
− | ==== Compilação ====
| |
− |
| |
− | <syntaxhighlight lang="bash">
| |
− | svn checkout https://forja.rediris.es/svn/octaveupm
| |
− | — Checked out revision 392.
| |
− | cd octaveupm/trunk/gui/src/
| |
− | wget https://dl.dropboxusercontent.com/u/21812342/pt-20131008.patch
| |
− | patch -p1 -i pt-20131008.patch
| |
− | — patching file octave-gui.cc
| |
− | — patching file settings-dialog.ui
| |
− | — patching file src.pro
| |
− | wget https://dl.dropboxusercontent.com/u/21812342/pt-pt.ts -O languages/pt-pt.ts
| |
− | lrelease src.pro
| |
− | sudo mkdir -p /usr/share/octave-upm/languages/
| |
− | sudo cp languages/pt-pt.qm /usr/share/octave-upm/languages/
| |
− | cd ..
| |
− | qmake-qt4
| |
− | make
| |
− | sudo make install
| |
− | </syntaxhighlight>
| |
− |
| |
− | ==== Executar ====
| |
− |
| |
− | <syntaxhighlight lang="bash">
| |
− | src/bin/octave-upm
| |
− | </syntaxhighlight>
| |
− |
| |
− |
| |
− | Em Edit -> Settings -> Language
| |
− |
| |
− | Escolher Português
| |
− |
| |
− | Sair e voltar a executar
| |
− |
| |
− | === Instalação em Mac OS X ===
| |
− |
| |
− | Instruções para breve!
| |
− |
| |
− | <!--
| |
− | === Instalação do Matlab em Ubuntu ===
| |
− |
| |
− | <syntaxhighlight lang="bash">
| |
− | mkdir R2013a_UNIX-MAC
| |
− | sudo mount -o loop ~/Transferências/R2013a_UNIX-MAC.iso R2013a_UNIX-MAC
| |
− | cp -r R2013a_UNIX-MAC R2013a_UNIX
| |
− | cd R2013a_UNIX
| |
− | sudo ln -s sys/java/jre/glnxa64 sys/java/jre/glnx86
| |
− | sudo ln -s bin/glnxa64 bin/glnx86
| |
− |
| |
− |
| |
− | sudo ./install -javadir $JAVA_HOME -glnx86
| |
− | sudo ./install -javadir /usr/lib/jvm/java-7-openjdk-i386/jre -glnx86
| |
− | </syntaxhighlight>
| |
− |
| |
− |
| |
− | ''Eventualmente pode precisar de instalar o suporte "Visual C++ Runtime Libraries". Se o programa não correr, siga as instruções a partir de [http://www.microsoft.com/en-us/download/details.aspx?id=8328 Downloads da Microsoft].''
| |
− |
| |
− |
| |
− | ==== Lançar o octave ====
| |
− |
| |
− | No Windows, no menu Iniciar, navegue até Octave UPM R7, e depois escolha ''Octave UPM''
| |
− |
| |
− | Se optou pela versão básica do Octave, no menu Iniciar, navegue até GNU Octave (3.6.2), e depois escolha ''Octave 3.6.2''
| |
− |
| |
− | Aparece-lhe uma janela como a que se apresenta na figura seguinte.
| |
− |
| |
− | [[Ficheiro:Octave-windows.png]]
| |
− |
| |
− | ==== QtOctave para Windows ====
| |
− |
| |
− | Em alternativa ao Octave UPM, existe o QtOctave. É uma interface complementar ao Octave básico, que pode ser descarregado a partir do [http://www.outsch.org/2011/01/29/qtoctave-0-10-1-for-windows/ blog do autor].
| |
− |
| |
− | Depois de descarregar o ficheiro <code>qtoctave-0.10.1-win32.zip</code>, com o rato sobre o mesmo, escolha a opção 'Extrair Todos...' para o descompactar.
| |
− | Destro da nova pasta, e dentro da pasta bin, execute o <code>qtoctave.exe</code>.
| |
− |
| |
− | Pode criar um atalho no ambiente de trabalho. Escolher Enviar para -> Ambiente de trabalho (criar atalho).
| |
− |
| |
− | Na primeira vez que é executado, é necessário definir onde está o octave. Para isso, tem que se ir Config->General configuration e depois selecionar Octave. O executável deverá estar em <code>C:\Octave\Octave-UPM-R7\bin\octave-3.6.2.exe</code> ou em <code>C:\Program Files\Octave-3.6.2\bin\octave-3.6.2.exe</code>, consoante tenha instalado o Octave UPM ou o Octave básico.
| |
− |
| |
− | === Instalação no Ubuntu ===
| |
− |
| |
− | Para instalar no Ubuntu, faça:
| |
− |
| |
− | <code>apt-get install qtoctave octave3.2-doc octave3.2-info</code>
| |
− |
| |
− | ==== Lançar o octave ====
| |
− |
| |
− | No Ubuntu, na linha de comandos, faça:
| |
− |
| |
− | <code>octave</code>
| |
− |
| |
− | -->
| |
Prossiga com a instalação, ignorando aos avisos que surjam.
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave