|
|
(Há 13 edições intermédias do mesmo utilizador que não estão a ser apresentadas) |
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).
| + | Descarregue a versão mais recente a partir de: https://www.gnu.org/software/octave/download.html |
| | | |
− | Para descarregar esta versão, siga as instruções em [http://mat.caminos.upm.es/octave/index.html Octave UPM].
| + | Use as opções de instalação pré-definidas. |
| | | |
− | ===== Navegador na internet (browser) =====
| + | Por fim, execute o Octave (Gui). |
| | | |
− | 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].
| + | [[Ficheiro:Octave-4.2.1.PNG|Interface gráfica do Octave (GUI)]] |
| | | |
| === Instalação em Ubuntu === | | === Instalação em Ubuntu === |
| | | |
− | Pode-se usar também o Octave-UPM em Ubuntu.
| + | Para instalar no Ubuntu, use o gestor de aplicação "Software Ubuntu". O Octave está disponível nos repositórios do Ubuntu. |
| | | |
− | <syntaxhighlight lang="bash">
| + | Em alternativa, pode usar a instalação https://flathub.org/apps/details/org.octave.Octave |
− | sudo add-apt-repository ppa:herraiz/octave-upm
| + | |
− | sudo apt-get update
| + | |
− | sudo apt-get install octave-upm liboctave-dev
| + | |
− | </syntaxhighlight>
| + | |
| | | |
| + | === Octave em Mac OS X === |
| | | |
− | === Instalação em Ubuntu (com a língua em Português) ===
| + | Para instalar o Octave no Mac OS, instale o bundle disponível a partir do [http://wiki.octave.org/Octave_for_MacOS_X wiki do Octave]. |
− | | + | |
− | 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!
| + | |
− | | + | |
− | | + | |
− | <!--
| + | |
− | ''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>
| + | |
− | | + | |
− | -->
| + | |
Use as opções de instalação pré-definidas.
Por fim, execute o Octave (Gui).
Para instalar no Ubuntu, use o gestor de aplicação "Software Ubuntu". O Octave está disponível nos repositórios do Ubuntu.