Hi Norm,<br><br>Now I have run the correct self-installer create command: (I have excluded &#39;base&#39; in the given module names, correct action?)<br><br>fgsdev build_si mapserver_basic_5.2.1 1.0.1 agg-lib apache-base apache_mod_ssl-module curl-lib expat-base freetds-lib freetype-lib gdal-base gdal_python-module gd-lib geos-lib gettext-base jpeg-lib libgcc-lib libgeotiff-lib libiconv-base libpng-lib libstdc++-lib libungif-base libxml2-base libxslt-lib mapserver-base mapserver-php ming-lib openssl-lib php-base php_curl-module php_ftp-module php_gettext-module php_mssql-module php_odbc-module php_ogr-module php_pgsql-module php_wddx-module php_xmlrpc-module php_xsl-module postgis-lib postgresql-lib postgresql-server proj4_epsg42xxx-support proj-lib python-base python_mapscript-module sablotron-base tiff-lib unixODBC-base xerces_c-base zlib-lib<br>
<br>Outcome:<br><br>* Creating archive file containing all required FGS modules...<br>+ Including base module... ok<br>! Conflicting version for &#39;curl-lib&#39;: Another(s) package(s) request(s) &#39;7.19.4<br>7.19.4&#39;<br>
! and &#39;gdal-base&#39; requests &#39;7.19.4&#39;, aborting.<br>! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...<br>* Creating self-extracting archive script<br>* Self installer image created with success in &#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&#39;.<br>
* Versions info file is &#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions&#39;.<br><br>But the built curl-lib version is 7.19.4 (fgs-curl-lib-7.19.4-linux-sparc64.tar.gz), why will it still complain?<br>
<br>Regards,<br>Hao<br><br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 11:52 AM, Hao Zhang <span dir="ltr">&lt;<a href="mailto:hao@zhang.nu">hao@zhang.nu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Norm,<br><br>Sorry, I think I find the reason which is that I provide wrong module names to command &#39;fgsdev build_si&#39;. I thought the module name shoud be the *.tar.gz file name which was wrong. It could be better to give some example of how to use those fgsdev commands in the right way on the official webpage as well as fgsdev help output text.<br>

<br>Regards,<br><font color="#888888">Hao</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 11:34 AM, Hao Zhang <span dir="ltr">&lt;<a href="mailto:hao@zhang.nu" target="_blank">hao@zhang.nu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Norm,<br><br>You are right. I investigated the error myself before receiving your answer yesterday and found the same clue as you gave which is to compile php in debug mode. What I did is to simply edit fgs-dev/pkg_def/php/fgs_build file to enable the flag &quot;--enable-debug&quot;. Then it will go through that install-pear-installer Segmentation fault error. I did try PHP 5.3.0 but it will encounter the same issue if not compiling in debug mode. The version of php I built is 5.2.11.<br>




<br>Then I started building mapserver 5.4.2, but when it came to compile in the directory mapscript/php3, it encountered a lot of &quot;undefined reference to&quot; errors and aborted. Then I tried to build mapserver 5.2.1 instead and luckily it did not encounter any error and well built.<br>


<br>After mapserver 5.2.1 was built, I continued building python_mapscript module. But it encountered compile error such as:<br>[... ...]<br>+ Creating new package in /home/FGS/fgs-dev/modules/python_mapscript-module.<br>


+ Copying skeleton from /home/FGS/fgs-dev/pkg_def/python_mapscript/module.skeleton to /home/FGS/fgs-dev/modules/python_mapscript-module<br>cp: cannot stat `build/lib.linux-i686-2.5/_mapscript.so&#39;: No such file or directory<div>

<br>
! ./fgs_install: Fatal error returned, exiting...<br>! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...<br>! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...<br><br></div>I found the cause of this error is that in fgs-dev/pkg_def/python_mapscript/fgs_build file, &quot;lib.linux-i686&quot; is indicated. So command &#39;cp build/lib.linux-i686-2.5/_mapscript.so&#39; will fail because the correct directory should be &#39;build/lib.linux-sparc64-2.5&#39; which depends on my target sparc64 system. Thus, I modified this fgs_build file and python_mapscript module is well built.<br>


<br>After all these neccessary modules finally get built successfully, I start to run command &quot;fgsdev build_si mapserver_basic_5.2.1 1.0.1 fgs-agg-lib-2.4-linux-sparc64.tar.gz _module_name_N_ ...&quot; to build self installer containing all the modules needed. But at this time, I encounter the final error:<br>


<br>* Creating archive file containing all required FGS modules...<br>+ Including base module... ok<br>! Module &#39;fgs-agg-lib-2.4-linux-sparc64.tar.gz&#39; doesn&#39;t have VERSION file &#39;/home/FGS/fgs-dev/modules/fgs-agg-lib-2.4-linux-sparc64.tar.gz/etc/fgs/pkgs/fgs-agg-lib-2.4-linux-sparc64.tar.gz/VERSION&#39; or maybe this is because the<br>


name of the module is wrong (verify in &#39;/home/FGS/fgs-dev/modules&#39;)<br>! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...<br>* Creating self-extracting archive script<br><br>* Self installer image created with success in &#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&#39;.<br>


* Versions info file is &#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions&#39;.<br><br>Could you help me to point out what could be the root cause of this error?<br><br>Regards,<br><font color="#888888">Hao</font><div>

<div></div><div><br>
<br><br><div class="gmail_quote">On Tue, Nov 3, 2009 at 4:12 PM, Normand Savard <span dir="ltr">&lt;<a href="mailto:nsavard@mapgears.com" target="_blank">nsavard@mapgears.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hao Zhang wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Installing PEAR environment:      /home/FGS/fgs-dev/built/php/lib/php/<br>
make[1]: *** [install-pear-installer] Segmentation fault<br>
make: *** [install-pear] Error 2<br>
! ./fgs_install: Fatal error returned, exiting...<br>
! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...<br>
! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...<br>
<br>
</blockquote></div>
Hao,<br>
<br>
I have never met such problem before but I found on google that it may depend on the compiler or the php version.  To have a clue of what is happening you could compile php in debug mode:<br>
<br>
in fgs-dev/src/php_version/<br>
./fgs_build --debug<br>
./fgs_install<br>
<br>
or you could try to use PHP 5.3.0 to see if you meet the same issue.<br>
<br>
<br>
<a href="http://www.mail-archive.com/php-bugs@lists.php.net/msg102985.html" target="_blank">http://www.mail-archive.com/php-bugs@lists.php.net/msg102985.html</a><br>
<br>
<br>
Norm<br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>