Amazon Linux AMIサーバーに「yum install -y php70 mysql56-server php70-mysqlnd」をインストールすると、次の競合が発生します。
Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.34-1.16.amzn1.x86_64
解決方法がわかりません。競合はhttpdのインストールと私がインストールしようとしているものにあるようです。
Amazon Linux AMIにはデフォルトでhttpdがインストールされているようです
yum list installed | grep httpd
httpd.x86_64 2.2.34-1.16.amzn1 @amzn-main
httpd-tools.x86_64 2.2.34-1.16.amzn1 @amzn-main
以下で試行されたインストールの完全な出力:
Sudo yum install -y php70 mysql56-server php70-mysqlnd
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package mysql56-server.x86_64 0:5.6.41-1.30.amzn1 will be installed
--> Processing Dependency: mysql56-errmsg(x86-64) = 5.6.41-1.30.amzn1 for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: mysql56-common(x86-64) = 5.6.41-1.30.amzn1 for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: Perl-DBD-MySQL(mysql56) for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: Perl(Data::Dumper) for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: Perl(DBI) for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: Perl(DBI) for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: mysql56(x86-64) for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: mysql56(alternatives) for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: mysql56(alternatives) for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
--> Processing Dependency: mysql-config for package: mysql56-server-5.6.41-1.30.amzn1.x86_64
---> Package php70.x86_64 0:7.0.32-1.31.amzn1 will be installed
--> Processing Dependency: php70-cli(x86-64) = 7.0.32-1.31.amzn1 for package: php70-7.0.32-1.31.amzn1.x86_64
--> Processing Dependency: php70-common(x86-64) = 7.0.32-1.31.amzn1 for package: php70-7.0.32-1.31.amzn1.x86_64
--> Processing Dependency: httpd-mmn = 20120211x86-64 for package: php70-7.0.32-1.31.amzn1.x86_64
--> Processing Dependency: php70-common for package: php70-7.0.32-1.31.amzn1.x86_64
--> Processing Dependency: httpd24 for package: php70-7.0.32-1.31.amzn1.x86_64
---> Package php70-mysqlnd.x86_64 0:7.0.32-1.31.amzn1 will be installed
--> Processing Dependency: php70-pdo(x86-64) = 7.0.32-1.31.amzn1 for package: php70-mysqlnd-7.0.32-1.31.amzn1.x86_64
--> Running transaction check
---> Package httpd24.x86_64 0:2.4.34-1.82.amzn1 will be installed
--> Processing Dependency: httpd24-tools = 2.4.34-1.82.amzn1 for package: httpd24-2.4.34-1.82.amzn1.x86_64
---> Package mysql-config.x86_64 0:5.5.61-1.22.amzn1 will be installed
---> Package mysql56.x86_64 0:5.6.41-1.30.amzn1 will be installed
---> Package mysql56-common.x86_64 0:5.6.41-1.30.amzn1 will be installed
---> Package mysql56-errmsg.x86_64 0:5.6.41-1.30.amzn1 will be installed
---> Package Perl-DBD-MySQL56.x86_64 0:4.023-5.21.amzn1 will be installed
--> Processing Dependency: libmysqlclient.so.1018(libmysqlclient_18)(64bit) for package: Perl-DBD-MySQL56-4.023-5.21.amzn1.x86_64
--> Processing Dependency: libmysqlclient.so.1018()(64bit) for package: Perl-DBD-MySQL56-4.023-5.21.amzn1.x86_64
---> Package Perl-DBI.x86_64 0:1.627-4.8.amzn1 will be installed
--> Processing Dependency: Perl(RPC::PlServer) >= 0.2001 for package: Perl-DBI-1.627-4.8.amzn1.x86_64
--> Processing Dependency: Perl(RPC::PlClient) >= 0.2000 for package: Perl-DBI-1.627-4.8.amzn1.x86_64
---> Package Perl-Data-Dumper.x86_64 0:2.145-3.5.amzn1 will be installed
---> Package php70-cli.x86_64 0:7.0.32-1.31.amzn1 will be installed
---> Package php70-common.x86_64 0:7.0.32-1.31.amzn1 will be installed
--> Processing Dependency: php70-process(x86-64) = 7.0.32-1.31.amzn1 for package: php70-common-7.0.32-1.31.amzn1.x86_64
--> Processing Dependency: php70-xml(x86-64) = 7.0.32-1.31.amzn1 for package: php70-common-7.0.32-1.31.amzn1.x86_64
--> Processing Dependency: php70-json(x86-64) for package: php70-common-7.0.32-1.31.amzn1.x86_64
---> Package php70-pdo.x86_64 0:7.0.32-1.31.amzn1 will be installed
--> Running transaction check
---> Package httpd24-tools.x86_64 0:2.4.34-1.82.amzn1 will be installed
---> Package mysql56-libs.x86_64 0:5.6.41-1.30.amzn1 will be installed
---> Package Perl-PlRPC.noarch 0:0.2020-14.7.amzn1 will be installed
--> Processing Dependency: Perl(Net::Daemon) >= 0.13 for package: Perl-PlRPC-0.2020-14.7.amzn1.noarch
--> Processing Dependency: Perl(Net::Daemon::Test) for package: Perl-PlRPC-0.2020-14.7.amzn1.noarch
--> Processing Dependency: Perl(Net::Daemon::Log) for package: Perl-PlRPC-0.2020-14.7.amzn1.noarch
--> Processing Dependency: Perl(Compress::Zlib) for package: Perl-PlRPC-0.2020-14.7.amzn1.noarch
---> Package php70-json.x86_64 0:7.0.32-1.31.amzn1 will be installed
---> Package php70-process.x86_64 0:7.0.32-1.31.amzn1 will be installed
---> Package php70-xml.x86_64 0:7.0.32-1.31.amzn1 will be installed
--> Running transaction check
---> Package Perl-IO-Compress.noarch 0:2.061-2.12.amzn1 will be installed
--> Processing Dependency: Perl(Compress::Raw::Zlib) >= 2.061 for package: Perl-IO-Compress-2.061-2.12.amzn1.noarch
--> Processing Dependency: Perl(Compress::Raw::Bzip2) >= 2.061 for package: Perl-IO-Compress-2.061-2.12.amzn1.noarch
---> Package Perl-Net-Daemon.noarch 0:0.48-5.5.amzn1 will be installed
--> Running transaction check
---> Package Perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.11.amzn1 will be installed
---> Package Perl-Compress-Raw-Zlib.x86_64 1:2.061-4.1.amzn1 will be installed
--> Processing Conflict: httpd24-tools-2.4.34-1.82.amzn1.x86_64 conflicts httpd-tools < 2.4.34
--> Processing Conflict: httpd24-2.4.34-1.82.amzn1.x86_64 conflicts httpd < 2.4.34
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.34-1.16.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
で試してください:
yum install mod24_ssl.x86_64
aMI Linux
最初に確認する必要があるのは、httpdとhttpd-toolsがインストールされている理由です。これらをインストールする必要がない場合は、それらを削除してから、httpd24バージョンに置き換えることができます(2.2はかなり古いです)。システムでhttpdとhttpd-toolsが必要な場合は、次のコマンドを実行します。
rpm -q --whatrequires httpd
rpm -q --whatrequires httpd-tools
Centos6でも、@ amzn-updatesリポジトリを使用して、2.2ではなくhttpd 2.4でほぼ同じ問題が発生しました。これを解決するために、httpd-toolsを削除しました。
yum remove httpd24-tools
Httpdも削除したようです。大したことはありません。
次に、phpをインストールしました。
yum install php72-..
次にphpをインストールし、次にhttpdをインストールしました。
yum install httpd24
それで解決しました。