LoadHRB (Ubuntu Linux)

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

LoadHRB (Ubuntu Linux)

Postby ricbarraes » Tue Oct 20, 2020 2:32 pm

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  Expand view  RUN
function Main()
   ?? LoadHRB( 'lib/mercury/testhrb.hrb' )
   ?? hb_GetEnv( "PRGPATH" ) + "/"+"lib/mercury/testhrb.hrb"
return nil


return:
Code: Select all  Expand view  RUN
.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  Expand view  RUN
//  {% 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  Expand view  RUN

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

Re: LoadHRB (Ubuntu Linux)

Postby Carles » Wed Oct 21, 2020 10:14 am

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

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

Re: LoadHRB (Ubuntu Linux)

Postby ricbarraes » Wed Oct 21, 2020 5:56 pm

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


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 6 guests