instalacion
===========
1. instalar netbeans
2. glassfish 312
3. bajar source y configurar netbeans hasta oder compilar
3.1 pf11 para hacer build y copiar el war de dist de netbeans a glassfish.
4.Generar usuario en postgre para acceso a base DVN
C:\postgre92\bin>createuser.exe -SrdPE usuarioDVN
Ingrese la contrase±a para el nuevo rol:
^C
C:\postgre92\bin>createuser.exe -SrdPE usuarioDVN
Ingrese la contrase±a para el nuevo rol:
IngrÚsela nuevamente:
createuser: no se pudo conectar a la base de datos postgres: FATAL: no hay una
línea en pg_hba.conf para «::1», usuario «mhopp», base de datos «postgres», SSL
inactivo
C:\postgre92\bin>createuser.exe -SrdPE usuarioDVN
Ingrese la contrase±a para el nuevo rol:
IngrÚsela nuevamente:
createuser: no se pudo conectar a la base de datos postgres: FATAL: no hay una
línea en pg_hba.conf para «::1», usuario «mhopp», base de datos «postgres», SSL
inactivo
C:\postgre92\bin>createuser.exe -SrdPE usuarioDVN
Ingrese la contrase±a para el nuevo rol:
IngrÚsela nuevamente:
Contrase±a:
createuser: no se pudo conectar a la base de datos postgres: FATAL: la autentif
icación password falló para el usuario «mhopp»
C:\postgre92\bin>createuser.exe -SrdPE usuarioDVN
Ingrese la contrase±a para el nuevo rol:
^C
C:\postgre92\bin>createuser.exe -SrdPE usuarioDVN
Ingrese la contrase±a para el nuevo rol:
IngrÚsela nuevamente:
Contrase±a:
createuser: no se pudo conectar a la base de datos postgres: FATAL: la autentif
icación password falló para el usuario «mhopp»
4.1.Creando un usuario Postgres para W7 con grupo administrador:
C:\Users\postgres.10-020>cd C:\postgre92\bin
C:\postgre92\bin>createuser -SrdPE usuarioDVN
Ingrese la contrase±a para el nuevo rol:
IngrÚsela nuevamente:
Contrase±a:
createuser: no se pudo conectar a la base de datos postgres: FATAL: la autentif
icación password falló para el usuario «postgres»
C:\postgre92\bin>createuser -SrdPE usuDVN
Ingrese la contrase±a para el nuevo rol: argento1
IngrÚsela nuevamente:argento1
Contrase±a:
C:\postgre92\bin>
======================================================================================
5. Cambiar C:\mhopp.CONICET\Mis documentos\NetBeansProjects\dvn-app\trunk\tools\installer\dvninstall\domain.xml.TEMPLATE para mandar a glassfish con usuario y base
%POSTGRES_SERVER=localhost
%POSTGRES_DATABASE%=DVN
%POSTGRES_PORT%=5432
%POSTGRES_USER%=usuDVN
%POSTGRES_PASSWORD%=argento1
%MAIL_SERVER%=berni.conicet.gov.ar
%DEF_MEM_SIZE%=1G
-Xmx1g
%HOST_DNS_ADDRESS%=localhost
%GF_SPEC_INDICATOR%=52b3c415-7aef-4474-9974-04239a8378eb
6.C:\glassfish312\glassfish\lib
copiar postgresql-9.1-902.jdbc4.jar
7.script sql para bd
En C:\mhopp.CONICET\Mis documentos\NetBeansProjects\dvn-app\trunk\src\DVN-EJB\src\conf\referenceData.sql
8. localhost:8282/dvn deberia arrancar.
9. para hacer un admin set en la tabla vdcuser con ek id del usuario el id del rol = 2 (admin)
update vdcuser set networkrole_id=2 where id=10
10. desde postgre 8.2 se requiere,
GRANT USAGE, SELECT ON SEQUENCE studyid_seq TO PUBLIC;
11.problema con PK cuando se quiere agregar un archivo al estudio.
probando con GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO "usuDVN"; no da resultado
probando con GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO postgres; no da resultado
probando con GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO mhopp; no da resultado
- copiar los archivos dvninstall/working_directory a config del glasfish
- copiar web-core.jar a lib del glassfish. (patch para glassfish 3.2)
===============================================================================================================================================================
12.R instalacion
ATENCION::
Windows: There is a binary version of Rserve in the download section.
Copy the file to the directory containing R.DLL.
If you have more versions of R, make sure that you use the one most recently installed, becasue Rserve detects the location of $RHOME from the registry.
Although Rserve works on Windows it is not recommended to use it on that platform.
=================================================================================
Windows lacks important features that make the separation of namespaces possible, therefore Rserve for Windows works in cooperative mode only,
that is only one connection at a time is allowed and all subsequent connections share the same namespace.
Briefly: don't use Windows unless you really have to. There is a DCOM interface available for R, you may be better off with that solution.
Ref: http://www.rforge.net/Rserve/doc.html
Para DCOM: http://cran.r-project.org/contrib/extra/dcom/00ReadMe.html
Installation instructions:
=========================
-Install the latest version of R from your favorite CRAN mirror (refer to http://cran.r-project.org/ for more information).
-Once you have R installed, download the package dvnextra.tar
from this location:
http://dvn.iq.harvard.edu/dist/R/dvnextra.tar
en R tirar este comando por cada paquete a instalar:
> install.packages("C:/temp/dvnextra/accuracy_1.35.tar.gz", type="source", INSTALL_opts=c("--no-test-load"), repos=NULL, dependencies=T, lib=.libPaths()[length(.libPaths())] )
* installing *source* package 'accuracy' ...
** package 'accuracy' successfully unpacked and MD5 sums checked
** libs
ERROR: compilation failed for package 'accuracy'
* removing 'C:/Program Files/R/R-2.15.2/library/accuracy'
Mensajes de aviso perdidos
1: comando ejecutado 'C:/PROGRA~1/R/R-215~1.2/bin/x64/R CMD INSTALL --no-test-load -l "C:/Program Files/R/R-2.15.2/library" "C:/temp/dvnextra/accuracy_1.35.tar.gz"' tiene estatus 1
2: In install.packages("C:/temp/dvnextra/accuracy_1.35.tar.gz", type = "source", :
installation of package C:/temp/dvnextra/accuracy_1.35.tar.gz had non-zero exit status
Esto pasa por no instalar rtools
- instalar rtools
http://cran.r-project.org/bin/windows/Rtools/Rtools216.exe
actualizar path (segun rtools.txt se actualiza solo pero no pasa)
Finally, the Rtools installer will optionally edit your PATH variable as follows:
PATH=c:\Rtools\bin;c:\Rtools\MinGW\bin;c:\R\bin;
C:\Program Files\R\R-2.15.2\bin\x64>R CMD INSTALL --no-test-load -l "C:/Program
Files/R/R-2.15.2/library" "C:/temp/dvnextra/accuracy_1.35.tar.gz"
* installing *source* package 'accuracy' ...
** package 'accuracy' successfully unpacked and MD5 sums checked
** libs
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-215~1.2/etc/x64/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-215~1.2/etc/x64/Makeco
nf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
gcc -m64 -I"C:/PROGRA~1/R/R-215~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg
/extralibs64/local/include" -DNONONBLOCK -O2 -Wall -std=gnu99 -mtune=core2 -
c frexp.c -o frexp.o
gcc: not found
make: *** [frexp.o] Error 127
ERROR: compilation failed for package 'accuracy'
* removing 'C:/Program Files/R/R-2.15.2/library/accuracy'
agregar C:\Rtools\gcc-4.6.3\bin en path
C:\Program Files\R\R-2.15.2\bin\x64>R CMD INSTALL --no-test-load -l "C:/Program
Files/R/R-2.15.2/library" "C:/temp/dvnextra/Zelig_3.5.4.tar.gz.tar.gz"
C:\Program Files\R\R-2.15.2\bin\x64>R CMD INSTALL --no-test-load -l "C:/Program
Files/R/R-2.15.2/library" "C:/temp/dvnextra/UNF_1.16.tar.gz"
C:\Program Files\R\R-2.15.2\bin\x64>R CMD INSTALL --no-test-load -l "C:/Program
Files/R/R-2.15.2/library" "C:/temp/dvnextra/VDCutil_1.17.tar.gz"
ERROR: dependencies 'R2HTML', 'VGAM' are not available for package 'VDCutil'
* removing 'C:/Program Files/R/R-2.15.2/library/VDCutil'
-instalar paquetes de dependencia desde rgui.exe (antes poner en las propiedades de arranque del shotcut
"C:\Program Files\R\R-2.15.2\bin\x64\Rgui.exe" http_proxy=http://proxy.conicet.gov.ar:3128 http_proxy_user=ask
Aviso: unable to move temporary installation C:\Program Files\R\R-2.15.2\library\file1d6c416a3f6c\VGAM to C:\Program Files\R\R-2.15.2\library\VGAM
-copiar C:\Program Files\R\R-2.15.2\library\file1d6c416a3f6c\VGAM\libs\x64\Vgam.dll a C:\Program Files\R\R-2.15.2\bin\x64 (no se si esta bien)!!!!!!!!!!!!!!!!!!!!!!!1
- copiar a mano C:\Program Files\R\R-2.15.2\library\file1d6c416a3f6c\VGAM a C:\Program Files\R\R-2.15.2\library\VGAM
-incluir r/bin en path
-copiar rserve.conf y pwd a \library\Rserve\libs/x64 modificar workdir a directorio rserve
For Windows users, the configuration file defaults to being in the R installation directory, for example C:\Program Files\R\R-2.12.0\bin\i386\Rserv.cfg
The configuration file may need to be created. Also, note the lack of "e" in the file names.
You can put the password file anywhere to which Rserve has read access.
However, it is a good idea to put it in the same directory as the configuration file e.g. as /etc/RServ.pwd or C:\Program Files\R\R-2.12.0\bin\i386\Rserv.pwd.
Ref: http://dev.mygrid.org.uk/wiki/display/taverna/Rserve+installation+and+deployment
In Win7 or Vista defaul option 'telnet' is not recognized as an internal or external command,operable program or batch file.
To solve this, just enable it : Click Start, Control Panel, Programs, and then Turn Windows Features on or off.
In the list, scroll down and select Telnet Client and click OK volody Nov 3 '10
probar arranque rserve:
C:\Program Files\R\R-2.15.2\library\Rserve\libs\x64>R CMD RServe
Rserve: Ok, ready to answer queries.
=======================================================================fin instalacion r=========================================================================