Board index FlightGear Support Compiling

Compiling whith download_and_compile.sh  Topic is solved

Building FlightGear from source, and in the need for help?

Compiling whith download_and_compile.sh

Postby E-HEC » Sun Apr 29, 2012 8:11 pm

Hi,
I tried to compile fgfs whith the download_and_compile.sh script using ubuntu 12.4. But the script aborted whith the following message:

Code: Select all
E-HEC@E-HEC-MS-7728:~/flightgear$ sh download_and_compile.sh
download_and_compile.sh: 2: download_and_compile.sh: cannot open !DOCTYPE: No such file
download_and_compile.sh: 2: download_and_compile.sh: html: not found
download_and_compile.sh: 4: download_and_compile.sh: Syntax error: newline unexpected
E-HEC@E-HEC-MS-7728:~/flightgear$


Can anybody help?
E-HEC
 
Posts: 19
Joined: Mon Apr 16, 2012 3:14 pm

Re: Compiling whith download_and_compile.sh  

Postby polly » Sun Apr 29, 2012 10:44 pm

It looks as if you might have managed to save the link's html element from the wiki page instead of saving the shell script that the link points to. Here's how the first few lines of the script should read:

    #!/bin/bash
    #* Written by Francesco Angelo Brisa, started January 2008.
    #
    # Copyright (C) 2008 Francesco Angelo Brisa
    # email: fbrisa@gmail.com - fbrisa@yahoo.it
    #
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program. If not, see <http://www.gnu.org/licenses/>.


    VERSION="1.21-ubuntu"

    #COMPILE GIT FGFS

    #######################################################
    # THANKS TO
    #######################################################
    # Special thanks to Alessandro Garosi for FGComGui and
    # other patches



    LOGFILE=compilation_log.txt
    LOGSEP="***********************************"


Here's what the link looks like if you inspect the html element:

    <!DOCTYPE html>
    <html lang="en" dir="ltr" class="client-js">
    <head>
    <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Scripted_Compilation_on_Linux_Debian_Ubuntu action-view skin-vector">
    <div id="mw-page-base" class="noprint"/>
    <div id="mw-head-base" class="noprint"/>
    <!-- content -->
    <div id="content">
    <a id="top"/>
    <div id="mw-js-message" style="display:none;" class="js-messagebox"/>
    <!-- firstHeading -->
    <h1 id="firstHeading" class="firstHeading">
    <!-- /firstHeading -->
    <!-- bodyContent -->
    <div id="bodyContent">

Is it possible ?
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: Compiling whith download_and_compile.sh

Postby E-HEC » Mon Apr 30, 2012 7:42 pm

Ops! You are right. I didn't notice that.

Thanks a lot!
E-HEC
 
Posts: 19
Joined: Mon Apr 16, 2012 3:14 pm


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest