ploneを構築できなかった

centos6.6でplone4.3.6を動かそうとしたけどできなかった話

環境

[code lang=text] [root@tk2-234-26965 ~]$ cat /etc/redhat-release CentOS release 6.6 (Final) [/code]

最新のを持ってくる

[code lang=text] [root@tk2-234-26965 ~]$ wget https://launchpad.net/plone/4.3/4.3.6/+download/Plone-4.3.6-UnifiedInstaller.tgz --2015-07-29 17:36:03-- https://launchpad.net/plone/4.3/4.3.6/+download/Plone-4.3.6-UnifiedInstaller.tgz launchpad.net をDNSに問いあわせています... 91.189.89.223, 91.189.89.222 launchpad.net|91.189.89.223|:443 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 302 Moved Temporarily 場所: https://launchpadlibrarian.net/208392631/Plone-4.3.6-UnifiedInstaller.tgz [続く] --2015-07-29 17:36:04-- https://launchpadlibrarian.net/208392631/Plone-4.3.6-UnifiedInstaller.tgz launchpadlibrarian.net をDNSに問いあわせています... 91.189.89.229, 91.189.89.228 launchpadlibrarian.net|91.189.89.229|:443 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 36181528 (35M) [application/x-tar] `Plone-4.3.6-UnifiedInstaller.tgz' に保存中

100%[======================================================================================================================================================================================================================================>] 36,181,528 2.50M/s 時間 19s

