Manual Mercury - Listo !

mod_harbour es un módulo para Apache que permite correr tus PRGs directamente en la web!!!
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Manual Mercury - Listo !

Post 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
Last edited by Carles on Mon Aug 10, 2020 6:05 am, edited 1 time in total.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Re: Manual Mercury - Listo !

Post 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
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: Manual Mercury - Listo !

Post 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.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Re: Manual Mercury - Listo ! [SOLUCIONADO]

Post by Patricio Avalos Aguirre »

gracias charle por responder

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

Code: Select all

Mercury v1.01
ahora a seguir entendiendo :(
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: Manual Mercury - Listo !

Post by Carles »

Hola,

Ejemplo de prototipo de tienda virtual construido con Mercury y modHarbour

Image

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

Saludos.
C.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Re: Manual Mercury - Listo !

Post by Patricio Avalos Aguirre »

charle simplemente !! EXCELENTE !!
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
horacio
Posts: 1270
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: Manual Mercury - Listo !

Post 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
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: Manual Mercury - Listo !

Post 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?
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
horacio
Posts: 1270
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: Manual Mercury - Listo !

Post 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
User avatar
damianodec
Posts: 372
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: Manual Mercury - Listo !

Post 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
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Manual Mercury - Listo !

Post by Antonio Linares »

Damiano,

What mod_harbour version are you using ?

the "initial" one or the new one based on fastCGI ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
damianodec
Posts: 372
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: Manual Mercury - Listo !

Post by damianodec »

info in modharbour samples is:
Harbour 3.2.0dev (r2004201301)
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Manual Mercury - Listo !

Post by Antonio Linares »

Damiano,

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

Antonio Linares
www.fivetechsoft.com
User avatar
damianodec
Posts: 372
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: Manual Mercury - Listo !

Post by damianodec »

hi Antonio,
I'm using original mod_harbour.
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: Manual Mercury - Listo !

Post 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.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
Post Reply