tedsluis / dump1090.socket30003

collect dump1090 flight positions using socket30003 and save them as csv
GNU General Public License v3.0
31 stars 5 forks source link

Execution of ./rangeview.pl aborted due to compilation errors, from double quotes in help text #7

Open djmjr opened 6 years ago

djmjr commented 6 years ago

Received fatal error when running rangeview.pl on an Ubuntu 16.04.4 LTS machine with perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi: Execution of ./rangeview.pl aborted due to compilation error

I was able to fix the issue by escaping the double quotes in lines 239, 240, and 244. For clarity, lines 239 through 244 after the change are pasted below:

<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<kml xmlns=\"http://www.opengis.net/kml/2.2\">
  <Document>
    <name>Paths</name>
    <description>Example</description>
<Style id=\"track-1\">
wlouckx commented 6 years ago

I found another solution for this:

Go to line 207 and make it look like this:

if ($help) { print F <<EOT; \nThis $scriptname script creates location data

Then go to line 347 and make it look like this: $scriptname -data /home/pi/data -log /home/pi/log -output /home/pi/result \n\n EOT exit 0; }

save and rerun the script