User forums => Using Code::Blocks => Topic started by: KirkD on January 07, 2010, 06:13:57 am
Title: Build error - Automake version
Post by: KirkD on January 07, 2010, 06:13:57 am
I just tried to build Code::Blocks on Fedora 12 but ./bootstrap informed that I needed Automake 1.7 or higher. If I issue:
automake --version
I see that I have version 1.11.1
Upon interrogation of the ./bootstrap file, I see this:
if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '1\.[0-6](\.[0-9]+)?$'`"; then echo "Automake 1.7 or above is required. Aborting build..."; exit 1; fi
Which to me reads that it is seeing automake 1.1 and failing but not realizing that 1.11 is actually acceptable. Unfortunately, I'm not good enough with regex to formulate the fix - I'm still pondering it.
I've commented out the test and it ran fine. I'm in the process of a build now and I'll post back once I have a working version. I would appreciate to see the fixed regex, too.
-kirk
UPDATE:: the build and install worked fine.
Title: Re: Build error - Automake version
Post by: Jenna on January 07, 2010, 07:49:31 am
Could you please test whether the following regex works for you ?
Code
if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '\<1\.[0-6](\.[0-9]+)?\>'`"; then echo "Automake 1.7 or above is required. Aborting build..."; exit 1; fi
And of course anybody else, who is willing and able to test it, should report whether it works or breaks build on his/her system.
Title: Re: Build error - Automake version
Post by: KirkD on January 07, 2010, 08:23:05 pm
This does indeed appear to work.
Out of curiosity, what \< and \> mean?
Title: Re: Build error - Automake version
Post by: Jenna on January 08, 2010, 07:04:12 pm