Page 1 of 2

Manual Mercury - Listo !

Posted: Sat May 30, 2020 5:19 pm
by Carles
Hola a todos,

Nuevo Manual de Mercury que podreis encontrar aqui -> https://modharbour.app/compass/search/manual [EDITED]

Image


Cualquier cosa la vemos en el forum

Pronto estarás en la web.. :-)

C.

Image

Re: Manual Mercury - Listo !

Posted: Wed Jun 10, 2020 7:19 pm
by Patricio Avalos Aguirre
Hola Carles

estoy tratando de instalar mercury pero no me funciona

mod_harbour funciona, cuando hago http://localhost:81/samples/info.prg
y el navegador me arroja esto..

Code: Select all

Platform
OS  Windows 10 10.0
Harbour Harbour 3.2.0dev (r2004201301)
Build date  May 24 2020 11:54:58
Compiler    Microsoft Visual C 19.21.27702 (64-bit)
Capabilities
RDD DBF, DBFFPT, DBFNSX, SIXCDX, DBFCDX, SDF, DELIM, DBFBLOB, DBFNTX
Version Harbour
00  HB_VERSION_HARBOUR  Harbour 3.2.0dev (r2004201301)
01  HB_VERSION_COMPILER Microsoft Visual C 19.21.27702 (64-bit)
ahora con mercury hice esto como dice el manual

estructura de directory

Code: Select all

/htdocs/go/
/lib/mercury/mercury.hrb
/lib/mercury/mercury.ch
/include
/src/controller
/src/model
/src/view
 
archivo .htaccess que esta en /go

Code: Select all

# --------------------------------------------------------------------------
# CONFIGURACION RUTAS PROGRAMA (Relative to DOCUMENT_ROOT)
# --------------------------------------------------------------------------
SetEnv PATH_URL "/go"
SetEnv PATH_APP "/go"
SetEnv PATH_DATA "/go/data/"
# --------------------------------------------------------------------------
# Impedir que lean los ficheros del directorio
# --------------------------------------------------------------------------
Options All -Indexes


# --------------------------------------------------------------------------
# Pagina por defectos
# --------------------------------------------------------------------------
DirectoryIndex index.prg main.prg

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.prg/$1 [L]
</IfModule>
 
http://localhost:81/go/

Code: Select all

Error: Unknown or unregistered symbol
operation: AP_HEADERSINCOUNT
called from: HB_HRBLOAD, line: 0
called from: ..\source\exec.prg, LOADHRB, line: 159
called from: ..\source\exec.prg, (b)REPLACEBLOCKS, line: 133
called from: ..\source\exec.prg, REPLACEBLOCKS, line: 133
called from: ..\source\exec.prg, EXECUTE, line: 55

Source:

algo falta q no logra descifrar

Re: Manual Mercury - Listo !

Posted: Wed Jun 10, 2020 8:23 pm
by Carles
Patricio,

Esta version de Mercury esta testeada con la última version de modHarbour del 200517.

Tu puedes bajarla desde aqui -> https://modharbour.app/compass/bin/modharbour.zip

Saludos.
C.

Re: Manual Mercury - Listo ! [SOLUCIONADO]

Posted: Wed Jun 10, 2020 11:15 pm
by Patricio Avalos Aguirre
gracias charle por responder

http://localhost:81/go/index.prg

Code: Select all

