1

Topic: Install Amazon Linux AMI - Issues on already installed MySQL

==== ==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version:  Amazon Linux AMI 3.2.22-35.60
- Related log if you're reporting an issue:
====

I already have an application running that uses mysql server and that application uses php-mysqlnd (which is apparently a replacement for php-mysql?)

When I get to the part where the packages are being installed I get the following, All suggestions welcome

< INFO > Installing package(s): mysql-server.x86_64 mysql.x86_64 mod_auth_mysql.x86_64 httpd.x86_64 mod_ssl.x86_64 php.x86_64 php-common.x86_64 php-gd.x86_64 php-xml.x86_64 php-mysql.x86_64 php-ldap.x86_64 php-pgsql.x86_64 postfix.x86_64 policyd.x86_64 dovecot.x86_64 dovecot-managesieve.x86_64 dovecot-pigeonhole.x86_64 clamd.x86_64 clamav.x86_64 clamav-db.x86_64 spamassassin.x86_64 altermime.x86_64 perl-LDAP.noarch perl-Mail-SPF.noarch perl-Mail-SPF-Query.noarch amavisd-new.noarch MySQL-python.x86_64 python-jinja2.x86_64 python-webpy.noarch mod_wsgi.x86_64 awstats.noarch fail2ban bzip2.x86_64 acl.x86_64 patch.x86_64 tmpwatch.x86_64 crontabs.noarch dos2unix.x86_64 logwatch
Loaded plugins: fastestmirror, priorities, security, update-motd, upgrade-helper
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
23 packages excluded due to repository priority protections
Setting up Install Process
No package mysql-server.x86_64 available.
No package mysql.x86_64 available.
Package 1:mod_auth_mysql-3.0.0-18.10.amzn1.x86_64 already installed and latest version
Package httpd-2.2.23-1.25.amzn1.x86_64 already installed and latest version
Package 1:mod_ssl-2.2.23-1.25.amzn1.x86_64 already installed and latest version
Package php-5.3.18-1.27.amzn1.x86_64 already installed and latest version
Package php-common-5.3.18-1.27.amzn1.x86_64 already installed and latest version
Package php-gd-5.3.18-1.27.amzn1.x86_64 already installed and latest version
Package php-xml-5.3.18-1.27.amzn1.x86_64 already installed and latest version
Package php-ldap-5.3.18-1.27.amzn1.x86_64 already installed and latest version
Package php-pgsql-5.3.18-1.27.amzn1.x86_64 already installed and latest version
Package spamassassin-3.3.1-2.6.amzn1.x86_64 already installed and latest version
Package 1:perl-LDAP-0.40-1.5.amzn1.noarch already installed and latest version
Package perl-Mail-SPF-2.007-1.el6.noarch already installed and latest version
Package perl-Mail-SPF-Query-1.999.1-2.el6.rf.noarch already installed and latest version
Package MySQL-python-1.2.3-0.3.c1.1.8.amzn1.x86_64 already installed and latest version
Package python-jinja2-2.2.1-1.4.amzn1.x86_64 already installed and latest version
Package mod_wsgi-3.2-1.6.amzn1.x86_64 already installed and latest version
Package bzip2-1.0.6-8.12.amzn1.x86_64 already installed and latest version
Package acl-2.2.49-6.9.amzn1.x86_64 already installed and latest version
Package patch-2.6-6.6.amzn1.x86_64 already installed and latest version
Package tmpwatch-2.9.16-4.10.amzn1.x86_64 already installed and latest version
Package crontabs-1.10-33.9.amzn1.noarch already installed and latest version
Package dos2unix-3.1-37.5.amzn1.x86_64 already installed and latest version
Package logwatch-7.3.6-49.9.amzn1.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package altermime.x86_64 0:0.3.10-3.el6 will be installed
---> Package amavisd-new.noarch 0:2.6.6-3.el6 will be installed
--> Processing Dependency: arj for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: p7zip for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: cabextract for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: perl(Convert::UUlib) for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: lzop for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: perl(Unix::Syslog) for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: perl(BerkeleyDB) for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: nomarch for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: perl(Razor2::Client::Version) for package: amavisd-new-2.6.6-3.el6.noarch
--> Processing Dependency: freeze for package: amavisd-new-2.6.6-3.el6.noarch
---> Package awstats.noarch 0:7.0-2.el6.rf will be installed
--> Processing Dependency: perl(Geo::IP) for package: awstats-7.0-2.el6.rf.noarch
---> Package clamav.x86_64 0:0.97.6-1.el6.rf will be installed
---> Package clamav-db.x86_64 0:0.97.6-1.el6.rf will be installed
---> Package clamd.x86_64 0:0.97.6-1.el6.rf will be installed
---> Package dovecot.x86_64 1:2.0.9-2.9.amzn1 will be installed
---> Package dovecot-managesieve.x86_64 2:0.2.6-21.el6 will be installed
---> Package dovecot-pigeonhole.x86_64 1:2.0.9-2.9.amzn1 will be installed
---> Package fail2ban.noarch 0:0.8.4-24.el6 will be installed
--> Processing Dependency: shorewall for package: fail2ban-0.8.4-24.el6.noarch
---> Package php-mysql.x86_64 0:5.3.18-1.27.amzn1 will be installed
---> Package policyd.x86_64 0:1.82-6.el6 will be installed
---> Package postfix.x86_64 2:2.6.6-2.13.amzn1 will be installed
---> Package python-webpy.noarch 0:0.36-2.el6 will be installed
--> Running transaction check
---> Package arj.x86_64 0:3.10.22-12.el6 will be installed
---> Package cabextract.x86_64 0:1.3-3.el6 will be installed
--> Processing Dependency: libmspack.so.0()(64bit) for package: cabextract-1.3-3.el6.x86_64
---> Package freeze.x86_64 0:2.5.0-11.el6 will be installed
---> Package lzop.x86_64 0:1.03-4.1.amzn1 will be installed
---> Package nomarch.x86_64 0:1.4-6.el6 will be installed
---> Package p7zip.x86_64 0:9.13-1.el6 will be installed
---> Package perl-BerkeleyDB.x86_64 0:0.43-3.el6 will be installed
---> Package perl-Convert-UUlib.x86_64 1:1.34-1.el6 will be installed
---> Package perl-Geo-IP.x86_64 0:1.38-1.el6.rf will be installed
---> Package perl-Razor-Agent.x86_64 0:2.85-6.el6 will be installed
---> Package perl-Unix-Syslog.x86_64 0:1.1-3.el6 will be installed
---> Package shorewall.noarch 0:4.4.10-4.el6 will be installed
--> Running transaction check
---> Package libmspack.x86_64 0:0.2-0.1.20100723alpha.el6 will be installed
--> Processing Conflict: php-mysql-5.3.18-1.27.amzn1.x86_64 conflicts php-mysqlnd
--> Finished Dependency Resolution
Error: php-mysql conflicts with php-mysqlnd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
< ERROR > Installation failed, please check the terminal output.
< ERROR > If you're not sure what the problem is, try to get help in iRedMail
< ERROR > forum: http://www.iredmail.org/forum/

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Install Amazon Linux AMI - Issues on already installed MySQL

frperalta1 wrote:

--> Processing Conflict: php-mysql-5.3.18-1.27.amzn1.x86_64 conflicts php-mysqlnd

iRedMail tries to install package 'php-mysql', but your Amazon Linux instance already has 'php-mysqlnd' installed.

Two options:

1) Edit iRedMail-0.8.3/functions/packages.sh, let iRedMail install 'php-mysqlnd' instead of 'php-mysql'.
2) Remove php-mysqlnd then try again. WARNING: Looks like Amazon provides several packages built by themselves, and you will lose support from Amazon if you remove it.