[CentOS] apr buildconf fails

Alexander Dalloz ad+lists at uni-x.org
Sun Jun 15 03:08:17 UTC 2014


Am 15.06.2014 04:38, schrieb Tim Dunphy:
> Guys,
>
>
> I'm trying to install apr-util on centos 5.7. And it's failing with a
> python error:

CentOS 5,7 is outdated and vulnerable. yum update to current (5.10 + 
updates).

> buildconf: generating 'make' outputs ...
> Traceback (most recent call last):
>    File "build/gen-build.py", line 230, in <module>
>      main()
>    File "build/gen-build.py", line 56, in main
>      h_deps[os.path.basename(fname)] = extract_deps(fname, legal_deps)
>    File "build/gen-build.py", line 198, in extract_deps
>      inc = _re_include.match(line).group(1)
> AttributeError: 'NoneType' object has no attribute 'group'
> buildconf: rebuilding rpm spec file
> [root at uszmpaplp005lc apr-util-1.5.1]# build/gen-build.py
> Traceback (most recent call last):
>    File "build/gen-build.py", line 230, in <module>
>      main()
>    File "build/gen-build.py", line 56, in main
>      h_deps[os.path.basename(fname)] = extract_deps(fname, legal_deps)
>    File "build/gen-build.py", line 198, in extract_deps
>      inc = _re_include.match(line).group(1)
> AttributeError: 'NoneType' object has no attribute 'group'
> [root at uszmpaplp005lc apr-util-1.5.1]# /root/apr-1.5.1/buildconf
> buildconf: checking installation...
> buildconf: python version 2.7 (ok)
> buildconf: autoconf version 2.59 (ok)
> buildconf: libtool version 1.5.22 (ok)
> buildconf: copying libtool helper files using /usr/bin/libtoolize
> buildconf: Using libtool.m4 at /usr/share/aclocal/libtool.m4.
> buildconf: creating include/arch/unix/apr_private.h.in ...
> buildconf: creating configure ...
> buildconf: generating 'make' outputs ...
> Traceback (most recent call last):
>    File "build/gen-build.py", line 230, in <module>
>      main()
>    File "build/gen-build.py", line 56, in main
>      h_deps[os.path.basename(fname)] = extract_deps(fname, legal_deps)
>    File "build/gen-build.py", line 198, in extract_deps
>      inc = _re_include.match(line).group(1)
> AttributeError: 'NoneType' object has no attribute 'group'
> buildconf: rebuilding rpm spec file
>
>
> I was wondering if anyone had any advice they could give on how to get past
> this error.

Why are you compiling the apr-utils your own anyway? CentOS is a binary 
distribution, so you repositories which provide the software you need. 
apr-util is provided by base.

> Thanks
> Tim

Alexander





More information about the CentOS mailing list