前へ|次へ|戻る

php-5.1.2.tar.gz on /usr/local/src

Out line

できれば pkgtool を 使って インストール する方式で やりたいが そうも ゆかない 場合も 有るということ (これは にゃんたろう 個猫 の 場合であり 一般には そうでは 有りませんので

# cd /usr/local/src/
# mkdir php-5-1-2
# cd php-5-1-2/
# mv /var/data/mkpackage/php-5-1-2/php-5.1.2.tar.gz .
# ls -l | sed -e 1d
-rw-r--r--    1 root     root      8064193 Mar 12 21:23 php-5.1.2.tar.gz

ほたら

# tar xvzpf php-5.1.2.tar.gz 2>&1 | tee untar_log
# cd php-5.1.2/

ほんで もって

# cd php-5.1.2/
# ./configure --with-apxs2=/var/data/aaa/apache2/bin/apxs \
--with-pgsql=/usr/local/pgsql --enable-mbstring --without-mysql 2>&1 | tee php_config_log 
...
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

へてから

# mv php_config_log ../
# make  2>&1 | tee make_php_log
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
# mv make_php_log ../

ようやく

# make install  2>&1 | tee make_install_log
Installing PHP SAPI module:       apache2handler
/var/data/aaa/apache2/build/instdso.sh \
SH_LIBTOOL='/var/data/aaa/apache2/build/l
ibtool' libphp5.la /var/data/aa/apache2/modules
/var/data/aaa/apache2/build/libtool --mode=install\
 cp libphp5.la /var/data/aaa/apache2/modules/
cp .libs/libphp5.so /var/data/aaa/apache2/modules/libphp5.so
cp .libs/libphp5.lai /var/data/aaa/apache2/modules/libphp5.la
libtool: install: warning: remember to \
run `libtool --finish /usr/local/src/php-5-1-2/php-5.1.2/libs'
sed: -e expression #1, char 34: Extra characters after command
sed: -e expression #1, char 51: Extra characters after command
Warning!  dlname not found in /var/data/aaa/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /var/data/aaa/apache2/modules/libphp5.so
[activating module `php5' in /var/data/aaa/apache2/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
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
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.1
[PEAR] Console_Getopt - installed: 1.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR           - installed: 1.4.6
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/include/php/ext/pdo/
# mv make_install_log ../

ふうーー

# cd /usr/local/etc/
# ls -l | sed -e 1d
-rw-r--r--    1 root     root         1093 Mar 12 13:18 first_pear.conf
-rw-r--r--    1 root     root          873 Mar 12 15:41 pear.conf

新しく pear.conf が できている

# mv first_pear.conf first_pear.conf_package_case
# mv first_pear.conf_package_case /home/mm/0001_first-step/
# cd /var/data/aaa/apache2/modules/
# ls -al | sed -e 1,3d
-rw-r--r--    1 root     root         1063 Mar 12 13:18 first_libphp5.la
-rwxr-xr-x    1 root     root     17315898 Mar 12 13:18 first_libphp5.so*
-rw-r--r--    1 apache   apache       8873 Mar  3 20:21 httpd.exp
-rw-r--r--    1 root     root         1058 Mar 12 15:41 libphp5.la
-rwxr-xr-x    1 root     root     17305806 Mar 12 15:41 libphp5.so*

新しく libphp5.la と libphp5.so* ができている 同じ ものでは ないようだ

# diff -s first_libphp5.la libphp5.la 
35c35
< libdir='/var/data/mkpackage/php-5-1-2/php-5.1.2/libs'
---
> libdir='/usr/local/src/php-5-1-2/php-5.1.2/libs'
# mv first_libphp5.la first_libphp5.la_package_case
# mv first_libphp5.so first_libphp5.so_pacage_case
# mv first_libphp5.* /home/mm/0001_first-step/
# ls -la | sed -e 1,3d
-rw-r--r--    1 apache   apache       8873 Mar  3 20:21 httpd.exp
-rw-r--r--    1 root     root         1058 Mar 12 15:41 libphp5.la
-rwxr-xr-x    1 root     root     17305806 Mar 12 15:41 libphp5.so*

もうすこし

# cd /var/data/aaa/apache2/conf/
# ls -l | sed -e 1d
-rw-r--r--    1 apache   apache      13645 Mar  3 20:28 0001_httpd.conf_org
-rw-r--r--    1 root     root        13678 Mar 12 10:29 0002_httpd.conf_before_php
drwxr-xr-x    2 apache   apache       4096 Mar  3 20:28 extra/
-rw-r--r--    1 apache   apache      13727 Mar 12 13:18 first_httpd.conf
-rw-r--r--    1 root     root        13678 Mar 12 13:18 first_httpd.conf.bak
-rw-r--r--    1 apache   apache      13727 Mar 12 15:41 httpd.conf
-rw-r--r--    1 root     root        13678 Mar 12 15:41 httpd.conf.bak
-rw-r--r--    1 apache   apache      12958 Mar  3 20:28 magic
-rw-r--r--    1 apache   apache      15020 Mar  3 20:28 mime.types
drwxr-xr-x    3 apache   apache       4096 Mar  3 20:28 original/

新しく httpd.conf と httpd.conf.bak ができている 内容は

# diff -s first_httpd.conf httpd.conf
Files first_httpd.conf and httpd.conf are identical
# diff -s httpd.conf httpd.conf.bak 
53d52
< LoadModule php5_module        modules/libphp5.so

内容は 同じものの 書き換えの ようだ

# diff -s first_httpd.conf first_httpd.conf.bak 
53d52
< LoadModule php5_module        modules/libphp5.so
# mv first_httpd.conf first_httpd.conf_make_pacage_case
# mv first_httpd.conf.bak first_httpd.conf.bak_make_pacage_case
# mv first_httpd.conf* /home/mm/0001_first-step/
# chown mm.users /home/mm/0001_first-step/*

後始末は終わった 次は 調整せねば いけんが どうすりゃ 良いの?

にゃんたろう 拝!
2006年 3月16日 (木) 23:12:32 JST 作成


前へ|次へ|戻る

Copyright © 2004.-2007. nyantarou All Rights Reserved.