Board index FlightGear Support Compiling

Scripted compilation failed

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

Scripted compilation failed

Postby F_D2760 » Fri Apr 11, 2014 8:38 pm

Hi,

Because of a change of a hard disk, I can't install FG with the script download_and_compile.sh. (It was downloaded from the wiki)

Code: Select all
sh download_and_compile.sh -sx
download_and_compile.sh: 74: download_and_compile.sh: Syntax error: "(" unexpected


That's all I got.
Last edited by F_D2760 on Wed Apr 23, 2014 8:27 pm, edited 1 time in total.
KUbuntu 22.04
AMD Ryzen 5 5600G
AMD Radeon RX 6650 XT
22" + 22"
16 Go
F_D2760
 
Posts: 84
Joined: Thu May 09, 2013 1:27 pm
Location: Oise - France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 22.04

Re: Scripted compilation failed

Postby Philosopher » Fri Apr 11, 2014 8:41 pm

Use "bash" instead of "sh" (or I think "./download_and_compile.sh" will also work).
Philosopher
 
Posts: 1593
Joined: Sun Aug 12, 2012 7:29 pm

Re: Scripted compilation failed

Postby F_D2760 » Sat Apr 12, 2014 3:59 am

Hi,

Thought I've tried... and it didn't work, but now seems to be Ok with ./ instead of sh!

Thanks a lot.
KUbuntu 22.04
AMD Ryzen 5 5600G
AMD Radeon RX 6650 XT
22" + 22"
16 Go
F_D2760
 
Posts: 84
Joined: Thu May 09, 2013 1:27 pm
Location: Oise - France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 22.04

Re: Scripted compilation failed

Postby junior-s » Fri Apr 18, 2014 2:49 am

Could you try without the "-sx" and just "-s"?
junior-s
Retired
 
Posts: 212
Joined: Tue May 21, 2013 3:27 am
Location: Wonderland
Callsign: junior-s
Version: GIT
OS: Arch Linux

Re: Scripted compilation failed

Postby F_D2760 » Fri Apr 18, 2014 8:42 pm

Hi,

I've just tried with only -s and it gave me an error.

Here the log file

Hope it helps!
KUbuntu 22.04
AMD Ryzen 5 5600G
AMD Radeon RX 6650 XT
22" + 22"
16 Go
F_D2760
 
Posts: 84
Joined: Thu May 09, 2013 1:27 pm
Location: Oise - France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 22.04

Re: Scripted compilation failed

Postby junior-s » Fri Apr 18, 2014 9:21 pm

Looks like an error with the connection.

Can you make sure you have all the needed packages installed?
junior-s
Retired
 
Posts: 212
Joined: Tue May 21, 2013 3:27 am
Location: Wonderland
Callsign: junior-s
Version: GIT
OS: Arch Linux

Re: Scripted compilation failed

Postby F_D2760 » Sat Apr 19, 2014 8:21 pm

Hi,

I've tried many times and every time I got the message that everything is up-to-date.

I really don't know what's wrong with this!

Thanks for your helping...
KUbuntu 22.04
AMD Ryzen 5 5600G
AMD Radeon RX 6650 XT
22" + 22"
16 Go
F_D2760
 
Posts: 84
Joined: Thu May 09, 2013 1:27 pm
Location: Oise - France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 22.04

Re: Scripted compilation failed

Postby F_D2760 » Sun Apr 27, 2014 7:26 am

Hi,

I've erased all the datas on my HD to be sure there's nothing disturbing the script... and still the same error :

Code: Select all
++ cd /home3/install/fgfs
++ pwd
+ fgdata_container=/home3/install/fgfs
+ fgdata_directory='./fgdata[-_]2.12.1/fgdata'
+ [[ -e /home3/install/fgfs/fgdata ]]
+ [[ -e /home3/install/fgfs/fgdata ]]
+ echo 'fgdata version 2.12.1 will be downloaded.'
fgdata version 2.12.1 will be downloaded.
+ SET_WINDOW_TITLE ' FGDATA'
+ echo -ne '\033]0;Build Flightgear:  -  /home3 -  FGDATA\007'
]0;Build Flightgear:  -  /home3 -  FGDATA++ pwd
+ EXDIR=/home3
+ cd /home3/install/fgfs
+ echo 'GIT DATA FROM git://gitorious.org/fg/fgdata.git  ... '
GIT DATA FROM git://gitorious.org/fg/fgdata.git  ...
+ '[' '!' -e fgdata ']'
+ git clone git://gitorious.org/fg/fgdata.git fgdata
Cloning into 'fgdata'...
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed


What can I do?
Where to get some more info?
KUbuntu 22.04
AMD Ryzen 5 5600G
AMD Radeon RX 6650 XT
22" + 22"
16 Go
F_D2760
 
Posts: 84
Joined: Thu May 09, 2013 1:27 pm
Location: Oise - France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 22.04

Re: Scripted compilation failed

Postby AndersG » Sun Apr 27, 2014 8:10 am

The command
Code: Select all
git clone git://gitorious.org/fg/fgdata.git fgdata

failed. This can happen since fgdata is quite large and the cloning process is sensitive to network interruption.

You can rerun just this command (someone who uses the script needs to fill in what where you should place the fgdata directory) and if it fails again there are some backup options, e.g. the fgdata git bundle that you can download with a normal HTTP file download (which is can be resumed after an interruption).

IMPORTANT: If you do succeed to clone fgdata there is no reason whatsoever (short of massive file system failure) to ever delete it and reclone. You have the full history of fgdata at your finger tips and can extract any past release or version you'd like from it - and you can refresh it at any time by only downloading the new changes.
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2527
Joined: Wed Nov 29, 2006 10:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: Scripted compilation failed

Postby F_D2760 » Sun Apr 27, 2014 8:19 am

Hi,

Thank you for this answer.

What you tell me at the end of your message is what I usually do, or done on my previous HD.

So I will keep on doing like that after one successfull installation on this one.

It's really the first times I get such a "bad connection" to get the datas.
KUbuntu 22.04
AMD Ryzen 5 5600G
AMD Radeon RX 6650 XT
22" + 22"
16 Go
F_D2760
 
Posts: 84
Joined: Thu May 09, 2013 1:27 pm
Location: Oise - France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 22.04

Re: Scripted compilation failed

Postby F_D2760 » Wed May 07, 2014 8:26 am

Hi,

Still not working... I give up!

I'll test again when I get the next KUbuntu version installed.

Regards.

----

Hi,

Thanks to all contributors and developpers!

With the new script, the compilation worked and I no have FG working, quite fine.

Regards.
KUbuntu 22.04
AMD Ryzen 5 5600G
AMD Radeon RX 6650 XT
22" + 22"
16 Go
F_D2760
 
Posts: 84
Joined: Thu May 09, 2013 1:27 pm
Location: Oise - France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 22.04


Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests