cvs: php-gtk-doc /ja/userguide/chapters install.xml
| From: | Rui Hirokawa | Date: | Wed, 25 Dec 2002 14:42:12 +0000 |
| Subject: | cvs: php-gtk-doc /ja/userguide/chapters install.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-576@lists.php.net to get a copy of this message | ||
hirokawa Wed Dec 25 09:42:12 2002 EDT
Modified files:
/php-gtk-doc/ja/userguide/chapters install.xml
Log:
translation updated.
Index: php-gtk-doc/ja/userguide/chapters/install.xml diff -u php-gtk-doc/ja/userguide/chapters/install.xml:1.2 php-gtk-doc/ja/userguide/chapters/install.xml:1.3 --- php-gtk-doc/ja/userguide/chapters/install.xml:1.2 Mon Feb 25 09:02:08 2002 +++ php-gtk-doc/ja/userguide/chapters/install.xml Wed Dec 25 09:42:12 2002 @@ -3,13 +3,13 @@ <title>ã¤ã³ã¹ãã¼ã«</title> <sect1 id="install.get"> <title>ææ°çã®å ¥æ</title> - <simpara> - ã½ã¼ã¹ã¨ããã¤ãã®ãã©ãããã©ã¼ã ç¨ã®ãã¤ããªã + <para> + Windowsç¨ã®PHP-GTK &version.phpgtk;ã½ã¼ã¹ããã³ãã¤ããªã¯ã <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>ããå ¥æå¯è½ã§ãã ã½ã¼ã¹ã使ç¨ãã人ã¯ãPHPã®ææ°çãCVS <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ããã¤ã³ã¹ ãã¼ã«ããå¿ è¦ãããã¾ãã - </simpara> + </para> </sect1> <sect1 id="install.win32"> @@ -17,43 +17,46 @@ <sect2 id="install.win32.binaries"> <title>PHP-GTKããã¦ã³ãã¼ããã</title> - <simpara> - Download the latest Win32 Binaries from - <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>. - You may also want to check out the latest sources - from php.net's CVS server. - See <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink> - for more information. - </simpara> + <para> + PHP-GTK &version.phpgtk; win32ãã¤ããªã + <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>ãããã¦ã³ãã¼ãã㦠+ ä¸ãããphp.netã®CVSãµã¼ãããææ°ã®ã½ã¼ã¹ã確èªãã¦ããããããã + ã¾ããã詳細ã¯ã + <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ãåç §ã㦠+ ä¸ããã + </para> </sect2> <sect2 id="install.win32.binary.package-layout"> <title>ãã¤ããªé å¸ãã¡ã¤ã«ã®é ç½®</title> <para> - The binary distribution for php-gtk contains this structure: + PHP-GTKã®ãã¤ããªé å¸çã«ã¯ã以ä¸ã®æ§é ãå«ã¾ãã¦ãã¾ãã <itemizedlist> <listitem> <simpara> - \php4 -> php and php-gtk binary files + <filename>\php4</filename> -> PHP devããã³PHP-GTK + &version.phpgtk;ãã¤ããªãã¡ã¤ã« </simpara> </listitem> <listitem> <simpara> - \winnt -> the default php.ini file + <filename>\winnt</filename> -> ããã©ã«ãphp.iniãã¡ã¤ã« </simpara> </listitem> <listitem> <simpara> - \winnt\system32 -> gtk binaries used by the extension + <filename>\winnt\system32</filename> -> æ¡å¼µã¢ã¸ã¥ã¼ã«ã«ãã + 使ç¨ãããGTK+ãã¤ã㪠</simpara> </listitem> <listitem> <simpara> - \samples -> a few samples to demonstrate the usage + <filename>\test</filename> -> PHP-GTKã®ä½¿ç¨æ¹æ³ããã¢ããã + ãã®å°æ°ã®ãµã³ãã«é </simpara> </listitem> <listitem> <simpara> - README.TXT + <filename>README.TXT</filename> </simpara> </listitem> </itemizedlist> @@ -64,75 +67,191 @@ <orderedlist> <listitem> <simpara> - Copy \php4 to your existing php directory. If this is a new - installation you should create c:\php4 and copy the files to - this directory. + æ°è¦ã«ã¤ã³ã¹ãã¼ã«ããéã«ã¯ã<filename>C:\php4</filename>ãä½ + æãããã®ãã£ã¬ã¯ããªã¸<filename>\php4</filename>ã®ä¸ã®ãã¡ã¤ + ã«ãã³ãã¼ãã¾ãã + æ¢åã®PHPã¤ã³ã¹ãã¼ã«(ä¾ãã°ãApacheç¨ã®)ã¾ãã¯ä»ã«ã¤ã³ã¹ãã¼ã« + ãããå ´åã<filename>php.ini</filename>ãã¡ã¤ã«ãããã«ç½®ãå¿ + è¦ãããã¾ããããã©ã«ãã§ãã®ãã©ã«ãã®ä¸ã«ãããã¡ã¤ã«ã¯ãPHP + ã¾ãã¯PHP-GTKã«é¢é£ãããã®ã§ãå¸¸ã«æ´æ°ããå¿ è¦ããããã®ã¯ãã + ã ãã§ãã<filename>C:\php4</filename>ã¯ããã©ã«ãã®ãã£ã¬ã¯ã + ãªã§ãPHP-GTKãä»ã®å ´æã«ã¤ã³ã¹ãã¼ã«ããå ´åãPHPã«ãã使ç¨ã + ãã<filename>php.ini</filename>ã®ã³ãã¼ã®extension_dirã« + ãã®ãã«ãã¹ãæå®ããå¿ è¦ãããã¾ãã </simpara> </listitem> <listitem> <simpara> - Copy \winnt to your winnt directory. On Windows NT and - Windows 2000 that is c:\winnt. On Windows 95/98 that - is c:\windows. If you have an existing php.ini you dont - need to copy this file. + system32ãã£ã¬ã¯ããªã«<filename>\winnt\system32</filename>ã®å + 容ãã³ãã¼ããå¿ è¦ãããã¾ããWindows NTããã³Windows 2000ã®å ´ + åãããã¯<filename>C:\winnt\system32</filename>ã¨ãªãã¾ãã + Windows 95/98ã®å ´åã¯ã<filename>C:\Windows\system</filename>ã¾ + ãã¯<filename>C:\Windows\system32</filename>ã¨ãªãã¾ãã + ãã®ãã¡ã¤ã«ã®ã°ã«ã¼ãã¯GTKã«é¢é£ããPHP-GTK2ããªãªã¼ã¹ãããã¾ + ã§æ´æ°ããå¿ è¦ã¯ããã¾ããã </simpara> </listitem> <listitem> <simpara> - Copy \winnt\system32 to your winnt\system32 directory. - On Windows NT and Windows 2000 that is c:\winnt\system32. - On Windows 95/98 that is c:\windows\system32. - </simpara> - </listitem> - <listitem> - <simpara> - Copy \samples to the location where you want to run your - scripts. (eg c:\php4\samples) + <filename>\test</filename>ã®ä¸èº«ãã¹ã¯ãªãããå®è¡ãããå ´æ(ä¾ + ãã°ã<filename>C:\php4\test</filename>).ã«ã³ãã¼ãã¦ä¸ããã </simpara> </listitem> </orderedlist> </sect2> + <sect2 id="install.win32.usage"> <title>PHP-GTKã®ä½¿ç¨æ³</title> <simpara> - PHP-GTK applications can be started from the command line - (or a shortcut) with this syntax: - <command>c:\php4\php -q c:\path\to\php-gtk\script.php</command> + PHP-GTKã¯ã³ãã³ãã©ã¤ã³ãã(ã¾ãã¯ããããã¡ã¤ã«ãã)以ä¸ã®æ§æã« + ããéå§ãããã¨ãã§ãã¾ãã + <command>C:\php4\php -q C:\path\to\php-gtk\script.php</command> </simpara> </sect2> </sect1> <sect1 id="install.unix"> - <title>Unixç°å¢ã«ãããPHP-GTKã®ã¤ã³ã¹ãã¼ã«</title> + <title>UNIXç°å¢ã§PHP-GTKãã¤ã³ã¹ãã¼ã«ãã</title> <para> - <ulink url="&url.phpgtk;">&url.phpgtk;</ulink> ã¾ã㯠anonymous cvs - <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ããææ°ã® - ã½ã¼ã¹ãå ¥æãããã¨ãæ¨å¥¨ãã¾ããphp-gtkã¢ã¸ã¥ã¼ã«ã¨å¯æã¨ã®CVSãã¼ - ã¸ã§ã³ã®PHPãå¿ è¦ã§ããPHPãã¾ãã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãã + Debianã¦ã¼ã¶ã¯ãPHP-GTKãã¤ããªã + <ulink url="&url.debian;">&url.debian;</ulink>ãããã¦ã³ãã¼ãã§ã + ã¾ãã </para> <para> - Run the <command>phpize</command> script that is installed with PHP. - This will set up the necessary files and create the 'configure' script. - Next, run <command>./configure</command>. This will check that you - have a correct version of GTK+ 1.2.x (1.2.6 or above, available from - <ulink url="&url.gtk;">&url.gtk;</ulink>) and other files required for - compilation, and create the needed Makefiles. + PHP GTKã¯å¤ãã®ããã±ã¼ã¸ã«ä¾åãã¦ãã¾ãããããã¯ãPHP-GTKãã¤ã³ + ã¹ãã¼ã«ããåã«ã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãã + <itemizedlist> + <listitem> + <para> + PHPãã¼ã¸ã§ã³&version.php;以é + </para> + </listitem> + <listitem> + <para> + GTK+ã©ã¤ãã©ãªãããã¯ã + <ulink url="&url.gtk.download;">&url.gtk.download;</ulink>ã§å ¥ + æå¯è½ã§ããã¾ãã¯ã使ç¨ããã·ã¹ãã ç¨ã®ããã±ã¼ã¸ããããã¼ã¸ã§ + ã³ãä¾ãã°ã<literal>gtk</literal>ããã³<literal>gtk-devel</literal> + ã使ç¨ãããã¨ãã§ãã¾ãã + </para> + </listitem> + <listitem> + <simpara> + libtool, automakeã¨autoconfã libtool 1.4.2, automake 1.4㨠+ autoconf 2.13ã®çµã¿åããã¯åä½ãããã¨ãç¥ããã¦ãã¾ãã + ä»ã®ãã¼ã¸ã§ã³ã®çµã¿åããã«ã¤ãã¦ã¯ç¶æ³ãç°ãªãå¯è½æ§ãããã¾ + ãã + </simpara> + </listitem> + <listitem> + <para> + ãªãã·ã§ã³ã®ãã®ä»ã®è¦ç´ ã«ã¤ãã¦ã¯ã + <ulink url="&url.gtkhtml;">GtkHTMLã©ã¤ãã©ãª</ulink>, + <ulink url="&url.scintilla;">GtkScintillaã©ã¤ãã©ãª</ulink>, + <ulink url="&url.pixbuf;">Gdk-Pixbufã©ã¤ãã©ãª</ulink>ããã¦ã³ + ãã¼ããã¦ä¸ãããåã¨åæ§ã«ããããã¯ä½¿ç¨ããã·ã¹ãã ç¨ã«ãã + ã±ã¼ã¸ããã¦ããå¯è½æ§ãããã¾ãã®ã§ãéçºçãã¤sãã¨ã¼ãããå + ã«ç¢ºèªãã¦ä¸ãããGtkHTMLã¯ãæ´ã«<literal>GAL</literal>ã®ãã㪠+ ãã®ã«ä¾åãã¦ãããããã¯ã + <ulink url="&url.gnome.ftp;">Gnome ftpãµã¤ã</ulink>ãããã¦ã³ + ãã¼ãã§ãã¾ãã + </para> + </listitem> + </itemizedlist> + </para> + <para> + ææ°ã®ã½ã¼ã¹ã + <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>ã¾ã㯠+ anonymous CVS + <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ããå ¥æã + ããã¨ããè¦ããã¾ãã + </para> + <para> + Run the <command>./buildconf</command> script that is inside the + distribution. This will set up the necessary files and create the + <literal>configure</literal> script. Next, run + <command>./configure</command>. This will check that you have a correct + version of GTK+ 1.2.x (1.2.6 or above, available from + <ulink url="&url.gtk.download;">&url.gtk.download;</ulink>) and other files + required for compilation, and will then create the needed Makefiles. </para> <simpara> - Finally, run <command>make</command> to compile the - extension. Some source files are generated from .defs files by the - code generator. If you see messages like "Could - not write...", it means that the listed GTK+ objects or - features are not yet supported. If the compilation is successful, - run <command>make install</command> to install - the extension into your default PHP extension directory (usually + <command>./configure</command> can also be used to build the extra + widgets, e.g. + <command>./configure --enable-scintilla --enable-gtkhtml</command>. To + list all the available options use <command>./configure --help</command>. + Remember that each extra widget may have a number of dependencies + that need to be available for the build to be successful. + </simpara> + <simpara> + Finally, run <command>make</command> to compile the extension. Some + source files are generated from .defs files by the code generator. If + you see messages like <literal>"Could not write..."</literal>, + it means that the listed GTK+ objects or features are not yet supported. + If the compilation is successful, run <command>make install</command> to + install the extension into your default PHP extension directory (usually <filename>/usr/local/lib/php/extensions</filename>). </simpara> + <para> + Troubleshooting: common problems from <command>./configure</command> or + <command>make</command> + <itemizedlist> + <listitem> + <simpara> + <literal>./ltconfig: ltconfig : No such file or directory, configure: + error: libtool configure failed</literal> is caused by not having + one of libtool, automake or autoconf installed. + </simpara> + </listitem> + <listitem> + <simpara> + <literal>./aclocal.m4:813: error: m4_defn: undefined: + _m4_divert_diversion</literal> is caused by an incompatible version + of autoconf, see the recommended versions above. + </simpara> + </listitem> + <listitem> + <para> + <literal>php_gtk+.c:33: parse error before `TSRMLS_DC'</literal> is + caused by either an old version of php being found by the build system + or trying to build php-gtk with an old version of PHP - please upgrade + to PHP version &version.php; to fix this. + </para> + </listitem> + <listitem> + <simpara> + <literal>gen_gtk.c:1: parse error before '<'</literal> is caused by + an error occurring in the generator. Usually this error is resolved by + adding the line + <literal>ini_set("memory_limit", "32M");</literal> + to the first line of <filename>generator/generator.php</filename>. You + will need to remove all the <filename>gen_*</filename> files from all + directories after changing this. + </simpara> + </listitem> + <listitem> + <simpara> + <literal>checking for gnome-config... Unknown library `gtkhtml'</literal> + (from <command>./configure</command>) is due to an old or unavailable + development header file - if you installed by rpm or a similar package + system you will need the <literal>-devel</literal> packages + </simpara> + </listitem> + <listitem> + <simpara> + <literal>Unable to find -lgal</literal> or similar message is caused + by a missing <literal>gal-devel</literal> or similar library. Usually + this will be a sub dependancy of some of the more complex widgets, like + gtkhtml. + </simpara> + </listitem> + </itemizedlist> + </para> <simpara> - To test the extension, try running the example scripts in the - test/ directory. These also provide demonstrations of some of the - ways in which the extension can be used. - </simpara> + To test the extension, try running the example scripts in the + <filename>test/</filename> directory. These also provide demonstrations + of some of the ways in which PHP-GTK and its extensions can be used. + </simpara> </sect1> </chapter>
Index: php-gtk-doc/ja/userguide/chapters/install.xml diff -u php-gtk-doc/ja/userguide/chapters/install.xml:1.2 php-gtk-doc/ja/userguide/chapters/install.xml:1.3 --- php-gtk-doc/ja/userguide/chapters/install.xml:1.2 Mon Feb 25 09:02:08 2002 +++ php-gtk-doc/ja/userguide/chapters/install.xml Wed Dec 25 09:42:12 2002 @@ -3,13 +3,13 @@ <title>ã¤ã³ã¹ãã¼ã«</title> <sect1 id="install.get"> <title>ææ°çã®å ¥æ</title> - <simpara> - ã½ã¼ã¹ã¨ããã¤ãã®ãã©ãããã©ã¼ã ç¨ã®ãã¤ããªã + <para> + Windowsç¨ã®PHP-GTK &version.phpgtk;ã½ã¼ã¹ããã³ãã¤ããªã¯ã <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>ããå ¥æå¯è½ã§ãã ã½ã¼ã¹ã使ç¨ãã人ã¯ãPHPã®ææ°çãCVS <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ããã¤ã³ã¹ ãã¼ã«ããå¿ è¦ãããã¾ãã - </simpara> + </para> </sect1> <sect1 id="install.win32"> @@ -17,43 +17,46 @@ <sect2 id="install.win32.binaries"> <title>PHP-GTKããã¦ã³ãã¼ããã</title> - <simpara> - Download the latest Win32 Binaries from - <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>. - You may also want to check out the latest sources - from php.net's CVS server. - See <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink> - for more information. - </simpara> + <para> + PHP-GTK &version.phpgtk; win32ãã¤ããªã + <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>ãããã¦ã³ãã¼ãã㦠+ ä¸ãããphp.netã®CVSãµã¼ãããææ°ã®ã½ã¼ã¹ã確èªãã¦ããããããã + ã¾ããã詳細ã¯ã + <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ãåç §ã㦠+ ä¸ããã + </para> </sect2> <sect2 id="install.win32.binary.package-layout"> <title>ãã¤ããªé å¸ãã¡ã¤ã«ã®é ç½®</title> <para> - The binary distribution for php-gtk contains this structure: + PHP-GTKã®ãã¤ããªé å¸çã«ã¯ã以ä¸ã®æ§é ãå«ã¾ãã¦ãã¾ãã <itemizedlist> <listitem> <simpara> - \php4 -> php and php-gtk binary files + <filename>\php4</filename> -> PHP devããã³PHP-GTK + &version.phpgtk;ãã¤ããªãã¡ã¤ã« </simpara> </listitem> <listitem> <simpara> - \winnt -> the default php.ini file + <filename>\winnt</filename> -> ããã©ã«ãphp.iniãã¡ã¤ã« </simpara> </listitem> <listitem> <simpara> - \winnt\system32 -> gtk binaries used by the extension + <filename>\winnt\system32</filename> -> æ¡å¼µã¢ã¸ã¥ã¼ã«ã«ãã + 使ç¨ãããGTK+ãã¤ã㪠</simpara> </listitem> <listitem> <simpara> - \samples -> a few samples to demonstrate the usage + <filename>\test</filename> -> PHP-GTKã®ä½¿ç¨æ¹æ³ããã¢ããã + ãã®å°æ°ã®ãµã³ãã«é </simpara> </listitem> <listitem> <simpara> - README.TXT + <filename>README.TXT</filename> </simpara> </listitem> </itemizedlist> @@ -64,75 +67,191 @@ <orderedlist> <listitem> <simpara> - Copy \php4 to your existing php directory. If this is a new - installation you should create c:\php4 and copy the files to - this directory. + æ°è¦ã«ã¤ã³ã¹ãã¼ã«ããéã«ã¯ã<filename>C:\php4</filename>ãä½ + æãããã®ãã£ã¬ã¯ããªã¸<filename>\php4</filename>ã®ä¸ã®ãã¡ã¤ + ã«ãã³ãã¼ãã¾ãã + æ¢åã®PHPã¤ã³ã¹ãã¼ã«(ä¾ãã°ãApacheç¨ã®)ã¾ãã¯ä»ã«ã¤ã³ã¹ãã¼ã« + ãããå ´åã<filename>php.ini</filename>ãã¡ã¤ã«ãããã«ç½®ãå¿ + è¦ãããã¾ããããã©ã«ãã§ãã®ãã©ã«ãã®ä¸ã«ãããã¡ã¤ã«ã¯ãPHP + ã¾ãã¯PHP-GTKã«é¢é£ãããã®ã§ãå¸¸ã«æ´æ°ããå¿ è¦ããããã®ã¯ãã + ã ãã§ãã<filename>C:\php4</filename>ã¯ããã©ã«ãã®ãã£ã¬ã¯ã + ãªã§ãPHP-GTKãä»ã®å ´æã«ã¤ã³ã¹ãã¼ã«ããå ´åãPHPã«ãã使ç¨ã + ãã<filename>php.ini</filename>ã®ã³ãã¼ã®extension_dirã« + ãã®ãã«ãã¹ãæå®ããå¿ è¦ãããã¾ãã </simpara> </listitem> <listitem> <simpara> - Copy \winnt to your winnt directory. On Windows NT and - Windows 2000 that is c:\winnt. On Windows 95/98 that - is c:\windows. If you have an existing php.ini you dont - need to copy this file. + system32ãã£ã¬ã¯ããªã«<filename>\winnt\system32</filename>ã®å + 容ãã³ãã¼ããå¿ è¦ãããã¾ããWindows NTããã³Windows 2000ã®å ´ + åãããã¯<filename>C:\winnt\system32</filename>ã¨ãªãã¾ãã + Windows 95/98ã®å ´åã¯ã<filename>C:\Windows\system</filename>ã¾ + ãã¯<filename>C:\Windows\system32</filename>ã¨ãªãã¾ãã + ãã®ãã¡ã¤ã«ã®ã°ã«ã¼ãã¯GTKã«é¢é£ããPHP-GTK2ããªãªã¼ã¹ãããã¾ + ã§æ´æ°ããå¿ è¦ã¯ããã¾ããã </simpara> </listitem> <listitem> <simpara> - Copy \winnt\system32 to your winnt\system32 directory. - On Windows NT and Windows 2000 that is c:\winnt\system32. - On Windows 95/98 that is c:\windows\system32. - </simpara> - </listitem> - <listitem> - <simpara> - Copy \samples to the location where you want to run your - scripts. (eg c:\php4\samples) + <filename>\test</filename>ã®ä¸èº«ãã¹ã¯ãªãããå®è¡ãããå ´æ(ä¾ + ãã°ã<filename>C:\php4\test</filename>).ã«ã³ãã¼ãã¦ä¸ããã </simpara> </listitem> </orderedlist> </sect2> + <sect2 id="install.win32.usage"> <title>PHP-GTKã®ä½¿ç¨æ³</title> <simpara> - PHP-GTK applications can be started from the command line - (or a shortcut) with this syntax: - <command>c:\php4\php -q c:\path\to\php-gtk\script.php</command> + PHP-GTKã¯ã³ãã³ãã©ã¤ã³ãã(ã¾ãã¯ããããã¡ã¤ã«ãã)以ä¸ã®æ§æã« + ããéå§ãããã¨ãã§ãã¾ãã + <command>C:\php4\php -q C:\path\to\php-gtk\script.php</command> </simpara> </sect2> </sect1> <sect1 id="install.unix"> - <title>Unixç°å¢ã«ãããPHP-GTKã®ã¤ã³ã¹ãã¼ã«</title> + <title>UNIXç°å¢ã§PHP-GTKãã¤ã³ã¹ãã¼ã«ãã</title> <para> - <ulink url="&url.phpgtk;">&url.phpgtk;</ulink> ã¾ã㯠anonymous cvs - <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ããææ°ã® - ã½ã¼ã¹ãå ¥æãããã¨ãæ¨å¥¨ãã¾ããphp-gtkã¢ã¸ã¥ã¼ã«ã¨å¯æã¨ã®CVSãã¼ - ã¸ã§ã³ã®PHPãå¿ è¦ã§ããPHPãã¾ãã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãã + Debianã¦ã¼ã¶ã¯ãPHP-GTKãã¤ããªã + <ulink url="&url.debian;">&url.debian;</ulink>ãããã¦ã³ãã¼ãã§ã + ã¾ãã </para> <para> - Run the <command>phpize</command> script that is installed with PHP. - This will set up the necessary files and create the 'configure' script. - Next, run <command>./configure</command>. This will check that you - have a correct version of GTK+ 1.2.x (1.2.6 or above, available from - <ulink url="&url.gtk;">&url.gtk;</ulink>) and other files required for - compilation, and create the needed Makefiles. + PHP GTKã¯å¤ãã®ããã±ã¼ã¸ã«ä¾åãã¦ãã¾ãããããã¯ãPHP-GTKãã¤ã³ + ã¹ãã¼ã«ããåã«ã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãã + <itemizedlist> + <listitem> + <para> + PHPãã¼ã¸ã§ã³&version.php;以é + </para> + </listitem> + <listitem> + <para> + GTK+ã©ã¤ãã©ãªãããã¯ã + <ulink url="&url.gtk.download;">&url.gtk.download;</ulink>ã§å ¥ + æå¯è½ã§ããã¾ãã¯ã使ç¨ããã·ã¹ãã ç¨ã®ããã±ã¼ã¸ããããã¼ã¸ã§ + ã³ãä¾ãã°ã<literal>gtk</literal>ããã³<literal>gtk-devel</literal> + ã使ç¨ãããã¨ãã§ãã¾ãã + </para> + </listitem> + <listitem> + <simpara> + libtool, automakeã¨autoconfã libtool 1.4.2, automake 1.4㨠+ autoconf 2.13ã®çµã¿åããã¯åä½ãããã¨ãç¥ããã¦ãã¾ãã + ä»ã®ãã¼ã¸ã§ã³ã®çµã¿åããã«ã¤ãã¦ã¯ç¶æ³ãç°ãªãå¯è½æ§ãããã¾ + ãã + </simpara> + </listitem> + <listitem> + <para> + ãªãã·ã§ã³ã®ãã®ä»ã®è¦ç´ ã«ã¤ãã¦ã¯ã + <ulink url="&url.gtkhtml;">GtkHTMLã©ã¤ãã©ãª</ulink>, + <ulink url="&url.scintilla;">GtkScintillaã©ã¤ãã©ãª</ulink>, + <ulink url="&url.pixbuf;">Gdk-Pixbufã©ã¤ãã©ãª</ulink>ããã¦ã³ + ãã¼ããã¦ä¸ãããåã¨åæ§ã«ããããã¯ä½¿ç¨ããã·ã¹ãã ç¨ã«ãã + ã±ã¼ã¸ããã¦ããå¯è½æ§ãããã¾ãã®ã§ãéçºçãã¤sãã¨ã¼ãããå + ã«ç¢ºèªãã¦ä¸ãããGtkHTMLã¯ãæ´ã«<literal>GAL</literal>ã®ãã㪠+ ãã®ã«ä¾åãã¦ãããããã¯ã + <ulink url="&url.gnome.ftp;">Gnome ftpãµã¤ã</ulink>ãããã¦ã³ + ãã¼ãã§ãã¾ãã + </para> + </listitem> + </itemizedlist> + </para> + <para> + ææ°ã®ã½ã¼ã¹ã + <ulink url="&url.phpgtk;">&url.phpgtk;</ulink>ã¾ã㯠+ anonymous CVS + <ulink url="&url.php.anoncvs;">&url.php.anoncvs;</ulink>ããå ¥æã + ããã¨ããè¦ããã¾ãã + </para> + <para> + Run the <command>./buildconf</command> script that is inside the + distribution. This will set up the necessary files and create the + <literal>configure</literal> script. Next, run + <command>./configure</command>. This will check that you have a correct + version of GTK+ 1.2.x (1.2.6 or above, available from + <ulink url="&url.gtk.download;">&url.gtk.download;</ulink>) and other files + required for compilation, and will then create the needed Makefiles. </para> <simpara> - Finally, run <command>make</command> to compile the - extension. Some source files are generated from .defs files by the - code generator. If you see messages like "Could - not write...", it means that the listed GTK+ objects or - features are not yet supported. If the compilation is successful, - run <command>make install</command> to install - the extension into your default PHP extension directory (usually + <command>./configure</command> can also be used to build the extra + widgets, e.g. + <command>./configure --enable-scintilla --enable-gtkhtml</command>. To + list all the available options use <command>./configure --help</command>. + Remember that each extra widget may have a number of dependencies + that need to be available for the build to be successful. + </simpara> + <simpara> + Finally, run <command>make</command> to compile the extension. Some + source files are generated from .defs files by the code generator. If + you see messages like <literal>"Could not write..."</literal>, + it means that the listed GTK+ objects or features are not yet supported. + If the compilation is successful, run <command>make install</command> to + install the extension into your default PHP extension directory (usually <filename>/usr/local/lib/php/extensions</filename>). </simpara> + <para> + Troubleshooting: common problems from <command>./configure</command> or + <command>make</command> + <itemizedlist> + <listitem> + <simpara> + <literal>./ltconfig: ltconfig : No such file or directory, configure: + error: libtool configure failed</literal> is caused by not having + one of libtool, automake or autoconf installed. + </simpara> + </listitem> + <listitem> + <simpara> + <literal>./aclocal.m4:813: error: m4_defn: undefined: + _m4_divert_diversion</literal> is caused by an incompatible version + of autoconf, see the recommended versions above. + </simpara> + </listitem> + <listitem> + <para> + <literal>php_gtk+.c:33: parse error before `TSRMLS_DC'</literal> is + caused by either an old version of php being found by the build system + or trying to build php-gtk with an old version of PHP - please upgrade + to PHP version &version.php; to fix this. + </para> + </listitem> + <listitem> + <simpara> + <literal>gen_gtk.c:1: parse error before '<'</literal> is caused by + an error occurring in the generator. Usually this error is resolved by + adding the line + <literal>ini_set("memory_limit", "32M");</literal> + to the first line of <filename>generator/generator.php</filename>. You + will need to remove all the <filename>gen_*</filename> files from all + directories after changing this. + </simpara> + </listitem> + <listitem> + <simpara> + <literal>checking for gnome-config... Unknown library `gtkhtml'</literal> + (from <command>./configure</command>) is due to an old or unavailable + development header file - if you installed by rpm or a similar package + system you will need the <literal>-devel</literal> packages + </simpara> + </listitem> + <listitem> + <simpara> + <literal>Unable to find -lgal</literal> or similar message is caused + by a missing <literal>gal-devel</literal> or similar library. Usually + this will be a sub dependancy of some of the more complex widgets, like + gtkhtml. + </simpara> + </listitem> + </itemizedlist> + </para> <simpara> - To test the extension, try running the example scripts in the - test/ directory. These also provide demonstrations of some of the - ways in which the extension can be used. - </simpara> + To test the extension, try running the example scripts in the + <filename>test/</filename> directory. These also provide demonstrations + of some of the ways in which PHP-GTK and its extensions can be used. + </simpara> </sect1> </chapter>