FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Dave Null Guest

    Unhappy PHP rpmbuild fails with "mysqli.so not found"

    Hi,

    Has anybody seen this error while building PHP rpm from a rpm.src
    FC6
    php-5.1.6-3.6.fc6.src.rpm


    Error reported:
    Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/php-root


    RPM build errors:
    File not found: /var/tmp/php-root/usr/lib/php/modules/mysqli.so




    mysql.so is present on the system
    here: /usr/lib/php/modules/mysqli.so
    Is this the wrong path?


    All the best

    -Lars
    Last edited by Dave Null; 23rd September 2007 at 02:19 AM. Reason: Wrong/bad subject line

  2. #2
    leigh123linux Guest
    Quote Originally Posted by Dave Null
    Hi,

    Has anybody seen this error while building PHP rpm from a rpm.src
    FC6
    php-5.1.6-3.6.fc6.src.rpm


    Error reported:
    Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/php-root


    RPM build errors:
    File not found: /var/tmp/php-root/usr/lib/php/modules/mysqli.so




    mysql.so is present on the system
    here: /usr/lib/php/modules/mysqli.so
    Is this the wrong path?


    All the best

    -Lars
    you need to edit the spec file and add this to the files section

    Code:
    %{_libdir}/php/modules/mysqli.so
    Last edited by leigh123linux; 23rd September 2007 at 02:34 AM.

  3. #3
    Dave Null Guest
    Hi Leigh,

    Thanks for your reply

    Added "%{_libdir}/php/modules/mysqli.so" to the files sectin of the spec file and got:

    Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/php-root


    RPM build errors:
    File not found: /var/tmp/php-root/usr/lib/php/modules/mysqli.so
    File not found: /var/tmp/php-root/usr/lib/php/modules/mysqli.so


    Getting weird now!!
    It might be nothing but when I added --without-mysqli to the configure section of the spec file I still got the first error I posted??

    -Lars

  4. #4
    leigh123linux Guest
    Quote Originally Posted by Dave Null
    Hi Leigh,

    Thanks for your reply

    Added "%{_libdir}/php/modules/mysqli.so" to the files sectin of the spec file and got:

    Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/php-root


    RPM build errors:
    File not found: /var/tmp/php-root/usr/lib/php/modules/mysqli.so
    File not found: /var/tmp/php-root/usr/lib/php/modules/mysqli.so


    Getting weird now!!
    It might be nothing but when I added --without-mysqli to the configure section of the spec file I still got the first error I posted??

    -Lars
    ok , try removing that line + is there another one like in the spec if so remove it as well ?

  5. #5
    Dave Null Guest
    Removed and did a search in the spec file for any second line, did not find any.
    I'm still getting:
    File not found: /var/tmp/php-root/usr/lib/php/modules/mysqli.so
    (Now only one line again)

    I'll try a PHP 5.2.4 tarball and run it thru checkinstall! But I'm curios about this rpmbuild problem,
    if you think of anything please let me know and I'll try it out.

    Thanks again!

    -Lars

  6. #6
    Seve's Avatar
    Seve is offline Retired Community Manager
    Join Date
    Oct 2004
    Location
    The GTA, Ontario, Canada
    Age
    68
    Posts
    12,371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello:
    Can you post the %files and %files devel [if there is one] section(s) of the .spec file ?

    Seve
    Registered Linux User: #384977
    .................................................. ............
    See the Links below for more Help and those much wanted extras ... :)


Similar Threads

  1. Replies: 0
    Last Post: 19th June 2008, 04:49 PM
  2. Replies: 0
    Last Post: 29th August 2007, 05:53 PM
  3. "mkfs" and "ifconfig" not found
    By shadowwyvern in forum Using Fedora
    Replies: 8
    Last Post: 18th July 2006, 02:50 AM
  4. Replies: 0
    Last Post: 23rd May 2005, 04:59 AM
  5. Replies: 4
    Last Post: 12th May 2004, 11:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •