LoadHRB (Ubuntu Linux)

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
ricbarraes
Posts: 49
Joined: Tue Jun 30, 2015 2:26 am
Location: Brazil

LoadHRB (Ubuntu Linux)

Post by ricbarraes »

hola amigos, estoy implementando algunos proyectos mod_harbour en el servidor linux, pero ¿alguien sabría lo que estoy haciendo mal? Estoy intentando cargar un HRB pero siempre devuelve que no fue posible cargarlo.

ejemplo 1:

Code: Select all

function Main()
   ?? LoadHRB( 'lib/mercury/testhrb.hrb' )
   ?? hb_GetEnv( "PRGPATH" ) + "/"+"lib/mercury/testhrb.hrb"
return nil
return:

Code: Select all

.F. /var/www/html/modharbour_samples/lib/mercury/testhrb.hrb (editado)
nota: creé una ruta lib / mercury solo para probarla, existe en el mismo directorio que se muestra

ejemplo 2:

Code: Select all

//  {% LoadHRB( 'lib/mercury/mercury.hrb' ) %}  
#include {% MercuryInclude( 'lib/mercury' ) %}
//Função de entrada para a aplicação
FUNCTION Main()
    local oApp,nRetVal, n, m, hField, hRow
[...]
 
return:

Code: Select all

Error: Undefined function
operation: MERCURYINCLUDE
[ 1] = C lib/mercury
called from: MERCURYINCLUDE, line: 0
called from: ../source/exec.prg, (b)REPLACEBLOCKS, line: 141
called from: ../source/exec.prg, REPLACEBLOCKS, line: 141
called from: ../source/exec.prg, EXECUTE, line: 63
¿Alguien tiene alguna idea de lo que puedo estar haciendo mal?
Sds,
Ricardo Arraes
ricardo@vfatec.com.br
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: LoadHRB (Ubuntu Linux)

Post by Carles »

Ricardo,

Por la tarde intento contactar contigo y te hecho una mano.

Creo q sera tema permisos

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
ricbarraes
Posts: 49
Joined: Tue Jun 30, 2015 2:26 am
Location: Brazil

Re: LoadHRB (Ubuntu Linux)

Post by ricbarraes »

Thank you Charly!
yes, you and Pere were right, this issue was related to some read/write permissions.

Imma create another topic here and in our google groups so I can explain in more details how did I solve this problem and got everything running in Ubuntu/Linux
Sds,
Ricardo Arraes
ricardo@vfatec.com.br
Post Reply