2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

仮想環境(Vagrant/CentOS7/PHP7.2)にphpMyAdminを導入しようとした話。

Last updated at Posted at 2020-02-10

CUIベースでMySQLいじりたくない⇒ツールに頼ろう!
と思い立ってとりあえずphpMyAdminの導入を決意。インフラ周りの設定苦手すぎるけど、先人たちの知恵を頼りに調査しました。

早速インストール!

いけ!!
Error: Package: php-tidy-5.4.16-9.el7.x86_64 (epel)
           Requires: php(zend-abi) = 20100525-64
           Installed: php-common-7.2.22-1.el7.remi.x86_64 (@remi-php72)
               php(zend-abi) = 20170718-64
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
               php(zend-abi) = 20100525-64
Error: Package: php-bcmath-5.4.16-46.1.el7_7.x86_64 (updates)
           Requires: php-common(x86-64) = 5.4.16-46.1.el7_7
           Installed: php-common-7.2.22-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.22-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
           Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
               php-common(x86-64) = 5.4.16-46.1.el7_7
Error: Package: php-tidy-5.4.16-9.el7.x86_64 (epel)
           Requires: php(api) = 20100412-64
           Installed: php-common-7.2.22-1.el7.remi.x86_64 (@remi-php72)
               php(api) = 20170718-64
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
               php(api) = 20100412-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

ええぇ~…泣

①Package:epel~⇒epelを参照せずにインストール

これでどう?

Loaded plugins: fastestmirror
remi                                                                                             | 3.0 kB  00:00:00
remi/primary_db                                                                                  | 2.6 MB  00:00:01
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * remi: ftp.riken.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp.riken.jp
No package phpMyadmin available.
  * Maybe you meant: phpMyAdmin
Error: Nothing to do

※エラーは出てないですが問題はそこじゃないと判明泣

②よもやインストールするバージョン違うだけかも

Loaded plugins: fastestmirror
remi-php72                                                                                       | 3.0 kB  00:00:00
remi-php72/primary_db                                                                            | 234 kB  00:00:00
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: ftp.riken.jp
 * extras: ftp.riken.jp
 * remi-php72: ftp.riken.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp.riken.jp
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:4.4.15.10-4.el7 will be installed
--> Processing Dependency: php-php-gettext for package: phpMyAdmin-4.4.15.10-4.el7.noarch
--> Processing Dependency: php-tcpdf for package: phpMyAdmin-4.4.15.10-4.el7.noarch
--> Processing Dependency: php-tcpdf-dejavu-sans-fonts for package: phpMyAdmin-4.4.15.10-4.el7.noarch

-------(中略)-------

Dependency Installed:
  libtidy.x86_64 0:5.4.0-1.el7                                     php-bcmath.x86_64 0:7.2.27-1.el7.remi
  php-php-gettext.noarch 0:1.0.12-1.el7                            php-tcpdf.noarch 0:6.2.26-1.el7
  php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.26-1.el7                php-tidy.x86_64 0:7.2.27-1.el7.remi

Dependency Updated:
  php.x86_64 0:7.2.27-1.el7.remi          php-cli.x86_64 0:7.2.27-1.el7.remi     php-common.x86_64 0:7.2.27-1.el7.remi
  php-fpm.x86_64 0:7.2.27-1.el7.remi      php-gd.x86_64 0:7.2.27-1.el7.remi      php-json.x86_64 0:7.2.27-1.el7.remi
  php-mbstring.x86_64 0:7.2.27-1.el7.remi php-mysqlnd.x86_64 0:7.2.27-1.el7.remi php-opcache.x86_64 0:7.2.27-1.el7.remi
  php-pdo.x86_64 0:7.2.27-1.el7.remi      php-process.x86_64 0:7.2.27-1.el7.remi php-xml.x86_64 0:7.2.27-1.el7.remi
  php-xmlrpc.x86_64 0:7.2.27-1.el7.remi

Complete!

できた!

先人たちの知恵(参考URL)

【①の手法】 https://teratail.com/questions/107922

【②の手法】
https://ja.stackoverflow.com/questions/28071/centos7%E3%81%ABphpmyadmin%E3%82%92yum%E3%81%A7%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%97%E3%81%9F%E3%81%95%E3%81%84%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC

まとめ

・バージョンはきちんと確認しよう() ・バージョンの確認とパスの指定で見落としが多い。 ・本気で改善したい(自戒の念)。
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?