User forums > Using Code::Blocks

Build error - Automake version

(1/1)

KirkD:
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.

Jenna:
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

--- End code ---

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.

KirkD:
This does indeed appear to work.  

Out of curiosity, what \< and \>  mean?


Jenna:

--- Quote from: KirkD on January 07, 2010, 08:23:05 pm ---This does indeed appear to work.  

Out of curiosity, what \< and \>  mean?




--- End quote ---

Word start and word end.

Navigation

[0] Message Index

Go to full version