Mercury v1.01
ahora a seguir entendiendo :(

Re: Manual Mercury - Listo !

Posted: Thu Jun 11, 2020 8:30 am
by Carles
Hola,

Ejemplo de prototipo de tienda virtual construido con Mercury y modHarbour

Image

Velocidd, velocidad y solo velocidad.... :D

Saludos.
C.

Re: Manual Mercury - Listo !

Posted: Thu Jun 11, 2020 8:10 pm
by Patricio Avalos Aguirre
charle simplemente !! EXCELENTE !!

Re: Manual Mercury - Listo !

Posted: Wed Jun 17, 2020 8:47 pm
by horacio
Hola, estoy leyendo el tutorial de Mercury, al ejecutar index.prg obtengo este error

Code: Select all

error: Undefined function LOADHRB Args: [ 1] = C lib/mercury/mercury.hrb

called from: GETERRORINFO, line: 103
called from: DOBREAK, line: 114
called from: (b)_APPMAIN, line: 22
called from: LOADHRB, line: 0
called from: REPLACEBLOCKS, line: 236
called from: EXECUTE, line: 74
called from: _APPMAIN, line: 33
 
Alguna idea? Gracias

Re: Manual Mercury - Listo !

Posted: Thu Jun 18, 2020 6:59 pm
by Carles
Horacio,

Tienes instalada la version que indico en el foro ?
De todas maneras es raro, porque indica que no encuentra loadhrb() que esta en el propio modharbour... :roll:
Te funciona bien modharbour?

Re: Manual Mercury - Listo !

Posted: Thu Jun 18, 2020 8:55 pm
by horacio
Gracias Carles por tu respuesta, mod_harbour lo baje desde el link que pusiste en este hilo y funciona. Mercury desde el link que se encuentra en el tutorial. No tengo instalado xampp, solo apache24. En C:\apache24\htdocs cree el directorio go y todos los subdirectorios indicados y alojé el archivo .htaccess en el raíz ( C:\apache24\htdocs\go\.htaccess ), El archivo de prueba index.prg también lo puse en el raíz ( C:\apache24\htdocs\go\index.prg )

archivo .htaccess

Code: Select all


[/# --------------------------------------------------------------------------
# CONFIGURACION RUTAS PROGRAMA  (Relative to DOCUMENT_ROOT)
# --------------------------------------------------------------------------
SetEnv PATH_URL "/go"
SetEnv PATH_APP "/go"
SetEnv PATH_DATA "/go/data/"

# --------------------------------------------------------------------------
# Impedir que lean los ficheros del directorio
# --------------------------------------------------------------------------
Options All -Indexes


# --------------------------------------------------------------------------
# Pagina por defectos
# --------------------------------------------------------------------------
DirectoryIndex index.prg main.prg

<IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.prg/$1 [L]
</IfModule>]
 
Que estoy haciendo mal ?

Saludos

Re: Manual Mercury - Listo !

Posted: Mon Jun 22, 2020 8:30 am
by damianodec
hi,
I get this error:

Code: Select all

Error: Unknown or unregistered symbol
operation: AP_HEADERSINCOUNT
called from: HB_HRBLOAD, line: 0
called from: ..\source\exec.prg, LOADHRB, line: 159
called from: ..\source\exec.prg, (b)REPLACEBLOCKS, line: 133
called from: ..\source\exec.prg, REPLACEBLOCKS, line: 133
called from: ..\source\exec.prg, EXECUTE, line: 55

Source:
I have the same horacio's configuration

Re: Manual Mercury - Listo !

Posted: Mon Jun 22, 2020 9:47 am
by Antonio Linares
Damiano,

What mod_harbour version are you using ?

the "initial" one or the new one based on fastCGI ?

Re: Manual Mercury - Listo !

Posted: Tue Jun 23, 2020 11:50 am
by damianodec
info in modharbour samples is:
Harbour 3.2.0dev (r2004201301)

Re: Manual Mercury - Listo !

Posted: Wed Jun 24, 2020 2:54 pm
by Antonio Linares
Damiano,

Are you using libharbour.dll (original mod_harbour) or modharbour.exe (mod_harbour fastCGI) ?

Re: Manual Mercury - Listo !

Posted: Wed Jul 08, 2020 6:19 am
by damianodec
hi Antonio,
I'm using original mod_harbour.

Re: Manual Mercury - Listo !

Posted: Wed Jul 08, 2020 7:25 am
by Carles
damianodec,

In order to use Mercury use this version of modharbour -> https://modharbour.app/compass/bin/modharbour.zip

The latest version is pending validation.

Thank you.
C.