Manual Mercury - Listo !

mod_harbour es un módulo para Apache que permite correr tus PRGs directamente en la web!!!

Manual Mercury - Listo !

Postby Carles » Sat May 30, 2020 5:19 pm

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..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1139
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Manual Mercury - Listo !

Postby Patricio Avalos Aguirre » Wed Jun 10, 2020 7:19 pm

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  Expand view  RUN
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  Expand view  RUN
/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  Expand view  RUN

# --------------------------------------------------------------------------
# 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  Expand view  RUN
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
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: Manual Mercury - Listo !

Postby Carles » Wed Jun 10, 2020 8:23 pm

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..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1139
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Manual Mercury - Listo ! [SOLUCIONADO]

Postby Patricio Avalos Aguirre » Wed Jun 10, 2020 11:15 pm

gracias charle por responder

http://localhost:81/go/index.prg
Code: Select all  Expand view  RUN
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
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: Manual Mercury - Listo !

Postby Carles » Thu Jun 11, 2020 8:30 am

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..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1139
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Manual Mercury - Listo !

Postby Patricio Avalos Aguirre » Thu Jun 11, 2020 8:10 pm

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
User avatar
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: Manual Mercury - Listo !

Postby horacio » Wed Jun 17, 2020 8:47 pm

Hola, estoy leyendo el tutorial de Mercury, al ejecutar index.prg obtengo este error

Code: Select all  Expand view  RUN

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
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: Manual Mercury - Listo !

Postby Carles » Thu Jun 18, 2020 6:59 pm

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..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1139
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Manual Mercury - Listo !

Postby horacio » Thu Jun 18, 2020 8:55 pm

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  Expand view  RUN


[/# --------------------------------------------------------------------------
# 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
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: Manual Mercury - Listo !

Postby damianodec » Mon Jun 22, 2020 8:30 am

hi,
I get this error:
Code: Select all  Expand view  RUN
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
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: Manual Mercury - Listo !

Postby Antonio Linares » Mon Jun 22, 2020 9:47 am

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
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Manual Mercury - Listo !

Postby damianodec » Tue Jun 23, 2020 11:50 am

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
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: Manual Mercury - Listo !

Postby Antonio Linares » Wed Jun 24, 2020 2:54 pm

Damiano,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Manual Mercury - Listo !

Postby damianodec » Wed Jul 08, 2020 6:19 am

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
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: Manual Mercury - Listo !

Postby Carles » Wed Jul 08, 2020 7:25 am

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..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1139
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Next

Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 22 guests