以前にカカシのインストールに成功したことがある人がここで私を助けてくれることを願っています.
以下に示す「--prefix /home/mrhowtos/public_html」により、/home/mrhowtos/public_html にインストールできるようになるという印象を受けています。 .
>svn checkout http://svn.php.net/repository/pecl/kakasi/trunk kakasi
>cd kakasi
>phpize
>./configure --prefix /home/mrhowtos/public_html
>make
この構成は正常に機能しているように見えますが、make コマンドでエラーが発生する最初の行は次のとおりです。
/home5/mrhowtos/public_html/kakasi/kakasi.c:25:23: error: libkakasi.h: No such file or directory
以下は、重要な場合に備えて、makeコマンドの出力全体です
mrhowtos@mrhowtosay.com [~/public_html/kakasi-svn]# make
/bin/sh /home5/mrhowtos/public_html/kakasi-svn/libtool --mode=compile cc -I. -I/home5/mrhowtos/public_html/kakasi-svn -DPHP_ATOM_INC -I/home5/mrhowtos/public_html/kakasi-svn/include -I/home5/mrhowtos/public_html/kakasi-svn/main -I/home5/mrhowtos/public_html/kakasi-svn -I/usr/php/53/usr/include/php -I/usr/php/53/usr/include/php/main -I/usr/php/53/usr/include/php/TSRM -I/usr/php/53/usr/include/php/Zend -I/usr/php/53/usr/include/php/ext -I/usr/php/53/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home5/mrhowtos/public_html/kakasi-svn/kakasi.c -o kakasi.lo
libtool: compile: cc -I. -I/home5/mrhowtos/public_html/kakasi-svn -DPHP_ATOM_INC -I/home5/mrhowtos/public_html/kakasi-svn/include -I/home5/mrhowtos/public_html/kakasi-svn/main -I/home5/mrhowtos/public_html/kakasi-svn -I/usr/php/53/usr/include/php -I/usr/php/53/usr/include/php/main -I/usr/php/53/usr/include/php/TSRM -I/usr/php/53/usr/include/php/Zend -I/usr/php/53/usr/include/php/ext -I/usr/php/53/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home5/mrhowtos/public_html/kakasi-svn/kakasi.c -fPIC -DPIC -o .libs/kakasi.o
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:25:23: error: libkakasi.h: No such file or directory
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:55: error: 'first_arg_force_ref' undeclared here (not in a function)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:120: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:159: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'php_kakasi_array_compare':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:195: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:196: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_asort':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:231: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_arsort':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:266: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'php_kakasi_ignorecase_array_compare':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:327: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:328: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_asorti':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:430: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_arsorti':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:465: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_split':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:501: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:513: warning: assignment makes pointer from integer without a cast
make: *** [kakasi.lo] Error 1
重要な場合は、構成からの出力
mrhowtos@mrhowtosay.com [~/public_html/kakasi-svn]# ./configure --prefix /home/mrhowtos/public_html
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/php/53/usr/include/php -I/usr/php/53/usr/include/php/main -I/usr/php/53/usr/include/php/TSRM -I/usr/php/53/usr/include/php/Zend -I/usr/php/53/usr/include/php/ext -I/usr/php/53/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/php/53/usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/php/53/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for kakasi support... yes, shared
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
そしてphpizeの
mrhowtos@mrhowtosay.com [~/public_html/kakasi-svn]# phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626