vine linux 3.1の MySQL4.0.23と PHP5.0.4の install
sorry Japanese only
PAGE作成日 2005/07/24
最終更新日 2005/12/11
page size = Mbyte

関連するページ vine linux 3.2へ MySQL4と PHP5の install

vine linux3.1と apache2.0.54の組み合わせへ MySQL 4.0.23と PHP5.0.4を installする方法です

順番としては
apache2
MySQL
PHP
の順に installしていきます。

MySQL4.0.23の install

MySQL4は、ring-serverの vine3.1 plusディレクトリー下にある物を利用します。
http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/
MySQL-server-4.0.23-0vl0.i386.rpm                  21-Jan-2005 19:18   10M  
MySQL-client-4.0.23-0vl0.i386.rpm                  21-Jan-2005 19:18  2.5M  
MySQL-devel-4.0.23-0vl0.i386.rpm                   21-Jan-2005 19:18  908K  
MySQL-shared-4.0.23-0vl0.i386.rpm                  21-Jan-2005 19:18  270K  

[root]# rpm -ivh \
> http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-server-4.0.23-0vl0.i386.rpm \
> http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-client-4.0.23-0vl0.i386.rpm \
> http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-devel-4.0.23-0vl0.i386.rpm \
> http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-shared-4.0.23-0vl0.i386.rpm \
>
http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-server-4.0.23-0vl0.i386.rpm を取得中
http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-client-4.0.23-0vl0.i386.rpm を取得中
http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-devel-4.0.23-0vl0.i386.rpm を取得中
http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/MySQL-shared-4.0.23-0vl0.i386.rpm を取得中
準備中...                   ########################################### [100%]
   1:MySQL-server           ########################################### [ 25%]
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
050816 21:13:29 /usr/sbin/mysqld: Shutdown Complete


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h vine31 password 'new-password'
See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

   2:MySQL-client           ########################################### [ 50%]
   3:MySQL-devel            ########################################### [ 75%]
   4:MySQL-shared           ########################################### [100%]

んー、いとも簡単に 1分ぐらいで終わりましたが、正常に動くのでしょうか。
設定は後回しにします。

PHP5.0.4の install

www.php.netの downloadページより PHP5.0.4のソースコードを downloadします。

configureで errorが出るので、以下のプログラムを rpmで installしておきます。

このエラーは
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2422: lex: command not found
configure: error: cannot find output from lex; giving up
これを
[root]# rpm -ivh \
> http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS/m4-1.4.1-12vl2.i386.rpm \
> http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/bison-1.875-6vl1.i386.rpm \
> http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/flex-2.5.4a-30vl1.i386.rpm
http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS/m4-1.4.1-12vl2.i386.rpm を取得中
http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/bison-1.875-6vl1.i386.rpm を取得中
http://ring.asahi-net.or.jp/archives/linux/Vine/VinePlus/3.1/i386/RPMS.plus/flex-2.5.4a-30vl1.i386.rpm を取得中
準備中...                   ########################################### [100%]
   1:m4                     ########################################### [ 50%]
   2:bison                  ########################################### [100%]
   3:flex                   ########################################### [100%]

このエラーは
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.

これは configureにオプションを追加
--disable-libxml

このエラーは
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... /usr
configure: error: Cannot find libz

zlib-develを入れて解消
[root]# rpm -ivh \
> http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/zlib-devel-1.1.4-0vl3.i386.rpm
http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/zlib-devel-1.1.4-0vl3.i386.rpm を取得中
準備中...                   ########################################### [100%]
   1:zlib-devel             ########################################### [100%]

このエラーは
configure: error: libjpeg.(a|so) not found.

libjpeg-develを入れて解消
[root]# rpm -ivh \
> http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/libjpeg-devel-6b-21vl2.i386.rpm
http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/libjpeg-devel-6b-21vl2.i386.rpm を取得中
準備中...                   ########################################### [100%]
   1:libjpeg-devel          ########################################### [100%]

このエラーは
configure: error: libpng.(a|so) not found.

libpng-develを入れて解消
[root]# rpm -ivh \
> http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/libpng-devel-1.2.7-0vl1.i386.rpm
http://ring.asahi-net.or.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/libpng-devel-1.2.7-0vl1.i386.rpm を取得中
準備中...                   ########################################### [100%]
   1:libpng-devel           ########################################### [100%]

やっと configureが通ったー

最終的に configureのオプションは以下で行いました。

[root]# configure \
> --with-apxs2=/usr/local/apache2/bin/apxs \
> --enable-zend-multibyte \
> --with-mysql=/usr/local/mysql \
> --enable-track-vars \
> --enable-mbstring \
> --enable-mbregex \
> --with-png-dir=/usr/local/lib \
> --with-jpeg-dir=/usr/local/lib \
> --with-zlib-dir=/usr \
> --with-zlib \
> --with-gd \
> --disable-libxml

しかし configureで表示された errorメッセージで googleすれば、同じ問題に直面した人が沢山いて、
すぐに問題解決するって言うのも・・・


configureの結果はこちら => PHP-configure.html



2005/12/11追加
PHP5.1.1へ updateしようとしたら、同じ configureの optionではエラーが出て通りませんでした。

--disable-libxml を付けると
checking whether to enable DOM support... yes
configure: error: DOM extension requires LIBXML extension, add --enable-libxml

--disable-libxmlを付けないと
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.

解決策としては libxml2-develを入れることによって解決できました
[root]# rpm -ivh http://ring.ocn.ad.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/libxml2-devel-2.6.15-0vl1.i386.rpm
http://ring.ocn.ad.jp/archives/linux/Vine/Vine-3.1/i386/Vine/RPMS.devel/libxml2-devel-2.6.15-0vl1.i386.rpm を取得中
準備中...                   ########################################### [100%]
   1:libxml2-devel          ########################################### [100%]

PHP5.1.1を作ったときの configure optionは以下の通りです。
configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-zend-multibyte --with-mysql=/usr/local/mysql --enable-track-vars --enable-mbstring --enable-mbregex --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr --with-zlib --with-gd

このオプションでの configureの結果はこちら => PHP511-configure.html




次は makeを行います。
makeの結果はこちら => PHP-make.html

次は make installを行います
[root]# make install
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /tmp/php-5.0.4/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in /usr/local/apache2/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar: 'xml' PHP extension is not installed
[PEAR] Console_Getopt: 'xml' PHP extension is not installed
[PEAR] PEAR: 'xml' PHP extension is not installed
[PEAR] HTML_Template_IT: 'xml' PHP extension is not installed
[PEAR] Net_UserAgent_Detect: 'xml' PHP extension is not installed
[PEAR] XML_RPC: 'xml' PHP extension is not installed
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
  program: phpextdist

続く

10498
戻る