Work around for error “php53-odbc64 conflicts with php53-odbc”

When managing a server, you may encounter various challenges that require specific solutions. One such issue is the “php53-odbc64 conflicts with php53-odbc” error that occurs when trying to install the PHP package on CentOS5.9 using the command “yum install php53*” or “yum install php”.

..
..
..
  --> php53-odbc64 conflicts with php53-odbc
Error: php53-odbc64 conflicts with php53-odbc
 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
..
..

This guide will provide you with a step-by-step workaround for this issue, ensuring that your server runs smoothly and efficiently.

For a deeper understanding of web servers, you may want to explore our guide on the best web servers. If you’re interested in specific servers like Apache, Nginx, or LiteSpeed, we have detailed articles on those as well.

Understanding the Error

The error “php53-odbc64 conflicts with php53-odbc” typically occurs when you attempt to install the PHP package on CentOS5.9. This error is a result of a conflict between the php53-odbc64 and php53-odbc packages.

When you run the command “yum install php53*” or “yum install php”, the system tries to install all the PHP 5.3 packages available in the repository. However, the php53-odbc and php53-odbc64 packages cannot coexist, leading to the conflict.

Example:

[root@centos59 ~]# yum install php53*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * updates: mirror.nus.edu.sg
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-bcmath.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-cli.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-common.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-dba.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-devel.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-gd.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-imap.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-intl.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-ldap.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-mbstring.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-mysql.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-odbc.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-odbc64.i386 0:5.3.3-2.el5 set to be updated
--> Processing Dependency: libodbc.so.2 for package: php53-odbc64
---> Package php53-pdo.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-pgsql.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-process.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-pspell.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-snmp.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-soap.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-xml.i386 0:5.3.3-13.el5_8 set to be updated
---> Package php53-xmlrpc.i386 0:5.3.3-13.el5_8 set to be updated
--> Running transaction check
---> Package unixODBC64-libs.i386 0:2.2.14-3.el5 set to be updated
--> Processing Dependency: libltdl.so.3 for package: unixODBC64-libs
--> Running transaction check
---> Package libtool-ltdl.i386 0:1.5.22-7.el5_4 set to be updated
--> Processing Conflict: php53-odbc64 conflicts php53-odbc
--> Finished Dependency Resolution
php53-odbc64-5.3.3-2.el5.i386 from base has depsolving problems
  --> php53-odbc64 conflicts with php53-odbc
Error: php53-odbc64 conflicts with php53-odbc
 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

Resolving the Error

The solution to this issue is relatively straightforward. As suggested in the error log, you can use the –skip-broken option with the yum install command. This option allows yum to skip packages that cannot be installed for any reason (in this case, due to the conflict) and proceed with the installation of other packages.

See also  How to Install PHP 5.4.4 using Remi Repository on CentOS 6.2

Here’s the command you need to run:

yum install php53* --skip-broken

This command instructs yum to install all the PHP 5.3 packages, skipping any that cause problems. As a result, it bypasses the conflicting php53-odbc64 package and installs the rest.

Commands Mentioned

  • yum install php53* – This command attempts to install all PHP 5.3 packages available in the repository.
  • yum install php53* –skip-broken – This command attempts to install all PHP 5.3 packages, skipping any that cause conflicts or other issues.
See also  How to Upgrade from CentOS 7 to CentOS 8

Conclusion

Server management often involves troubleshooting various issues, and understanding how to resolve them is crucial for maintaining a smoothly running server. The “php53-odbc64 conflicts with php53-odbc” error is one such issue that can be resolved by using the –skip-broken option with the yum install command. This workaround allows you to install the necessary PHP packages without being hindered by package conflicts.

Remember, whether you’re dealing with a dedicated server, a VPS server, cloud hosting, or shared hosting, understanding how to troubleshoot common issues is key to effective server management. Stay tuned for more in-depth guides and tutorials to help you navigate the world of web hosting and server management.

See also  How to Install PHP on Fedora 16

FAQs

  1. What does the “php53-odbc64 conflicts with php53-odbc” error mean?

    This error occurs when there’s a conflict between the php53-odbc and php53-odbc64 packages during the installation of PHP 5.3 on CentOS5.9. The system cannot install both packages simultaneously, leading to this error.

  2. What does the –skip-broken option do in the yum install command?

    The –skip-broken option instructs yum to skip packages that cannot be installed due to conflicts or other issues, and proceed with the installation of other packages. This allows the installation process to continue even if some packages cannot be installed.

  3. Why can’t the php53-odbc and php53-odbc64 packages coexist?

    The php53-odbc and php53-odbc64 packages cannot coexist because they are different versions of the same package. Installing both would lead to conflicts in the system, hence the error.

  4. What is the impact of the “php53-odbc64 conflicts with php53-odbc” error on my server?

    This error prevents the installation of PHP 5.3 on your server. Without a successful installation, your server may not be able to run PHP-based applications or websites effectively.

  5. Can I manually install the conflicting packages separately to resolve the error?

    No, manually installing the conflicting packages separately will not resolve the error. The conflict arises because these packages cannot coexist. The recommended solution is to use the –skip-broken option to bypass the conflicting package during installation.

Comments

2 Comments

  • Avatar IT mole says:

    Same error has occurred to me.

    It seems successful and then install the php-5.3.27 as follows.

    I run the command in the following order:

    tar zxvf php-5.3.27.tar.gz

    cd php-5.3.27

    . / configure

    make

    make install

    Check the php version

    php-version

    To change the permissions on the su depending on your environment, to perform password

    However, it is necessary to create a php.ini

    should I use to copy the php.ini-development present in the php-5.3.27 directory

    php.ini should be present in the etc.

  • Avatar nomura says:

    # yum install php53* –skip-broken php53-odbc64

    You should may be input in this manner.

Leave a Reply

Your email address will not be published. Required fields are marked *