Topic: php update issue on FC6 i386 box

I have updated most php-* packages to 5.3.2-1, but I'm getting this error:

yum upgrade php*

Loading "installonlyn" plugin
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pdo.i386 0:5.3.2-1.fc6.remi set to be updated
--> Running transaction check
--> Processing Dependency: libsqlite.so.0 for package: php-pdo
--> Finished Dependency Resolution
Error: Missing Dependency: libsqlite.so.0 is needed by package php-pdo

I'm not sure of the best way to get libsqlite.so.0 on my system.  I don't know if any of the following repos provide what I need (the only one i have enabled right now is Remi's repo--as you can see I disabled these because they weren't letting yum run):
[root@www yum.repos.d.disabled]# ls
atrpms.repo       fedora-development.repo         fedora-extras.repo  fedora-updates.repo          flash.repo      git.repo       kde-redhat.repo  rpmforge.repo
fedora-core.repo  fedora-extras-development.repo  fedora-legacy.repo  fedora-updates-testing.repo  freshrpms.repo  jpackage.repo  livna.repo


I *know* i should update to something newer than FC6, and I'm awaiting the customer's decision on that.  Right now I'd like to get the new version of PHP working well on this system.

php -v gives
PHP Warning:  PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20050922
PHP    compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_mysql.so' - /usr/lib/php/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_odbc.so' - /usr/lib/php/modules/pdo_odbc.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_sqlite.so' - /usr/lib/php/modules/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP 5.3.2 (cli) (built: Mar  4 2010 22:30:54)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

which, if I understand right, is because I haven't update php-pdo, because it depends on libsqlite.so.0

Thanks for any assistance!

Re: php update issue on FC6 i386 box

libsqlite.so.0 is provided bu sqlite2 package which is available in the fedora extras repository.

Check this repo is enabled and point to a valid URL.

FC6 is really really old now.
Most mirrors are closed.

You should really think to upgrade to a maintained version (Fedora >= 11 or Enterprise Linux for long time support).

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php update issue on FC6 i386 box

Thank you so much Remi!  I installed the sqlite2 rpm, then updated php-pdo, and now php doesn't report any errors!

Thank you for maintaining your repo in the absence of official Fedora support!

Have a great day,
Kim

Re: php update issue on FC6 i386 box

Same problem on CentOS 5.4 with only Remi repo enabled.

yum install php-pdo
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.corbina.net
* base: mirror.corbina.net
* centosplus: mirror.corbina.net
* epel: ftp.rhd.ru
* extras: mirror.corbina.net
* remi: remi-mirror.dedipower.com
* updates: mirror.corbina.net
Excluding Packages from CentOS-5 - Base
Finished
Reducing Les RPM de remi pour Enterprise Linux 5 - x86_64 to included packages only
Finished
265 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pdo.x86_64 0:5.3.2-1.el5.remi set to be updated
--> Processing Dependency: libsqlite.so.0()(64bit) for package: php-pdo
--> Finished Dependency Resolution
php-pdo-5.3.2-1.el5.remi.x86_64 from remi has depsolving problems
  --> Missing Dependency: libsqlite.so.0()(64bit) is needed by package php-pdo-5.3.2-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: libsqlite.so.0()(64bit) is needed by package php-pdo-5.3.2-1.el5.remi.x86_64 (remi)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

But you do not provide sqlite2 rpm, either centos/rhel5 do not contain sqlite2. Old sqlite2 for RH4 can't be installed.

Re: php update issue on FC6 i386 box

See sqlite2

Reducing Les RPM de remi pour Enterprise Linux 5 - x86_64 to included packages only
265 packages excluded due to repository priority protections

Probably an explanation.

All deps for my RPM are in official repositories + EPEL. Else package wouldn't build... (well, except Oracle stuff)

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php update issue on FC6 i386 box

I can't fine sqlite2 in EL5 repo, only in EL4.
Disabling priorities doesn't help.

Re: php update issue on FC6 i386 box

http://rpms.famillecollet.com/enterpris … lite2.html

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php update issue on FC6 i386 box

# yum info sqlite2 --noplugins
Excluding Packages from CentOS-5 - Base
Finished
Reducing Les RPM de remi pour Enterprise Linux 5 - x86_64 to included packages only
Finished
Error: No matching Packages to list

What's wrong ?

Re: php update issue on FC6 i386 box

Just read the message:
> Reducing Les RPM de remi pour Enterprise Linux 5 - x86_64 to included packages only

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php update issue on FC6 i386 box

Yes, but how can i specify 'yum' command to make sqlite2 installed by 'yum install sqlite2', or automatically with 'yum install php-pdo' ?
Or there nothing workaround, and i will must install sqlite2.rpm by hand, and php-pdo will never be auto-installed with yum and remi repo ?
Please explain.

Re: php update issue on FC6 i386 box

Check all your include / exclude directives in all your repo file (/etc/yum.repos.d/*.repo)

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php update issue on FC6 i386 box

Thank you!
Yes, there was 'includepkgs=php* mysql*' for remi, as described in some guide. I thinked --noplugins disable this.
So there only left 'excludepkgs=php* mysql*' for base repo.