Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

Ambos lados da revisão anteriorRevisão anterior
Próxima revisão
Revisão anterior
software:art:install [2007/12/11 10:15] paulojussoftware:art:install [2007/12/11 19:10] (atual) paulojus
Linha 24: Linha 24:
  
 ==== 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 lapack3  lapack3-dev refblas3 refblas3-dev
  
 ==== Get the tools to install aRT dependencies ====  ==== Get the tools to install aRT dependencies ==== 
Linha 38: 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!!!).
  
-Create a symbolic link to call the **terraView** application\\ +If **terralib/terraView** compiled well you will see on screen:\\ 
-  $ sudo ln -s /usr/local/terralib/aplicativos/terraView/linux/terraView /usr/bin +  make[1]: Saindo do diretório `/usr/local/terralib/terraView/linux' 
-  $ source /etc/bash.bashrc+ 
 +Then create a symbolic link to call the **terraView** application\\ 
 +  root$ sudo ln -s /usr/local/terralib/aplicativos/terraView/linux/terraView /usr/bin 
 + 
 +If you see the mesage:\\ 
 +  ./install-aRT-dep.sh: 154: Syntax error: Bad substitution 
 + 
 +Then add the enviroment variable manually by adding the folowwing lines to your ''/etc/bash.bashrc'' file:\\ 
 +  TERRALIBDIR=/usr/local/terralib 
 +  LD_LIBRARY_PATH=$TERRALIBDIR/terralibx/lib 
 +  export LD_LIBRARY_PATH 
 + 
 +and load the environmental variables with: (new user sessions will load this automatically): 
 +  root$ source /etc/bash.bashrc
  
 ==== Installing R packages: aRT and sp ==== ==== Installing R packages: aRT and sp ====
Linha 64: Linha 77:
  
 You will be prompt for the DBMS root password. After typing it in you will the the mysql prompt ''(mysql >)''. To grant full privileges to a MySQL user (''aluno'' in the example below) type:\\ You will be prompt for the DBMS root password. After typing it in you will the the mysql prompt ''(mysql >)''. To grant full privileges to a MySQL user (''aluno'' in the example below) type:\\
-  > grant all privileges on *.* to aluno@localhost+  mysql> grant all privileges on *.* to aluno@localhost 
 +  mysql> quit 
 + 
 +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 ''addPermission()'') 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 
 +  ---------------------------------------------
  
-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.+Now try to connect the DBMS: \\ 
 +  > con <- openConn() 
 +  > con 
 +  Object of class aRTconn 
 +   
 +  DBMS: "MySQL" 
 +  User: "aluno" 
 +  Password: "" 
 +  Port: 3306 
 +  Host: ""
  
 +If this works then **great**!! You are ready to use aRT. You can experiment woth several example scripts at the [[http://www.leg.ufpr.br/aRT|aRT web page]] and/or chack the aRT vignettes (also avaiable at the aRT page). To list the aRT  vignettes shiped with aRT type:\\
 +  > vignette(package="aRT")
  
 +  Vignettes in package 'aRT':
 +  aRTconn                 Connecting and Managing Databases with aRT (source, pdf)
 +  aRTintro                aRT: R-TerraLib API (source, pdf)
 +  aRTsp                   Working with sp and aRT (source, pdf)
 +  aRTtable                Tables and Queries With aRT (source, pdf)
  

QR Code
QR Code software:art:install (generated for current page)