[PHP-users 32001] Re: php で imagemagick

Masaaki Suga suga @ tenrikyo.or.jp
2007年 4月 20日 (金) 12:27:38 JST


須賀です

Masaaki Suga <suga @ tenrikyo.or.jp> wrote:

> 
> 結局,phpでimagemagickを使うには
> 
> 静的に組み込む方法:
>    phpのソースDirectory/ext/imagick 以下に解凍
>    phpのソースDirectory/ext/imagickで 
>         phpize
>    phpのソースDirectoryで
>         rm ./configure
>         ./buildconf --force
>         ./configure --with-magick=・・・   
>                ※ ・・・はimagemagickのインストール先Directory
>         gmake
>         gmake install
> 
> 動的なインストール
> 
>    phpのソースDirectory/ext/imagick 以下に解凍 (この場合は場所はどこでもいい?)
>    phpのソースDirectory/ext/imagickで
>        ./configure --with-magick=・・・
>                ※ ・・・はimagemagickのインストール先Directory
>        gmake
>        gmakeでできた imagick.soをphpのエクステンションDirectoryにおいて
>        php.iniファイルのextension=imagick.so と指定する
> 


結局,

> 動的なインストール

をしてみました

以下のようなphpを実行すると,apacheのログに

[notice] child pid 25780 exit signal Segmentation Fault (11)

がでて動きません

<?php
        $handle = imagick_readimage( "./image.jpg" ) ;
        if ( imagick_iserror( $handle ) )
        {
                $reason      = imagick_failedreason( $handle ) ;
                $description = imagick_faileddescription( $handle ) ;
                print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<
BR>\n" ;
        exit ;
        }
        print "Image height is " . imagick_getheight( $handle ) .
          " pixels<BR>\n" ;
?>

imagick.so自体がうまくできていないようですが,
>    phpのソースDirectory/ext/imagickで
>        ./configure --with-magick=・・・
>                ※ ・・・はimagemagickのインストール先Directory
>        gmake
で特にエラーは出ていません

どなたか,アドバイスお願いします
よろしくお願いします

 -------------------------------
 須賀正明:suga @ tenrikyo.or.jp
 -------------------------------



PHP-users メーリングリストの案内