2015-07-29 17:36:25 (1.80 MB/s) - `Plone-4.3.6-UnifiedInstaller.tgz' へ保存完了 [36181528/36181528]

[root@tk2-234-26965 ~]$ tar zxvf Plone-4.3.6-UnifiedInstaller.tgz (略) [root@tk2-234-26965 ~]# cd Plone-4.3.6-UnifiedInstaller/ [/code]

どうやらinstall.shを叩くだけで環境ができるのがウリらしいので叩く。 standaloneがあったので今回はstandaloneで。

[code lang=text] [root@tk2-234-26965 Plone-4.3.6-UnifiedInstaller]# sh install.sh standalone

which: no python2.7 in (/usr/local/rbenv/shims:/usr/local/rbenv/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) Unable to find python2.7 on system exec path.

Please do one of the following: 1) Install python2.7 as a system 'dev' package; 2) Use --with-python=... option to point the installer to a useable python; or 3) Use the --build-python option to tell the installer to build Python. [root@tk2-234-26965 Plone-4.3.6-UnifiedInstaller]# python --version Python 2.6.6 [/code]

どうやらpythonを2.7にしろとのことだったので https://gist.github.com/ryugoo/3684667 を参考に2.7系にした。

[code lang=text] [root@tk2-234-26965 Plone-4.3.6-UnifiedInstaller]# python --version Python 2.7.9 [/code]

[code lang=text] [root@tk2-234-26965 Plone-4.3.6-UnifiedInstaller]# sh install.sh standalone

Testing /usr/local/bin/python2.7 for Zope/Plone requirements.... Warning: This Python does not have readline support. It may still be usable for Zope, but interacting directly with Python will be painful.

/usr/local/bin/python2.7 looks OK. We'll try to use it.

Unable to find libxslt development libraries.

Plone installation requires the development versions of libxml2 and libxslt. libxml2 must be version 2.7.8 or greater; libxslt must be 1.1.26 or greater. Ideally, you should install these as dev package libraries before running install.sh. If -- and only if -- these packages are not available for your platform, you may try adding --static-lxml=yes to your install.sh command line to force a local, static build of these libraries. This will require Internet access for the installer to download the extra source Installation aborted. [/code]

libxml2とlibxsltがどーたらこーたららしいのでyumでいれる。

[code lang=text] [root@tk2-234-26965 Plone-4.3.6-UnifiedInstaller]# yum install libxml2-devel libxslt-devel 読み込んだプラグイン:fastestmirror, security インストール処理の設定をしています Loading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.tsukuba.wide.ad.jp * rpmforge: ftp.riken.jp * updates: ftp.tsukuba.wide.ad.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> Package libxml2-devel.x86_64 0:2.7.6-17.el6_6.1 will be インストール ---> Package libxslt-devel.x86_64 0:1.1.26-2.el6_3.1 will be インストール --> 依存性解決を終了しました。

依存性を解決しました


パッケージ アーキテクチャ バージョン リポジトリー 容量

インストールしています: libxml2-devel x86_64 2.7.6-17.el6_6.1 updates 1.1 M libxslt-devel x86_64 1.1.26-2.el6_3.1 base 561 k

トランザクションの要約

インストール 2 パッケージ

総ダウンロード容量: 1.6 M インストール済み容量: 12 M これでいいですか? [y/N]y パッケージをダウンロードしています: (1/2): libxml2-devel-2.7.6-17.el6_6.1.x86_64.rpm | 1.1 MB 00:00

(2/2): libxslt-devel-1.1.26-2.el6_3.1.x86_64.rpm | 561 kB 00:00

合計 7.4 MB/s | 1.6 MB 00:00
rpm_check_debug を実行しています トランザクションのテストを実行しています トランザクションのテストを成功しました トランザクションを実行しています インストールしています : libxml2-devel-2.7.6-17.el6_6.1.x86_64 1/2 インストールしています : libxslt-devel-1.1.26-2.el6_3.1.x86_64 2/2 Verifying : libxslt-devel-1.1.26-2.el6_3.1.x86_64 1/2 Verifying : libxml2-devel-2.7.6-17.el6_6.1.x86_64 2/2

インストール: libxml2-devel.x86_64 0:2.7.6-17.el6_6.1 libxslt-devel.x86_64 0:1.1.26-2.el6_3.1

完了しました! [/code]

もう一度

[code lang=text] [root@tk2-234-26965 Plone-4.3.6-UnifiedInstaller]# sh install.sh standalone

Testing /usr/local/bin/python2.7 for Zope/Plone requirements.... Warning: This Python does not have readline support. It may still be usable for Zope, but interacting directly with Python will be painful.

/usr/local/bin/python2.7 looks OK. We'll try to use it.

We need development version 2.7.8 of libxml2. Not found.

Plone installation requires the development versions of libxml2 and libxslt. libxml2 must be version 2.7.8 or greater; libxslt must be 1.1.26 or greater. Ideally, you should install these as dev package libraries before running install.sh. If -- and only if -- these packages are not available for your platform, you may try adding --static-lxml=yes to your install.sh command line to force a local, static build of these libraries. This will require Internet access for the installer to download the extra source Installation aborted. [/code]

libxml2のバージョンを2.8にしろ?かな yumでみてみたら パッケージ libxml2-2.7.6-17.el6_6.1.x86_64 はインストール済みか最新バージョンです パッケージ libxslt-1.1.26-2.el6_3.1.x86_64 はインストール済みか最新バージョンです

おー2.7だ

コマンドで確認するにはこれかなぁ?

[code lang=text] [root@tk2-234-26965 Plone-4.3.6-UnifiedInstaller]# xml2-config --version 2.7.6 [/code]

http://xmlsoft.org/sources/ からlibxml2-2.8.0-1.x86_64.rpmとlibxml2-devel-2.8.0-1.x86_64.rpmwgetして

[code lang=text] [root@tk2-234-26965 ~]# yum install libxml2-2.8.0-1.x86_64.rpm libxml2-devel-2.8.0-1.x86_64.rpm 読み込んだプラグイン:fastestmirror, security インストール処理の設定をしています libxml2-2.8.0-1.x86_64.rpm を調べています: libxml2-2.8.0-1.x86_64 次のリポジトリーへの更新として libxml2-2.8.0-1.x86_64.rpm を設定します: libxml2-2.7.6-17.el6_6.1.x86_64 Loading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.tsukuba.wide.ad.jp * rpmforge: ftp.riken.jp * updates: ftp.tsukuba.wide.ad.jp 次のリポジトリーへの更新として libxml2-2.8.0-1.x86_64.rpm を設定します: libxml2-2.7.6-17.el6_6.1.i686 libxml2-devel-2.8.0-1.x86_64.rpm を調べています: libxml2-devel-2.8.0-1.x86_64 次のリポジトリーへの更新として libxml2-devel-2.8.0-1.x86_64.rpm を設定します: libxml2-devel-2.7.6-17.el6_6.1.x86_64 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> Package libxml2.x86_64 0:2.7.6-17.el6_6.1 will be 更新 ---> Package libxml2.x86_64 0:2.8.0-1 will be an update --> 依存性の処理をしています: libc.so.6(GLIBC_2.14)(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 --> 依存性の処理をしています: libc.so.6(GLIBC_2.15)(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 --> 依存性の処理をしています: libz.so.1(ZLIB_1.2.3.3)(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 --> 依存性の処理をしています: liblzma.so.5()(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 ---> Package libxml2-devel.x86_64 0:2.7.6-17.el6_6.1 will be 更新 ---> Package libxml2-devel.x86_64 0:2.8.0-1 will be an update --> 依存性の処理をしています: xz-devel のパッケージ: libxml2-devel-2.8.0-1.x86_64 --> トランザクションの確認を実行しています。 ---> Package libxml2.x86_64 0:2.8.0-1 will be an update --> 依存性の処理をしています: libc.so.6(GLIBC_2.14)(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 --> 依存性の処理をしています: libc.so.6(GLIBC_2.15)(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 --> 依存性の処理をしています: libz.so.1(ZLIB_1.2.3.3)(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 --> 依存性の処理をしています: liblzma.so.5()(64bit) のパッケージ: libxml2-2.8.0-1.x86_64 ---> Package xz-devel.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be インストール --> 依存性解決を終了しました。 エラー: パッケージ: libxml2-2.8.0-1.x86_64 (/libxml2-2.8.0-1.x86_64) 要求: libc.so.6(GLIBC_2.14)(64bit) エラー: パッケージ: libxml2-2.8.0-1.x86_64 (/libxml2-2.8.0-1.x86_64) 要求: liblzma.so.5()(64bit) エラー: パッケージ: libxml2-2.8.0-1.x86_64 (/libxml2-2.8.0-1.x86_64) 要求: libc.so.6(GLIBC_2.15)(64bit) エラー: パッケージ: libxml2-2.8.0-1.x86_64 (/libxml2-2.8.0-1.x86_64) 要求: libz.so.1(ZLIB_1.2.3.3)(64bit) 問題を回避するために --skip-broken を用いることができません これらを試行できます: rpm -Va --nofiles --nodigest [/code]

うーん

[code lang=text] [root@tk2-234-26965 ~]# yum whatprovides libc.so.6 読み込んだプラグイン:fastestmirror, security Loading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.tsukuba.wide.ad.jp * rpmforge: ftp.riken.jp * updates: ftp.tsukuba.wide.ad.jp glibc-2.12-1.149.el6.i686 : The GNU libc libraries リポジトリー : base 一致 : その他 : libc.so.6

glibc-2.12-1.149.el6_6.4.i686 : The GNU libc libraries リポジトリー : updates 一致 : その他 : libc.so.6

glibc-2.12-1.149.el6_6.5.i686 : The GNU libc libraries リポジトリー : updates 一致 : その他 : libc.so.6

glibc-2.12-1.149.el6_6.7.i686 : The GNU libc libraries リポジトリー : updates 一致 : その他 : libc.so.6

glibc-2.12-1.149.el6_6.9.i686 : The GNU libc libraries リポジトリー : updates 一致 : その他 : libc.so.6

glibc-2.12-1.149.el6_6.9.i686 : The GNU libc libraries リポジトリー : installed 一致 : その他 : Provides-match: libc.so.6 [/code]

[code lang=text] [root@tk2-234-26965 ~]# uname -r 2.6.32-504.23.4.el6.x86_64 [/code]

辛そうなので今回は諦めた