Board index FlightGear Support Compiling

download_and_compile.sh script wont accept sudo password

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

download_and_compile.sh script wont accept sudo password

Postby cebif » Sat Feb 25, 2012 6:18 am

I am trying to use the download_and_compile.sh script in debian 6.04 64bit. I had the whole of flightgear download and compiled before in ubuntu 10.04 and copied the whole flightgear folder over to my user folder in debian. I made sure the folder and contents had the correct permissions with the command "sudo chown -R greg.greg flightgear". Also made sure that the script can be started as an executable. Inside the script it searches for libboost1.46-dev. The latest version available for debian 6.04 is 1.42. I did a search and replace in the script with gedit to replace libboost1.46-dev with libboost1.42-dev. In the terminal I was using command to update to latest stable version like this:
sh download_and_compile.sh -s ALL -j 2
The -j 2 because I want to compile using two CPU cores.. When It asks for my password, I type my super user password but every-time it says incorrect. It is definitely correct because I can use the same in apt-get or synaptic.
Does anyone know what the problem is. How can it be fixed.
cebif
 
Posts: 34
Joined: Wed Jan 13, 2010 1:59 am
Callsign: leadal
Version: 2.8.0
OS: Ubuntu 12.04

Re: download_and_compile.sh script wont accept sudo password

Postby Blairdean » Sat Feb 25, 2012 4:49 pm

Hey cebif

Try the password for your own account. Depending how sudo has been configured, it'll run either using the root password or the executing user's.

Blair
Blairdean
 
Posts: 27
Joined: Sun May 08, 2011 3:51 pm
Location: Fitzroy Harbour, Ontario
Callsign: CAblair
Version: GIT
OS: Ubuntu

Re: download_and_compile.sh script wont accept sudo password

Postby cebif » Tue Feb 28, 2012 9:47 pm

I was logged into the account with super user privilege. That was the password but does not work.
cebif
 
Posts: 34
Joined: Wed Jan 13, 2010 1:59 am
Callsign: leadal
Version: 2.8.0
OS: Ubuntu 12.04

Re: download_and_compile.sh script wont accept sudo password

Postby cebif » Tue Feb 28, 2012 9:52 pm

This is what I see in terminal:
Code: Select all
Asking root password to perform an apt-get update
Password:
su: Authentication failure
cebif
 
Posts: 34
Joined: Wed Jan 13, 2010 1:59 am
Callsign: leadal
Version: 2.8.0
OS: Ubuntu 12.04

Re: download_and_compile.sh script wont accept sudo password

Postby praveen_nair » Fri Mar 09, 2012 8:42 pm

Last night I had the same issue. The mistake I made was using download_and_complie.sh script after logging in as "root". I logged out of root (you may use a separate terminal session) and then it started working. Hope this helps
praveen_nair
 
Posts: 27
Joined: Mon Feb 27, 2012 2:09 am


Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests