FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour Manual Mercury - Listo !
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Manual Mercury - Listo !
Posted: Sat May 30, 2020 05:19 PM
Hola a todos,

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




Cualquier cosa la vemos en el forum

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

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
HIX -> https://github.com/carles9000/hix
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: Manual Mercury - Listo !
Posted: Wed Jun 10, 2020 07: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 (fw): Select all Collapse
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 (fw): Select all Collapse
/htdocs/go/
/lib/mercury/mercury.hrb
/lib/mercury/mercury.ch
/include
/src/controller
/src/model
/src/view


archivo .htaccess que esta en /go
Code (fw): Select all Collapse
# --------------------------------------------------------------------------
# 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 (fw): Select all Collapse
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
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Manual Mercury - Listo !
Posted: Wed Jun 10, 2020 08: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
HIX -> https://github.com/carles9000/hix
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: Manual Mercury - Listo ! [SOLUCIONADO]
Posted: Wed Jun 10, 2020 11:15 PM
gracias charle por responder

http://localhost:81/go/index.prg
Code (fw): Select all Collapse
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
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Manual Mercury - Listo !
Posted: Thu Jun 11, 2020 08:30 AM
Hola,

Ejemplo de prototipo de tienda virtual construido con Mercury y modHarbour



Velocidd, velocidad y solo velocidad.... :-)

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
HIX -> https://github.com/carles9000/hix
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: Manual Mercury - Listo !
Posted: Thu Jun 11, 2020 08: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
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Manual Mercury - Listo !
Posted: Wed Jun 17, 2020 08:47 PM
Hola, estoy leyendo el tutorial de Mercury, al ejecutar index.prg obtengo este error

Code (fw): Select all Collapse
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
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Manual Mercury - Listo !
Posted: Thu Jun 18, 2020 06: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
HIX -> https://github.com/carles9000/hix
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Manual Mercury - Listo !
Posted: Thu Jun 18, 2020 08: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 (fw): Select all Collapse
[/# --------------------------------------------------------------------------
# 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
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: Manual Mercury - Listo !
Posted: Mon Jun 22, 2020 08:30 AM
hi,
I get this error:
Code (fw): Select all Collapse
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 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Manual Mercury - Listo !
Posted: Mon Jun 22, 2020 09: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
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: Manual Mercury - Listo !
Posted: Tue Jun 23, 2020 11:50 AM

info in modharbour samples is:
Harbour 3.2.0dev (r2004201301)

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Manual Mercury - Listo !
Posted: Wed Jun 24, 2020 02:54 PM
Damiano,

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

Antonio Linares
www.fivetechsoft.com
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: Manual Mercury - Listo !
Posted: Wed Jul 08, 2020 06:19 AM

hi Antonio,
I'm using original mod_harbour.

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Manual Mercury - Listo !
Posted: Wed Jul 08, 2020 07: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
HIX -> https://github.com/carles9000/hix