Cannot configure to compile 1.1.0 from tar.gz

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
Vlaadstoc
Engineer
Engineer
Posts: 4
Joined: 13 May 2011 02:24
Contact:

Cannot configure to compile 1.1.0 from tar.gz

Post by Vlaadstoc »

I have tried three times, re-downloading the tar-ball every time, and after I unpack the .tar.gz, ./configure halts with the error:
bash: ./configure: No such file or directory
Yes, I did cd into the newly created directory after unpacking.
I have no idea what I am doing wrong, is something missing from the tar-ball?
I have gone through and made sure I have all the lib.dev that are needed, but that should have nothing to do with the ./configure command, should it?
I have tried both as user and as root. Please help!! ?( ?(
Who controls the past, controls the future.
Who controls the present, controls the past.
~Stalin
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Cannot configure to compile 1.1.0 from tar.gz

Post by planetmaker »

Works here:

Code: Select all

~/Downloads> ls -lt | head -n2
total 13201256
-rw-r--r--@  1 xxx  yyy          7575181 13 Mai 06:28 openttd-1.1.0-source.tar.gz
~/Downloads> tar xfz openttd-1.1.0-source.tar.gz
~/Downloads> cd openttd-1.1.0
~/Downloads/openttd-1.1.0> ls
COPYING              Makefile.lang.in	config.lib        media          src
Doxyfile             Makefile.msvc		configure         os
Makefile.bundle.in   Makefile.src.in	 ocs			      projects
Makefile.grf.in      bin			       findversion.sh    readme.txt
Makefile.in	       changelog.txt		known-bugs.txt    source.list
~/Downloads/openttd-1.1.0> ./configure
checking awk... awk
(...)
But indeed: ./configure requires no libraries (yet it might complain about missing ones).

But don't try root just because a command is not found, you might screw your system... there are only two options which come to my mind: maybe configure is in your case not marked as executable or you maybe didn't call it from the proper dir nevertheless.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Cannot configure to compile 1.1.0 from tar.gz

Post by Eddi »

does configure have execution rights?

Code: Select all

chmod a+x configure
User avatar
Vlaadstoc
Engineer
Engineer
Posts: 4
Joined: 13 May 2011 02:24
Contact:

Re: Cannot configure to compile 1.1.0 from tar.gz

Post by Vlaadstoc »

Thank you for the prompt reply. Configure has rights, I have compiled with this system before. The only thing I noticed was my package was called 'openttd-1.1.0-linux-generic-i686.tar.gz' NOT openttd-1.1.0-source.tar.gz I hope that is it, that I just have the wrong file? I will try to find the right one.
Who controls the past, controls the future.
Who controls the present, controls the past.
~Stalin
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Cannot configure to compile 1.1.0 from tar.gz

Post by planetmaker »

yes... you downloaded the compiled binary package for use with any linux system... and not the source code.
User avatar
Vlaadstoc
Engineer
Engineer
Posts: 4
Joined: 13 May 2011 02:24
Contact:

Re: Cannot configure to compile 1.1.0 from tar.gz

Post by Vlaadstoc »

Ok, got the right file, everything was going ok, as user this time, then...

Code: Select all

oz@TrinitysTerminal ~/Downloads/openttd-1.1.0 $ ./configure
checking awk... awk
detecting OS... UNIX
checking build system type... i486-linux-gnu
checking host system type... i486-linux-gnu
checking universal build... no
checking build cc... gcc
checking host cc... gcc
checking build c++... g++ not found
I couldn't detect any g++ binary on your system
please define the CC/CXX environment to where it is located
What the hell am I missing now?
:cry: :cry: :cry:
Who controls the past, controls the future.
Who controls the present, controls the past.
~Stalin
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Cannot configure to compile 1.1.0 from tar.gz

Post by Yexo »

Vlaadstoc wrote:

Code: Select all

checking build c++... g++ not found
I couldn't detect any g++ binary on your system
please define the CC/CXX environment to where it is located
:
Did you read this part of the error message?
User avatar
Vlaadstoc
Engineer
Engineer
Posts: 4
Joined: 13 May 2011 02:24
Contact:

Re: Cannot configure to compile 1.1.0 from tar.gz

Post by Vlaadstoc »

Awsome! Compiling as I speak!! Thank you. :bow:
Who controls the past, controls the future.
Who controls the present, controls the past.
~Stalin
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 2 guests