Não foi possível enviar o arquivo. Será algum problema com as permissões?
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior Próxima revisão | Revisão anterior Próxima revisão Ambos lados da revisão seguinte | ||
software:art:install [2007/12/11 10:01] paulojus |
software:art:install [2007/12/11 10:30] paulojus |
||
---|---|---|---|
Linha 7: | Linha 7: | ||
==== Installing the R software ==== | ==== Installing the R software ==== | ||
- | - Add the R repository in the ''source.list'' (alternativelly you may use the synaptic tool).\\ | + | 1. Add the R repository in the ''source.list'' (alternativelly you may wish to use the synaptic tool).\\ |
- | - Open the file:\\ | + | 1.1 Open the file:\\ |
$ sudo su - | $ sudo su - | ||
root$ vim /etc/apt/sources.list | root$ vim /etc/apt/sources.list | ||
- | - Add the repository by including the following line to the ''source.list'' file\\ | + | |
+ | 1.2 Add the repository by including the following line to the ''source.list'' file\\ | ||
deb http://cran.r-project.org/bin/linux/ubuntu gutsy/ | deb http://cran.r-project.org/bin/linux/ubuntu gutsy/ | ||
- | - Install the keys (Ubuntu specific)\\ | + | |
+ | 1.3 Install the keys (Ubuntu specific)\\ | ||
root$ gpg --keyserver subkeys.pgp.net --recv-key E2A11821 | root$ gpg --keyserver subkeys.pgp.net --recv-key E2A11821 | ||
root$ gpg -a --export E2A11821 | sudo apt-key add - | root$ gpg -a --export E2A11821 | sudo apt-key add - | ||
root$ apt-get update | root$ apt-get update | ||
- | - Install R | + | |
+ | 1.4 Install R | ||
root$ apt-get install r-base r-base-core r-base-html r-base-latex r-doc-html r-doc-info r-doc-pdf r-recommended | root$ apt-get install r-base r-base-core r-base-html r-base-latex r-doc-html r-doc-info r-doc-pdf r-recommended | ||
- | ==== 2. Install other tools ==== | + | ==== Install other tools ==== |
root$ sudo apt-get install g++ libpq-dev gfortran xemacs21 ess | root$ sudo apt-get install g++ libpq-dev gfortran xemacs21 ess | ||
- | ==== 3. Get the tools to install **aRT** dependencies ==== | + | ==== Get the tools to install aRT dependencies ==== |
This includes installing a ''MySQL'' data base and compiling ''TerraLib''\\ | This includes installing a ''MySQL'' data base and compiling ''TerraLib''\\ | ||
root$ wget http://www.leg.ufpr.br/aRT/install-aRT-dep.zip | root$ wget http://www.leg.ufpr.br/aRT/install-aRT-dep.zip | ||
Linha 35: | Linha 38: | ||
Ainda neste último passo, após a atualização dos programas do Ubuntu é automaticamente feita o download e compilação do TerraLib/TerraView (e isto demora MUITO!!!). | Ainda neste último passo, após a atualização dos programas do Ubuntu é automaticamente feita o download e compilação do TerraLib/TerraView (e isto demora MUITO!!!). | ||
- | A seguir faça crie o link simbólico\\ | + | Create a symbolic link to call the **terraView** application\\ |
$ sudo ln -s /usr/local/terralib/aplicativos/terraView/linux/terraView /usr/bin | $ sudo ln -s /usr/local/terralib/aplicativos/terraView/linux/terraView /usr/bin | ||
$ source /etc/bash.bashrc | $ source /etc/bash.bashrc | ||
Linha 65: | Linha 68: | ||
Other user and permissions can be set. However we will use **aRT** tools to do this!!! Even the above instructions could be se from **aRT** (using the aRT function ''addPermissions()'') if the DBMS root pasword is available. | Other user and permissions can be set. However we will use **aRT** tools to do this!!! Even the above instructions could be se from **aRT** (using the aRT function ''addPermissions()'') if the DBMS root pasword is available. | ||
+ | ==== Testing the installation ==== | ||
+ | To check whethr the installation above is working well go to a "normal user" account in your linux system (here we use "aluno") start R\\ | ||
+ | aluno$ R | ||
+ | |||
+ | Loading the aRT package, | ||
+ | > require(aRT) | ||
+ | you will see to following in the R screen:\\ | ||
+ | Carregando pacotes exigidos: aRT | ||
+ | Carregando pacotes exigidos: sp | ||
+ | |||
+ | --------------------------------------------- | ||
+ | R-TERRALIB API | ||
+ | aRT version 1.4-2 (2007-12-07) is now loaded | ||
+ | --------------------------------------------- | ||