Install all needed RPMS for a rpmbuild

April 16, 2010   

Ever had this happen?

[mzupan@laptop SPECS]$ rpmbuild -ba php.spec 
cat: /usr/include/httpd/.mmn: No such file or directory
error: Failed build dependencies:
        curl-devel >= 7.9 is needed by php-5.2.11-2.fc12.src
        db4-devel is needed by php-5.2.11-2.fc12.src
        gmp-devel is needed by php-5.2.11-2.fc12.src
        expat-devel is needed by php-5.2.11-2.fc12.src
        httpd-devel >= 2.0.46-1 is needed by php-5.2.11-2.fc12.src
        sqlite-devel >= 3.0.0 is needed by php-5.2.11-2.fc12.src
        readline-devel is needed by php-5.2.11-2.fc12.src
        libc-client-devel is needed by php-5.2.11-2.fc12.src
        postgresql-devel is needed by php-5.2.11-2.fc12.src
        unixODBC-devel is needed by php-5.2.11-2.fc12.src
        net-snmp-devel is needed by php-5.2.11-2.fc12.src
        libxslt-devel >= 1.0.18-1 is needed by php-5.2.11-2.fc12.src
        libXpm-devel is needed by php-5.2.11-2.fc12.src
        t1lib-devel is needed by php-5.2.11-2.fc12.src
        libmcrypt-devel is needed by php-5.2.11-2.fc12.src
        mhash-devel is needed by php-5.2.11-2.fc12.src
        libtidy-devel is needed by php-5.2.11-2.fc12.src
        freetds-devel is needed by php-5.2.11-2.fc12.src
        aspell-devel >= 0.50.0 is needed by php-5.2.11-2.fc12.src
        recode-devel is needed by php-5.2.11-2.fc12.src
        libevent-devel >= 1.4.12 is needed by php-5.2.11-2.fc12.src

Well the boring way is doing this

`

Ever had this happen?

[mzupan@laptop SPECS]$ rpmbuild -ba php.spec 
cat: /usr/include/httpd/.mmn: No such file or directory
error: Failed build dependencies:
        curl-devel >= 7.9 is needed by php-5.2.11-2.fc12.src
        db4-devel is needed by php-5.2.11-2.fc12.src
        gmp-devel is needed by php-5.2.11-2.fc12.src
        expat-devel is needed by php-5.2.11-2.fc12.src
        httpd-devel >= 2.0.46-1 is needed by php-5.2.11-2.fc12.src
        sqlite-devel >= 3.0.0 is needed by php-5.2.11-2.fc12.src
        readline-devel is needed by php-5.2.11-2.fc12.src
        libc-client-devel is needed by php-5.2.11-2.fc12.src
        postgresql-devel is needed by php-5.2.11-2.fc12.src
        unixODBC-devel is needed by php-5.2.11-2.fc12.src
        net-snmp-devel is needed by php-5.2.11-2.fc12.src
        libxslt-devel >= 1.0.18-1 is needed by php-5.2.11-2.fc12.src
        libXpm-devel is needed by php-5.2.11-2.fc12.src
        t1lib-devel is needed by php-5.2.11-2.fc12.src
        libmcrypt-devel is needed by php-5.2.11-2.fc12.src
        mhash-devel is needed by php-5.2.11-2.fc12.src
        libtidy-devel is needed by php-5.2.11-2.fc12.src
        freetds-devel is needed by php-5.2.11-2.fc12.src
        aspell-devel >= 0.50.0 is needed by php-5.2.11-2.fc12.src
        recode-devel is needed by php-5.2.11-2.fc12.src
        libevent-devel >= 1.4.12 is needed by php-5.2.11-2.fc12.src

Well the boring way is doing this

`

That can be extremely painful. So lets do this

``

Ever had this happen?

[mzupan@laptop SPECS]$ rpmbuild -ba php.spec 
cat: /usr/include/httpd/.mmn: No such file or directory
error: Failed build dependencies:
        curl-devel >= 7.9 is needed by php-5.2.11-2.fc12.src
        db4-devel is needed by php-5.2.11-2.fc12.src
        gmp-devel is needed by php-5.2.11-2.fc12.src
        expat-devel is needed by php-5.2.11-2.fc12.src
        httpd-devel >= 2.0.46-1 is needed by php-5.2.11-2.fc12.src
        sqlite-devel >= 3.0.0 is needed by php-5.2.11-2.fc12.src
        readline-devel is needed by php-5.2.11-2.fc12.src
        libc-client-devel is needed by php-5.2.11-2.fc12.src
        postgresql-devel is needed by php-5.2.11-2.fc12.src
        unixODBC-devel is needed by php-5.2.11-2.fc12.src
        net-snmp-devel is needed by php-5.2.11-2.fc12.src
        libxslt-devel >= 1.0.18-1 is needed by php-5.2.11-2.fc12.src
        libXpm-devel is needed by php-5.2.11-2.fc12.src
        t1lib-devel is needed by php-5.2.11-2.fc12.src
        libmcrypt-devel is needed by php-5.2.11-2.fc12.src
        mhash-devel is needed by php-5.2.11-2.fc12.src
        libtidy-devel is needed by php-5.2.11-2.fc12.src
        freetds-devel is needed by php-5.2.11-2.fc12.src
        aspell-devel >= 0.50.0 is needed by php-5.2.11-2.fc12.src
        recode-devel is needed by php-5.2.11-2.fc12.src
        libevent-devel >= 1.4.12 is needed by php-5.2.11-2.fc12.src

Well the boring way is doing this

`

Ever had this happen?

[mzupan@laptop SPECS]$ rpmbuild -ba php.spec 
cat: /usr/include/httpd/.mmn: No such file or directory
error: Failed build dependencies:
        curl-devel >= 7.9 is needed by php-5.2.11-2.fc12.src
        db4-devel is needed by php-5.2.11-2.fc12.src
        gmp-devel is needed by php-5.2.11-2.fc12.src
        expat-devel is needed by php-5.2.11-2.fc12.src
        httpd-devel >= 2.0.46-1 is needed by php-5.2.11-2.fc12.src
        sqlite-devel >= 3.0.0 is needed by php-5.2.11-2.fc12.src
        readline-devel is needed by php-5.2.11-2.fc12.src
        libc-client-devel is needed by php-5.2.11-2.fc12.src
        postgresql-devel is needed by php-5.2.11-2.fc12.src
        unixODBC-devel is needed by php-5.2.11-2.fc12.src
        net-snmp-devel is needed by php-5.2.11-2.fc12.src
        libxslt-devel >= 1.0.18-1 is needed by php-5.2.11-2.fc12.src
        libXpm-devel is needed by php-5.2.11-2.fc12.src
        t1lib-devel is needed by php-5.2.11-2.fc12.src
        libmcrypt-devel is needed by php-5.2.11-2.fc12.src
        mhash-devel is needed by php-5.2.11-2.fc12.src
        libtidy-devel is needed by php-5.2.11-2.fc12.src
        freetds-devel is needed by php-5.2.11-2.fc12.src
        aspell-devel >= 0.50.0 is needed by php-5.2.11-2.fc12.src
        recode-devel is needed by php-5.2.11-2.fc12.src
        libevent-devel >= 1.4.12 is needed by php-5.2.11-2.fc12.src

Well the boring way is doing this

`

That can be extremely painful. So lets do this

``



comments powered by Disqus