Autor
|
Tema: Manual per fer anar Oregon amb Linux Part1 (Llegit 4603 vegades)
|
|
|
|
|
|
|
Undulatus
Cumulus
  
Desconnectat
Gènere: 
Missatges: 115

Rubí, Vallès Occidental
|
./wmrplot.cgi Scalar found where operator expected at ./wmrplot.cgi line 84, near "$datafilepath$datafile" (Missing operator before $datafile?) syntax error at ./wmrplot.cgi line 84, near "$datafilepath$datafile" syntax error at ./wmrplot.cgi line 90, near "}" Execution of ./wmrplot.cgi aborted due to compilation errors.
Hola a tots, Tinc exactament el mateix problema que en saba, però només en executar el wmrplot.cgi, wxhistoric.cgi he aconseguit que em funcioni bé i em genera els gràfics correctament (crec), però a la pàgina plots.html no apareix cap gràfic ja que els genera wmrplot si algú sap què pot passar  ho he provat en 2 ordinadors diferents (un amb kubuntu i un debian) i en els dos m'he quedat igual... Hola Albert,
Entenc que quant executes els cgi's per separat et funcionen, però si ho fas mitjan-san el plots.html no surten els gràfics?
Carles.
|
|
|
|
|
En línia
|
|
|
|
Albert
Cumulonimbus Calvus
 
Desconnectat
Gènere: 
Missatges: 3230

La Pobla de Lillet - Alt Berguedà - (873m.)
|
Hola Undulatus,
Quan l'executo mitjançant el plots.html no em funciona, però si executo el wmrplot.cgi en una consola tampoc funciona, dóna l'error que hi ha més amunt, en canvi si executo els altres, tan des de la consola com a través de la web em funcionen correctament
Albert
|
|
|
|
|
En línia
|
|
|
|
|
|
saba
Estrat

Desconnectat
Missatges: 10
|
Bones, aprofitant el dia de festa extra m'he posat altra vegada amb el tema
he tornat a baixar el tar i he començat de zero respectant els paths originals
he trobat que no tenia instal·lat el paquet "libcompress-zlib-perl"
de moment he aconseguit veure les dades actuals i l'històric........
el que no puc veure encara son els gràfics de la web principal, el plots.html mirant els log veig això
[Thu Nov 01 10:16:34 2007] [error] [client 192.168.1.210] Scalar found where operator expected at /usr/lib/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile" [Thu Nov 01 10:16:34 2007] [error] [client 192.168.1.210] \t(Missing operator before $datafile?) [Thu Nov 01 10:16:34 2007] [error] [client 192.168.1.210] syntax error at /usr/lib/cgi-bin/wmrplot.cgi line 84, near "$datafilepath$datafile" [Thu Nov 01 10:16:34 2007] [error] [client 192.168.1.210] syntax error at /usr/lib/cgi-bin/wmrplot.cgi line 90, near "}" [Thu Nov 01 10:16:34 2007] [error] [client 192.168.1.210] Execution of /usr/lib/cgi-bin/wmrplot.cgi aborted due to compilation errors. [Thu Nov 01 10:16:34 2007] [error] [client 192.168.1.210] Premature end of script headers: wmrplot.cgi
l'arxiu wmrplot.cgi nomes he modificat les línies que diu l'albert, aquí teniu la 84 i les del seu voltant
} elsif ($FORM_DATA{plot} eq "press") { $datafile = "in_$date_str.dat"; if (!(-e $datafilepath$datafile)) { <------ línia 84 $datafile = "ins_$date_str.dat"; } $datacol = 9; $range = "950:1050"; $pltln = "\"$datafilepath$datafile\" using $timecol:$datacol notitle"; }
i el valor del datapath
$datafilepath = "/var/opt/wxdata/";
aquí si que estic encallat, jo crec que la línia84 esta bé, vaja, que l'arxiu es correcte o sigui que no se on mirar
afegint un parell d'opcions al cgi i executant-lo en una consola dona mes info
Scalar found where operator expected at /mnt/sata1/www/wxreport/cgiwrapd/wmrplot.cgi line 85, near "$datafilepath$datafile" (#1) (S syntax) The Perl lexer knows whether to expect a term or an operator. If it sees what it knows to be a term when it was expecting to see an operator, it gives you this warning. Usually it indicates that an operator or delimiter was omitted, such as a semicolon.
(Missing operator before $datafile?) syntax error at /mnt/sata1/www/wxreport/cgiwrapd/wmrplot.cgi line 85, near "$datafilepath$datafile" syntax error at /mnt/sata1/www/wxreport/cgiwrapd/wmrplot.cgi line 91, near "}" Execution of /mnt/sata1/www/wxreport/cgiwrapd/wmrplot.cgi aborted due to compilation errors (#2) (F) Probably means you had a syntax error. Common reasons include:
A keyword is misspelled. A semicolon is missing. A comma is missing. An opening or closing parenthesis is missing. An opening or closing brace is missing. A closing quote is missing.
Often there will be another error message associated with the syntax error giving more information. (Sometimes it helps to turn on -w.) The error message itself often tells you where it was in the line when it decided to give up. Sometimes the actual error is several tokens before this, because Perl is good at understanding random input. Occasionally the line number may be misleading, and once in a blue moon the only way to figure out what's triggering the error is to call perl -c repeatedly, chopping away half the program each time to see if the error went away. Sort of the cybernetic version of S<20 questions>.
a veure si amb tot això algú troba una pista es estrany que el wxhistoric.cgi i el currentwecurrentweather.pl funcionin bé ne canvi el wmrplot.cgi peti algú em pot acabar de donar l'empenta final?
|
|
|
|
|
En línia
|
|
|
|
|
|
|
|
saba
Estrat

Desconnectat
Missatges: 10
|
i jo jurant i perjurant que el codi devia estar bé 
bé, ara que ja funciona i com l'experiència a estat quasi "religiosa", anem per un altre
algun altre soft per la WMR928?
|
|
|
|
|
En línia
|
|
|
|
|