<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-16512</id>
	<title>Nabble - Foss GIS Suite</title>
	<updated>2009-11-26T05:07:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Foss-GIS-Suite-f16512.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Foss-GIS-Suite-f16512.html" />
	<subtitle type="html">The &lt;a href=&quot;http://www.maptools.org/fgs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;FOSS GIS Suite&lt;/a&gt;&amp;nbsp;mailing list is the difinitive resource for users and developers to exchange ideas, report problems, ask configuration questions, discuss new features, make suggestions and post links to packages for FGS. 
&lt;br&gt;All new contributions and questions will be seen by all the list subscribers, including the owners and maintainers of FGS.
&lt;br&gt;&lt;br&gt;&lt;b&gt;Please Note: This list is for FGS config issues only.&lt;/b&gt;</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26529195</id>
	<title>Re: Cannot install FGS php_pgsql-module (both locally and from the internet)</title>
	<published>2009-11-26T05:07:03Z</published>
	<updated>2009-11-26T05:07:03Z</updated>
	<author>
		<name>Kreshna Aryaguna Nurzaman</name>
	</author>
	<content type="html">Thanks for the answer, Normand. :-)
&lt;br&gt;&lt;br&gt;--- On Mon, 11/23/09, Normand Savard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529195&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: Normand Savard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529195&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: [FGS] Cannot install FGS php_pgsql-module (both locally and from the internet)
&lt;br&gt;&amp;gt; To: &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529195&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kreshna_iceheart@...&lt;/a&gt;&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529195&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kreshna_iceheart@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529195&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Monday, November 23, 2009, 9:04 AM
&lt;br&gt;&amp;gt; Kreshna,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Answers in line.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Norm
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529195&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kreshna_iceheart@...&lt;/a&gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Nonetheless, I think I should install FGS' php_pgsql
&lt;br&gt;&amp;gt; module. In the /opt/fgs/ folder, I ran the following
&lt;br&gt;&amp;gt; command:
&lt;br&gt;&amp;gt; &amp;gt; fgs install php_pgsql-module &lt;a href=&quot;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;   
&lt;br&gt;&amp;gt; You should have point out:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://dl.maptools.org/dl/fgs/releases/9.5/modules/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dl.maptools.org/dl/fgs/releases/9.5/modules/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; And then, I executed the following:
&lt;br&gt;&amp;gt; &amp;gt; fgs install php_pgsql-module ./modules
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;   
&lt;br&gt;&amp;gt; You have to specify an absolute path to the modules
&lt;br&gt;&amp;gt; directory here.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529195&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cannot-install-FGS-php_pgsql-module-%28both-locally-and-from-the-internet%29-tp26458200p26529195.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26478643</id>
	<title>Re: Cannot install FGS php_pgsql-module (both locally and from the internet)</title>
	<published>2009-11-23T06:04:07Z</published>
	<updated>2009-11-23T06:04:07Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Kreshna,
&lt;br&gt;&lt;br&gt;Answers in line.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478643&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kreshna_iceheart@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; Nonetheless, I think I should install FGS' php_pgsql module. In the /opt/fgs/ folder, I ran the following command:
&lt;br&gt;&amp;gt; fgs install php_pgsql-module &lt;a href=&quot;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;You should have point out:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://dl.maptools.org/dl/fgs/releases/9.5/modules/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dl.maptools.org/dl/fgs/releases/9.5/modules/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; And then, I executed the following:
&lt;br&gt;&amp;gt; fgs install php_pgsql-module ./modules
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;You have to specify an absolute path to the modules directory here.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478643&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cannot-install-FGS-php_pgsql-module-%28both-locally-and-from-the-internet%29-tp26458200p26478643.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26457697</id>
	<title>test</title>
	<published>2009-11-21T06:57:32Z</published>
	<updated>2009-11-21T06:57:32Z</updated>
	<author>
		<name>Kreshna Aryaguna Nurzaman</name>
	</author>
	<content type="html">Um, just testing. I haven't received my own mail that was sent to the mailing list.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26457697&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/test-tp26457697p26457697.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26458200</id>
	<title>Cannot install FGS php_pgsql-module (both locally and from the internet)</title>
	<published>2009-11-21T06:41:47Z</published>
	<updated>2009-11-21T06:41:47Z</updated>
	<author>
		<name>Kreshna Aryaguna Nurzaman</name>
	</author>
	<content type="html">I installed FGS version 1.0.0 fgs-mapserver_5.2.2-fgs_1.0.0-linux-i386.bin) on CentOS 4.2, in the /opt/fgs/ folder. Apparently the particular FGS version does not support PostgreSQL, because when I tried to run phpPgAdmin, it gaves me the following error message:
&lt;br&gt;&lt;br&gt;Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.
&lt;br&gt;&lt;br&gt;First, I found it to be strange, because when I ran phpinfo(), I noticed &amp;nbsp;'--with-pgsql=shared,/home/fgs/fgs-dev/built/postgresql' in the Configure Command section. Why can't it connect to a PostgreSQL database?
&lt;br&gt;&lt;br&gt;And yes, the PostgreSQL is up and running. I tried another instance of Apache (running on different port), and it connects to PostgreSQL flawlessly.
&lt;br&gt;&lt;br&gt;Nonetheless, I think I should install FGS' php_pgsql module. In the /opt/fgs/ folder, I ran the following command:
&lt;br&gt;fgs install php_pgsql-module &lt;a href=&quot;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Yet I got the following error message:
&lt;br&gt;* Probing last version of module 'php_pgsql-module'...
&lt;br&gt;&lt;br&gt;! Cannot find a php_pgsql-module module from &lt;a href=&quot;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/&lt;/a&gt;&lt;br&gt;&lt;br&gt;However, a quick browse on the URL shows that there is a php_pgsql module (fgs-php_pgsql-module-5.2.5-linux-i386.tar.gz). Why can't I install it?
&lt;br&gt;&lt;br&gt;I then tried to download the module first, and install it locally. I created a folder named ./modules/ in /opt/fgs/, and put the downloaded tarball there.
&lt;br&gt;&lt;br&gt;And then, I executed the following:
&lt;br&gt;fgs install php_pgsql-module ./modules
&lt;br&gt;&lt;br&gt;(Basically I was trying to tell fgs executable to look the tarball in the ./modules folder instead of some internet folder)
&lt;br&gt;&lt;br&gt;However, I still got the following error message:
&lt;br&gt;* Probing last version of module 'php_pgsql-module'... 5.2.5
&lt;br&gt;+ Installing php_pgsql-module:
&lt;br&gt;&amp;nbsp; + Getting and extracting module 'php_pgsql-module'...
&lt;br&gt;! Cannot find file './modules/fgs-php_pgsql-module-5.2.5-linux-i386.tar.gz', aborting...
&lt;br&gt;&lt;br&gt;That's very weird, because ls command clearly shows that the tarball is there, in the ./modules/ folder:
&lt;br&gt;ls ./modules/fgs-php_pgsql-module-5.2.5-linux-i386.tar.gz
&lt;br&gt;./modules/fgs-php_pgsql-module-5.2.5-linux-i386.tar.gz
&lt;br&gt;&lt;br&gt;I have tried different locations for the downloaded tarball, and adjusted my fgs install command accordingly. Ad nauseam. Nothing has worked so far.
&lt;br&gt;&lt;br&gt;What should I do now? How am I supposed to do to successfully install an FGS module? Please help. :-(
&lt;br&gt;&lt;br&gt;-Kresh
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26458200&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cannot-install-FGS-php_pgsql-module-%28both-locally-and-from-the-internet%29-tp26458200p26458200.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26432307</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-19T11:14:28Z</published>
	<updated>2009-11-19T11:14:28Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Norm,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I change fgs-dev/pkg_def/php/fgs_build by modifying option from &amp;quot;- - 
&lt;br&gt;&amp;gt; enable-cgi&amp;quot; to &amp;quot;- - disable-cgi&amp;quot; and build php as a module of apache. 
&lt;br&gt;&amp;gt; However when I try to load a map in the browser, it complains that php 
&lt;br&gt;&amp;gt; and php_mapscript module do not match because php is compiled with 
&lt;br&gt;&amp;gt; debug mode while php_mapscript is not. So I try to rebuild mapserver 
&lt;br&gt;&amp;gt; again with flag &amp;quot;- - enable_debug&amp;quot;. After that, finally mapserver 
&lt;br&gt;&amp;gt; works as expected and be able to execute php code and display map 
&lt;br&gt;&amp;gt; images properly. Thank you very much for your help and time.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;Hao,
&lt;br&gt;&lt;br&gt;It was my pleasure. &amp;nbsp;I had said in a previous email that I didn't think 
&lt;br&gt;it was caused by &amp;quot;--enable-cgi&amp;quot; because I did compiled my php with this 
&lt;br&gt;switch and I got my libphp5.so. &amp;nbsp;Anyway, I'm happy it works for you.
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26432307&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26432307.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26430445</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-19T09:25:56Z</published>
	<updated>2009-11-19T09:25:56Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;I change fgs-dev/pkg_def/php/fgs_build by modifying option from &amp;quot;- - enable-cgi&amp;quot; to &amp;quot;- - disable-cgi&amp;quot; and build php as a module of apache. However when I try to load a map in the browser, it complains that php and php_mapscript module do not match because php is compiled with debug mode while php_mapscript is not. So I try to rebuild mapserver again with flag &amp;quot;- - enable_debug&amp;quot;. After that, finally mapserver works as expected and be able to execute php code and display map images properly. Thank you very much for your help and time. &lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hao,&lt;br&gt;
&lt;br&gt;
All things seem to be set correctly.  Do you have a libphp5.so in $FGS_DEV/src/php-5.2.9/libs?&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430445&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26430445.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427059</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-19T06:15:51Z</published>
	<updated>2009-11-19T06:15:51Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The output related to Apache module or cgi is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ./fgs_build
&lt;br&gt;&amp;gt; * Building against mapserver &amp;gt;= 4.6, we can use PHP as an Apache module
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [... ...]
&lt;br&gt;&amp;gt; Configuring SAPI modules
&lt;br&gt;&amp;gt; checking for AOLserver support... no
&lt;br&gt;&amp;gt; checking for Apache 1.x module support via DSO through APXS... no
&lt;br&gt;&amp;gt; checking for Apache 1.x module support... no
&lt;br&gt;&amp;gt; checking whether to enable Apache charset compatibility option... no
&lt;br&gt;&amp;gt; checking for Apache 2.0 filter-module support via DSO through APXS... no
&lt;br&gt;&amp;gt; checking for Apache 2.0 handler-module support via DSO through APXS... yes
&lt;br&gt;&amp;gt; checking for Apache 1.x (hooks) module support via DSO through APXS... no
&lt;br&gt;&amp;gt; checking for Apache 1.x (hooks) module support... no
&lt;br&gt;&amp;gt; checking whether to enable Apache charset compatibility option... no
&lt;br&gt;&amp;gt; checking for Caudium support... no
&lt;br&gt;&amp;gt; checking for CLI build... yes
&lt;br&gt;&amp;gt; [... ...]
&lt;br&gt;&amp;gt;
&lt;/div&gt;Hao,
&lt;br&gt;&lt;br&gt;All things seem to be set correctly. &amp;nbsp;Do you have a libphp5.so in 
&lt;br&gt;$FGS_DEV/src/php-5.2.9/libs?
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427059&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26427059.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26416246</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T13:39:23Z</published>
	<updated>2009-11-18T13:39:23Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;br&gt;&amp;gt; I did as you indicated. The output related to Apache module or cgi is:
&lt;br&gt;&amp;gt;
&lt;br&gt;Hao,
&lt;br&gt;&lt;br&gt;Thank you. &amp;nbsp;I'll get back to you tomorrow morning.
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416246&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26416246.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26414735</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T12:03:45Z</published>
	<updated>2009-11-18T12:03:45Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;I did as you indicated. The output related to Apache module or cgi is:&lt;br&gt;&lt;br&gt;./fgs_build &lt;br&gt;* PHP will be built in DEBUG mode&lt;br&gt;* Building against mapserver &amp;gt;= 4.6, we can use PHP as an Apache module&lt;br&gt;
loading cache ./config.cache&lt;br&gt;[... ...]&lt;br&gt;Configuring SAPI modules&lt;br&gt;checking for AOLserver support... no&lt;br&gt;checking for Apache 1.x module support via DSO through APXS... no&lt;br&gt;checking for Apache 1.x module support... no&lt;br&gt;
checking whether to enable Apache charset compatibility option... no&lt;br&gt;checking for Apache 2.0 filter-module support via DSO through APXS... no&lt;br&gt;checking for Apache 2.0 handler-module support via DSO through APXS... yes&lt;br&gt;
checking for Apache 1.x (hooks) module support via DSO through APXS... no&lt;br&gt;checking for Apache 1.x (hooks) module support... no&lt;br&gt;checking whether to enable Apache charset compatibility option... no&lt;br&gt;checking for Caudium support... no&lt;br&gt;
checking for CLI build... yes&lt;br&gt;checking for Continuity support... no&lt;br&gt;checking for embedded SAPI library support... no&lt;br&gt;checking for Zeus ISAPI support... no&lt;br&gt;checking for Milter support... no&lt;br&gt;checking for NSAPI support... no&lt;br&gt;
checking for PHTTPD support... no&lt;br&gt;checking for Pi3Web support... no&lt;br&gt;checking whether Roxen module is build using ZTS... no&lt;br&gt;checking for Roxen/Pike support... &lt;br&gt;checking for thttpd... no&lt;br&gt;checking for TUX... no&lt;br&gt;
checking for webjames... no&lt;br&gt;checking for chosen SAPI module... apache2handler&lt;br&gt;[... ...]&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 18, 2009 at 6:35 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26414735&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
if [ &amp;quot;$PHP_AS_APACHE_MODULE&amp;quot; = &amp;#39;y&amp;#39; ] ; then&lt;br&gt;
    echo &amp;quot;* Building against mapserver &amp;gt;= 4.6, we can use PHP as an Apache module&amp;quot;&lt;br&gt;
    OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;&lt;br&gt;
&lt;br&gt;
    if [ ${APACHE_VERSION_MAJOR} = &amp;#39;1&amp;#39; ] ; then&lt;br&gt;
        OPTIONS=&amp;quot;$OPTIONS --with-apxs=$FGS_BUILD_HOME/apache/bin/apxs&amp;quot;&lt;br&gt;
    else&lt;br&gt;
        OPTIONS=&amp;quot;$OPTIONS --with-apxs2=$FGS_BUILD_HOME/apache/bin/apxs&amp;quot;&lt;br&gt;
    fi&lt;br&gt;
else&lt;br&gt;
    OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;&lt;br&gt;
fi&lt;br&gt;
&lt;br&gt;
No matter &amp;quot;$PHP_AS_APACHE_MODULE&amp;quot; = &amp;#39;y&amp;#39; or not, always has OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;. Is this correct behavior?&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
I don&amp;#39;t think this is what cause the problem even though it looks weird but you can change:&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;&lt;br&gt;
&lt;br&gt;&lt;/div&gt;
in the first &amp;quot;if&amp;quot; for:&lt;br&gt;
&lt;br&gt;
OPTIONS=&amp;quot;$OPTIONS --disable-cgi&amp;quot;&lt;br&gt;
&lt;br&gt;
and for the &amp;quot;OPTIONS&amp;quot; in the else, you can change to:&lt;br&gt;
&lt;br&gt;
OPTIONS=&amp;quot;$OPTIONS --enable-force-cgi-redirect&amp;quot;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Then comment the following lines in fgs_build:&lt;br&gt;
&lt;br&gt;
rm -rf $FGS_BUILD_HOME/php&lt;br&gt;
make clean&lt;br&gt;
make $FGS_MAKE_OPT all&lt;br&gt;
&lt;br&gt;
Execute &amp;quot;./fgs_build&amp;quot; in the php src directory.  Paste the output related to Apache module or cgi here.&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26414735&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26414735.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26412185</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T09:35:19Z</published>
	<updated>2009-11-18T09:35:19Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; if [ &amp;quot;$PHP_AS_APACHE_MODULE&amp;quot; = 'y' ] ; then
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; echo &amp;quot;* Building against mapserver &amp;gt;= 4.6, we can use PHP as an 
&lt;br&gt;&amp;gt; Apache module&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if [ ${APACHE_VERSION_MAJOR} = '1' ] ; then
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OPTIONS=&amp;quot;$OPTIONS --with-apxs=$FGS_BUILD_HOME/apache/bin/apxs&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OPTIONS=&amp;quot;$OPTIONS --with-apxs2=$FGS_BUILD_HOME/apache/bin/apxs&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; fi
&lt;br&gt;&amp;gt; else
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;
&lt;br&gt;&amp;gt; fi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; No matter &amp;quot;$PHP_AS_APACHE_MODULE&amp;quot; = 'y' or not, always has 
&lt;br&gt;&amp;gt; OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;. Is this 
&lt;br&gt;&amp;gt; correct behavior?
&lt;br&gt;&amp;gt;
&lt;/div&gt;I don't think this is what cause the problem even though it looks weird 
&lt;br&gt;but you can change:
&lt;br&gt;&lt;br&gt;OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;
&lt;br&gt;&lt;br&gt;in the first &amp;quot;if&amp;quot; for:
&lt;br&gt;&lt;br&gt;OPTIONS=&amp;quot;$OPTIONS --disable-cgi&amp;quot;
&lt;br&gt;&lt;br&gt;and for the &amp;quot;OPTIONS&amp;quot; in the else, you can change to:
&lt;br&gt;&lt;br&gt;OPTIONS=&amp;quot;$OPTIONS --enable-force-cgi-redirect&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Then comment the following lines in fgs_build:
&lt;br&gt;&lt;br&gt;rm -rf $FGS_BUILD_HOME/php
&lt;br&gt;make clean
&lt;br&gt;make $FGS_MAKE_OPT all
&lt;br&gt;&lt;br&gt;Execute &amp;quot;./fgs_build&amp;quot; in the php src directory. &amp;nbsp;Paste the output 
&lt;br&gt;related to Apache module or cgi here.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26412185&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26412185.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26410555</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T08:02:33Z</published>
	<updated>2009-11-18T08:02:33Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm, &lt;br&gt;&lt;br&gt;Yes, I changed fgs-dev/pkg_def/php/fgs_build file, but the changes are only about (1) disable mysql support (2) enable debug mode which were discussed in our previous emails. I opened this fgs_build file and noticed the following section:&lt;br&gt;
&lt;br&gt;## need to verify that MapServer version is greater than or equal to 4.5                                                                                                                                       &lt;br&gt;## if yes compile php as an Apache module                                                                                                                                                                      &lt;br&gt;
## if version is 5.0 and up compile as an Apache module                                                                                                                                                        &lt;br&gt;if [ -e $MS_SRC_PATH/map.h ] ; then&lt;br&gt;
  MS_VERSION=`grep VERSION $MS_SRC_PATH/map.h | cut -d&amp;#39;&amp;quot;&amp;#39; -f2 `&lt;br&gt;&lt;br&gt;  if [ `echo $MS_VERSION | cut -d&amp;#39;.&amp;#39; -f1` -eq 4 ] ; then&lt;br&gt;    [ `echo $MS_VERSION | cut -d&amp;#39;.&amp;#39; -f2` -ge 5 ] &amp;amp;&amp;amp; PHP_AS_APACHE_MODULE=y&lt;br&gt;
  fi&lt;br&gt;elif [ -e $MS_SRC_PATH/mapserver.h ] ; then&lt;br&gt;  PHP_AS_APACHE_MODULE=y&lt;br&gt;fi&lt;br&gt;&lt;br&gt;APACHE_VERSION=`grep ^apache: $FGS_DEV_HOME/build.list | cut -d: -f3`&lt;br&gt;APACHE_VERSION_MAJOR=`echo $APACHE_VERSION | cut -d. -f1`&lt;br&gt;
&lt;br&gt;if [ &amp;quot;$PHP_AS_APACHE_MODULE&amp;quot; = &amp;#39;y&amp;#39; ] ; then&lt;br&gt;    echo &amp;quot;* Building against mapserver &amp;gt;= 4.6, we can use PHP as an Apache module&amp;quot;&lt;br&gt;    OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;&lt;br&gt;
&lt;br&gt;    if [ ${APACHE_VERSION_MAJOR} = &amp;#39;1&amp;#39; ] ; then&lt;br&gt;        OPTIONS=&amp;quot;$OPTIONS --with-apxs=$FGS_BUILD_HOME/apache/bin/apxs&amp;quot;&lt;br&gt;    else&lt;br&gt;        OPTIONS=&amp;quot;$OPTIONS --with-apxs2=$FGS_BUILD_HOME/apache/bin/apxs&amp;quot;&lt;br&gt;
    fi&lt;br&gt;else&lt;br&gt;    OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;&lt;br&gt;fi&lt;br&gt;&lt;br&gt;No matter &amp;quot;$PHP_AS_APACHE_MODULE&amp;quot; = &amp;#39;y&amp;#39; or not, always has OPTIONS=&amp;quot;$OPTIONS --enable-cgi --enable-force-cgi-redirect&amp;quot;. Is this correct behavior?&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 18, 2009 at 4:18 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26410555&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hao,&lt;br&gt;
&lt;br&gt;
Answer inline.&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;br&gt;
Hao Zhang wrote:&lt;br&gt;
&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
There is no php5 in my cgi-bin ($FGS_HOME/www/cgi-bin/). I checked your FGS (1.0), there is no php5 in the cgi-bin as well. I compared php5.conf files:&lt;br&gt;
&lt;br&gt;
[Your version - FGS 1.0]:&lt;br&gt;
AddType application/x-httpd-php .php .phtml&lt;br&gt;
LoadModule php5_module        libexec/libphp5.so&lt;br&gt;
DirectoryIndex index.php index.phtml&lt;br&gt;
PassEnv PHPRC&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
This indicates that PHP is compiled as a module.  This is the normal configuration of this package.  You could see this in the fgs_build of this package.&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
[My version]:&lt;br&gt;
AddType application/x-httpd-php5 .php .phtml&lt;br&gt;
Action application/x-httpd-php5 /cgi-bin/php5&lt;br&gt;
DirectoryIndex index.php index.phtml&lt;br&gt;
PassEnv PHPRC&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
PHP is compiled as a cgi.  Somehow it happens that the conf file &amp;quot;php.conf-php_as_cgi&amp;quot; is executed instead of &amp;quot;php.conf-php_as_module&amp;quot;.&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
However, I cannot find libphp5.so anyway in my $FGS_HOME (no $FGS_HOME/www/libexec at all!). Do you think it is because php is built or configured wrong?&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Did you change something in your fgs_build?  You could check how php is compiled in your php/config.log and php/config.status.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26410555&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26410555.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26409762</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T07:18:05Z</published>
	<updated>2009-11-18T07:18:05Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao,
&lt;br&gt;&lt;br&gt;Answer inline.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; There is no php5 in my cgi-bin ($FGS_HOME/www/cgi-bin/). I checked 
&lt;br&gt;&amp;gt; your FGS (1.0), there is no php5 in the cgi-bin as well. I compared 
&lt;br&gt;&amp;gt; php5.conf files:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [Your version - FGS 1.0]:
&lt;br&gt;&amp;gt; AddType application/x-httpd-php .php .phtml
&lt;br&gt;&amp;gt; LoadModule php5_module &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libexec/libphp5.so
&lt;br&gt;&amp;gt; DirectoryIndex index.php index.phtml
&lt;br&gt;&amp;gt; PassEnv PHPRC
&lt;br&gt;&amp;gt;
&lt;/div&gt;This indicates that PHP is compiled as a module. &amp;nbsp;This is the normal 
&lt;br&gt;configuration of this package. &amp;nbsp;You could see this in the fgs_build of 
&lt;br&gt;this package.
&lt;br&gt;&lt;br&gt;&amp;gt; [My version]:
&lt;br&gt;&amp;gt; AddType application/x-httpd-php5 .php .phtml
&lt;br&gt;&amp;gt; Action application/x-httpd-php5 /cgi-bin/php5
&lt;br&gt;&amp;gt; DirectoryIndex index.php index.phtml
&lt;br&gt;&amp;gt; PassEnv PHPRC
&lt;br&gt;&amp;gt;
&lt;br&gt;PHP is compiled as a cgi. &amp;nbsp;Somehow it happens that the conf file 
&lt;br&gt;&amp;quot;php.conf-php_as_cgi&amp;quot; is executed instead of &amp;quot;php.conf-php_as_module&amp;quot;.
&lt;br&gt;&amp;gt; However, I cannot find libphp5.so anyway in my $FGS_HOME (no 
&lt;br&gt;&amp;gt; $FGS_HOME/www/libexec at all!). Do you think it is because php is 
&lt;br&gt;&amp;gt; built or configured wrong?
&lt;br&gt;&amp;gt;
&lt;br&gt;Did you change something in your fgs_build? &amp;nbsp;You could check how php is 
&lt;br&gt;compiled in your php/config.log and php/config.status.
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409762&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26409762.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26409527</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T07:04:44Z</published>
	<updated>2009-11-18T07:04:44Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;Hi Norm, &lt;br&gt;&lt;br&gt;There is no php5 in my cgi-bin ($FGS_HOME/www/cgi-bin/). I checked your FGS (1.0), there is no php5 in the cgi-bin as well. I compared php5.conf files:&lt;br&gt;&lt;br&gt;[Your version - FGS 1.0]:&lt;br&gt;
AddType application/x-httpd-php .php .phtml&lt;br&gt;LoadModule php5_module        libexec/libphp5.so&lt;br&gt;DirectoryIndex index.php index.phtml&lt;br&gt;PassEnv PHPRC&lt;br&gt;&lt;br&gt;[My version]:&lt;br&gt;AddType application/x-httpd-php5 .php .phtml&lt;br&gt;
Action application/x-httpd-php5 /cgi-bin/php5&lt;br&gt;DirectoryIndex index.php index.phtml&lt;br&gt;PassEnv PHPRC&lt;br&gt;&lt;br&gt;However, I cannot find libphp5.so anyway in my $FGS_HOME (no $FGS_HOME/www/libexec at all!). Do you think it is because php is built or configured wrong?&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Nov 18, 2009 at 3:47 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409527&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
In browser, I input &amp;quot;&lt;a href=&quot;http://localhost:8000/cgi-bin/mapserv/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8000/cgi-bin/mapserv/&lt;/a&gt;&amp;quot; and it returns &amp;quot;No query information to decode. QUERY_STRING is set, but empty&amp;quot;. So mapserver is working. There is a file called &amp;quot;phpinfo.php&amp;quot; located at /opt/fgs/www/htdocs/ directory. Then I input &amp;quot;&lt;a href=&quot;http://localhost:8000/phpinfo.php&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8000/phpinfo.php&lt;/a&gt;&amp;quot; in browser, but it returns &amp;quot;404 Not Found The requested URL /cgi-bin/php5/phpinfo.php was not found on this server.&amp;quot; I use firebug plugin in firefox to investigate and find in response header saying &amp;quot;Server| Apache/2.2.8 (Unix)|&amp;quot;. If I send same request to another running FGS (1.0) you provide in official website, it says &amp;quot;Server| Apache/2.2.8 (Unix)  X-Powered-By PHP/5.2.5|&amp;quot; in response header and returns correct page content. It seems to me that my self-built FGS is not able to execute php code in apache. Could you instruct me how to fix it? I need Apache/Mapserver/PHP/Mapscript all working together in order to run application such as ka-map on top. Thank you in advance.&lt;br&gt;

&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
Is there a php5 in your cgi-bin ($FGS_HOME/www/cgi-bin/)?&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409527&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26409527.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26409171</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T06:47:27Z</published>
	<updated>2009-11-18T06:47:27Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In browser, I input &amp;quot;&lt;a href=&quot;http://localhost:8000/cgi-bin/mapserv/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8000/cgi-bin/mapserv/&lt;/a&gt;&amp;quot; and it 
&lt;br&gt;&amp;gt; returns &amp;quot;No query information to decode. QUERY_STRING is set, but 
&lt;br&gt;&amp;gt; empty&amp;quot;. So mapserver is working. There is a file called &amp;quot;phpinfo.php&amp;quot; 
&lt;br&gt;&amp;gt; located at /opt/fgs/www/htdocs/ directory. Then I input 
&lt;br&gt;&amp;gt; &amp;quot;&lt;a href=&quot;http://localhost:8000/phpinfo.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8000/phpinfo.php&lt;/a&gt;&amp;quot; in browser, but it returns &amp;quot;404 
&lt;br&gt;&amp;gt; Not Found The requested URL /cgi-bin/php5/phpinfo.php was not found on 
&lt;br&gt;&amp;gt; this server.&amp;quot; I use firebug plugin in firefox to investigate and find 
&lt;br&gt;&amp;gt; in response header saying &amp;quot;Server| Apache/2.2.8 (Unix)|&amp;quot;. If I send 
&lt;br&gt;&amp;gt; same request to another running FGS (1.0) you provide in official 
&lt;br&gt;&amp;gt; website, it says &amp;quot;Server| Apache/2.2.8 (Unix) &amp;nbsp;X-Powered-By 
&lt;br&gt;&amp;gt; PHP/5.2.5|&amp;quot; in response header and returns correct page content. It 
&lt;br&gt;&amp;gt; seems to me that my self-built FGS is not able to execute php code in 
&lt;br&gt;&amp;gt; apache. Could you instruct me how to fix it? I need 
&lt;br&gt;&amp;gt; Apache/Mapserver/PHP/Mapscript all working together in order to run 
&lt;br&gt;&amp;gt; application such as ka-map on top. Thank you in advance.
&lt;br&gt;&amp;gt;
&lt;/div&gt;Hao,
&lt;br&gt;&lt;br&gt;Is there a php5 in your cgi-bin ($FGS_HOME/www/cgi-bin/)?
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409171&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26409171.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26408362</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-18T06:04:19Z</published>
	<updated>2009-11-18T06:04:19Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;I have to reopen this email thread since I encounter further problem after installing self built FGS installer. If you still remember, I have been building FGS from scratch target for Linux/sparc64 machine. The lastest FGS installer I built is based on mapserver 5.2.1 and php 5.2.5. The package information looks like:&lt;br&gt;
&lt;br&gt;fgsdev build_si mapserver_basic_5.2.1 1.0.2 mapserver-php gdal_ecw-module libecw-base postgis-lib ming-lib python_mapscript-module&lt;br&gt;* Creating archive file containing all required FGS modules...&lt;br&gt;+ Including base module... ok&lt;br&gt;
+ Including mapserver-php version 5.2.1... ok&lt;br&gt;+ Including mapserver-base version 5.2.1... ok&lt;br&gt;+ Including libstdc++-lib version 6.0.10... ok&lt;br&gt;+ Including libgcc-lib version 1... ok&lt;br&gt;+ Including apache-base version 2.2.8... ok&lt;br&gt;
+ Including expat-base version 2.0.1... ok&lt;br&gt;+ Including gd-lib version 2.0.35... ok&lt;br&gt;+ Including jpeg-lib version 6b... ok&lt;br&gt;+ Including freetype-lib version 2.3.5... ok&lt;br&gt;+ Including libpng-lib version 1.2.8... ok&lt;br&gt;
+ Including zlib-lib version 1.2.3... ok&lt;br&gt;+ Including curl-lib version 7.19.4... ok&lt;br&gt;+ Including openssl-lib version 0.9.8a... ok&lt;br&gt;+ Including proj-lib version 4.5.0... ok&lt;br&gt;+ Including postgresql-lib version 8.3.1... ok&lt;br&gt;
+ Including gdal-base version 1.6.1... ok&lt;br&gt;+ Including tiff-lib version 3.8.2... ok&lt;br&gt;+ Including libgeotiff-lib version 1.2.4... ok&lt;br&gt;+ Including xerces_c-base version 2_8_0... ok&lt;br&gt;+ Including unixODBC-base version 2.2.10... ok&lt;br&gt;
+ Including libungif-base version 4.1.3... ok&lt;br&gt;+ Including libiconv-base version 1.9.1... ok&lt;br&gt;+ Including proj4_epsg42xxx-support version 1.0.0... ok&lt;br&gt;+ Including geos-lib version 3.1.0... ok&lt;br&gt;+ Including libxml2-base version 2.7.3... ok&lt;br&gt;
+ Including agg-lib version 2.4... ok&lt;br&gt;+ Including php-base version 5.2.5... ok&lt;br&gt;+ Including gdal_ecw-module version 1.6.1... ok&lt;br&gt;+ Including libecw-base version 3.3.20060906... ok&lt;br&gt;+ Including postgis-lib version 1.3.2... ok&lt;br&gt;
+ Including python_mapscript-module version 5.2.1... ok&lt;br&gt;+ Including python-base version 2.5.2... ok&lt;br&gt;* Creating self-extracting archive script&lt;br&gt;* Self installer image created with success in &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.2-linux-sparc64.bin&amp;#39;.&lt;br&gt;
* Versions info file is &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.2-linux-sparc64.versions&amp;#39;.&lt;br&gt;&lt;br&gt;Then I installed it onto the target machine, and it is properly installed. The install log looks like:&lt;br&gt;
&lt;br&gt;sh fgs-mapserver_basic_5.2.1-1.0.2-linux-sparc64.bin &lt;br&gt;* Starting FGS installation :&lt;br&gt;Where do you want to install the FGS suite [/opt/fgs] ?&lt;br&gt;+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.OqhqUs...ok&lt;br&gt;
+ Running base&amp;#39;s installer&lt;br&gt;+ module : base&lt;br&gt;+ Running fgs install mapserver-php&lt;br&gt;* Probing last version of module &amp;#39;mapserver-php&amp;#39;... 5.2.1&lt;br&gt;+ Installing mapserver-php:&lt;br&gt;  + Getting and extracting module &amp;#39;mapserver-php&amp;#39;... ok&lt;br&gt;
    + Getting and extracting module &amp;#39;mapserver-base&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;libstdc++-lib&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;libgcc-lib&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;apache-base&amp;#39;... ok&lt;br&gt;
        + Getting and extracting module &amp;#39;expat-base&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;gd-lib&amp;#39;... ok&lt;br&gt;        + Getting and extracting module &amp;#39;jpeg-lib&amp;#39;... ok&lt;br&gt;        + Getting and extracting module &amp;#39;freetype-lib&amp;#39;... ok&lt;br&gt;
        + Getting and extracting module &amp;#39;libpng-lib&amp;#39;... ok&lt;br&gt;          + Getting and extracting module &amp;#39;zlib-lib&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;curl-lib&amp;#39;... ok&lt;br&gt;        + Getting and extracting module &amp;#39;openssl-lib&amp;#39;... ok&lt;br&gt;
      + Getting and extracting module &amp;#39;proj-lib&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;postgresql-lib&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;gdal-base&amp;#39;... ok&lt;br&gt;        + Getting and extracting module &amp;#39;tiff-lib&amp;#39;... ok&lt;br&gt;
        + Getting and extracting module &amp;#39;libgeotiff-lib&amp;#39;... ok&lt;br&gt;        + Getting and extracting module &amp;#39;xerces_c-base&amp;#39;... ok&lt;br&gt;        + Getting and extracting module &amp;#39;unixODBC-base&amp;#39;... ok&lt;br&gt;        + Getting and extracting module &amp;#39;libungif-base&amp;#39;... ok&lt;br&gt;
      + Getting and extracting module &amp;#39;libiconv-base&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;proj4_epsg42xxx-support&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;geos-lib&amp;#39;... ok&lt;br&gt;      + Getting and extracting module &amp;#39;libxml2-base&amp;#39;... ok&lt;br&gt;
      + Getting and extracting module &amp;#39;agg-lib&amp;#39;... ok&lt;br&gt;    + Getting and extracting module &amp;#39;php-base&amp;#39;... ok&lt;br&gt;+ Copying all files into FGS environment... ok&lt;br&gt;+ Running apache-base&amp;#39;s installation script :&lt;br&gt;
*      *** Apache installation ***&lt;br&gt;* Selecting TCP port... Example: 80, 8080, 8000&lt;br&gt;? What TCP port do you want to use [80] : 8000&lt;br&gt;+ Port selected : &amp;#39;8000&amp;#39;&lt;br&gt;* You can start apache with : fgs start apache&lt;br&gt;
*      *** End of Apache installation ***&lt;br&gt;+ Running gdal-base&amp;#39;s installation script :&lt;br&gt; Oracle support needs libaio-dev package.  Is this package installed?  If you answer &amp;#39;Y&amp;#39; and the library is not installed most GDAL/OGR commands will failed. [y/n]y&lt;br&gt;
+ Running libgeotiff-lib&amp;#39;s installation script :&lt;br&gt;+ Running mapserver-base&amp;#39;s installation script :&lt;br&gt;+ Running mapserver-php&amp;#39;s installation script :&lt;br&gt;* php5.ini.template not found. Is php_base installed?&lt;br&gt;
+ Running php-base&amp;#39;s installation script :&lt;br&gt;+ php5.ini file installed in /opt/fgs/www/conf/php5.ini.template&lt;br&gt;+ Running proj4_epsg42xxx-support&amp;#39;s installation script :&lt;br&gt;+ Running proj-lib&amp;#39;s installation script :&lt;br&gt;
* Module &amp;#39;mapserver-php&amp;#39; installed with success.&lt;br&gt;+ Running fgs install gdal_ecw-module&lt;br&gt;* Probing last version of module &amp;#39;gdal_ecw-module&amp;#39;... 1.6.1&lt;br&gt;+ Installing gdal_ecw-module:&lt;br&gt;  + Getting and extracting module &amp;#39;gdal_ecw-module&amp;#39;... ok&lt;br&gt;
+ Copying all files into FGS environment... ok&lt;br&gt;* Module &amp;#39;gdal_ecw-module&amp;#39; installed with success.&lt;br&gt;+ Running fgs install libecw-base&lt;br&gt;* Probing last version of module &amp;#39;libecw-base&amp;#39;... 3.3.20060906&lt;br&gt;
+ Installing libecw-base:&lt;br&gt;  + Getting and extracting module &amp;#39;libecw-base&amp;#39;... ok&lt;br&gt;+ Copying all files into FGS environment... ok&lt;br&gt;* Module &amp;#39;libecw-base&amp;#39; installed with success.&lt;br&gt;+ Running fgs install postgis-lib&lt;br&gt;
* Probing last version of module &amp;#39;postgis-lib&amp;#39;... 1.3.2&lt;br&gt;+ Installing postgis-lib:&lt;br&gt;  + Getting and extracting module &amp;#39;postgis-lib&amp;#39;... ok&lt;br&gt;+ Copying all files into FGS environment... ok&lt;br&gt;+ Running postgis-lib&amp;#39;s installation script :&lt;br&gt;
* Module &amp;#39;postgis-lib&amp;#39; installed with success.&lt;br&gt;+ Running fgs install ming-lib&lt;br&gt;* Probing last version of module &amp;#39;ming-lib&amp;#39;... 0.4.2&lt;br&gt;+ Installing ming-lib:&lt;br&gt;  + Getting and extracting module &amp;#39;ming-lib&amp;#39;... ok&lt;br&gt;
+ Copying all files into FGS environment... ok&lt;br&gt;* Module &amp;#39;ming-lib&amp;#39; installed with success.&lt;br&gt;+ Running fgs install python_mapscript-module&lt;br&gt;* Probing last version of module &amp;#39;python_mapscript-module&amp;#39;... 5.2.1&lt;br&gt;
+ Installing python_mapscript-module:&lt;br&gt;  + Getting and extracting module &amp;#39;python_mapscript-module&amp;#39;... ok&lt;br&gt;    + Getting and extracting module &amp;#39;python-base&amp;#39;... ok&lt;br&gt;+ Copying all files into FGS environment... ok&lt;br&gt;
* Module &amp;#39;python_mapscript-module&amp;#39; installed with success.&lt;br&gt;+ Starting FGS&amp;#39;s daemon:&lt;br&gt;+ Starting &amp;#39;apache&amp;#39;:&lt;br&gt;&lt;br&gt;In browser, I input &amp;quot;&lt;a href=&quot;http://localhost:8000/cgi-bin/mapserv/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8000/cgi-bin/mapserv/&lt;/a&gt;&amp;quot; and it returns &amp;quot;&lt;a name=&quot;base&quot; target=&quot;_top&quot;&gt;No query information to decode. QUERY_STRING is set, but empty&lt;/a&gt;&amp;quot;. So mapserver is working. There is a file called &amp;quot;phpinfo.php&amp;quot; located at /opt/fgs/www/htdocs/ directory. Then I input &amp;quot;&lt;a href=&quot;http://localhost:8000/phpinfo.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8000/phpinfo.php&lt;/a&gt;&amp;quot; in browser, but it returns &amp;quot;404 Not Found The requested URL /cgi-bin/php5/phpinfo.php was not found on this server.&amp;quot; I use firebug plugin in firefox to investigate and find in response header saying &amp;quot;Server&lt;code class=&quot;&quot;&gt; Apache/2.2.8 (Unix)&lt;/code&gt;&amp;quot;. If I send same request to another running FGS (1.0) you provide in official website, it says &amp;quot;Server&lt;code class=&quot;&quot;&gt; Apache/2.2.8 (Unix)  X-Powered-By PHP/5.2.5&lt;/code&gt;&amp;quot; in response header and returns correct page content. It seems to me that my self-built FGS is not able to execute php code in apache. Could you instruct me how to fix it? I need Apache/Mapserver/PHP/Mapscript all working together in order to run application such as ka-map on top. Thank you in advance.&lt;br&gt;
&lt;br&gt;Best Regards,&lt;br&gt;Hao&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26408362&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26408362.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26287131</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-10T08:56:43Z</published>
	<updated>2009-11-10T08:56:43Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao,
&lt;br&gt;&lt;br&gt;Answers in line.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I think I have finally resloved the problem. The root cause of the 
&lt;br&gt;&amp;gt; install error is that I did not change 'i386' to 'sparc64' in 
&lt;br&gt;&amp;gt; fgs-dev/pkg_def/base/skeleton/etc/fgs/lib/install.sh. There are two 
&lt;br&gt;&amp;gt; places that need to be modified in this install.sh file, one is in 
&lt;br&gt;&amp;gt; function get_last_module_version() and the other is in function 
&lt;br&gt;&amp;gt; prepare_module(). After changing these two 'i386' to 'sparc64', I 
&lt;br&gt;&amp;gt; erased the debug line 'echo $fgs_package' you instructed (otherwise 
&lt;br&gt;&amp;gt; function get_last_module_version() will return wrong value which 
&lt;br&gt;&amp;gt; causes the strange error '! Cannot find file ...' in my last email). 
&lt;br&gt;&amp;gt; Then I rebuilt the installer mainly fgs-base.tar.gz will be affected. 
&lt;br&gt;&amp;gt; The new installer was successfully built and I managed to install it 
&lt;br&gt;&amp;gt; onto target sparc64 machine.
&lt;br&gt;&amp;gt;
&lt;/div&gt;I'm really happy that it works on this architecture.
&lt;br&gt;&amp;gt; Thank you very much for your continuous help. I really appreciate it.
&lt;br&gt;&amp;gt;
&lt;br&gt;It has been my pleasure. 
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26287131&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26287131.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26286293</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-10T08:12:58Z</published>
	<updated>2009-11-10T08:12:58Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;I think I have finally resloved the problem. The root cause of the install error is that I did not change &amp;#39;i386&amp;#39; to &amp;#39;sparc64&amp;#39; in fgs-dev/pkg_def/base/skeleton/etc/fgs/lib/install.sh. There are two places that need to be modified in this install.sh file, one is in function get_last_module_version() and the other is in function prepare_module(). After changing these two &amp;#39;i386&amp;#39; to &amp;#39;sparc64&amp;#39;, I erased the debug line &amp;#39;echo $fgs_package&amp;#39; you instructed (otherwise function get_last_module_version() will return wrong value which causes the strange error &amp;#39;! Cannot find file ...&amp;#39; in my last email). Then I rebuilt the installer mainly fgs-base.tar.gz will be affected. The new installer was successfully built and I managed to install it onto target sparc64 machine.&lt;br&gt;
&lt;br&gt;Thank you very much for your continuous help. I really appreciate it.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 10, 2009 at 10:29 AM, Hao Zhang &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26286293&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hao@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi Norm,&lt;br&gt;&lt;br&gt;I changed the CPU variable from &amp;#39;i386&amp;#39; to &amp;#39;sparc64&amp;#39; and added echo line into fgs-dev/pkg_def/base/skeleton/etc/fgs/lib/install.sh. Then I rebuilt self-installer. The output of the installation execution looks like:&lt;br&gt;


&lt;br&gt;Where do you want to install the FGS suite [/opt/fgs] ?&lt;br&gt;+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.BXArCy...ok&lt;div class=&quot;im&quot;&gt;&lt;br&gt;+ Running base&amp;#39;s installer&lt;br&gt;+ module : base&lt;br&gt;+ Running fgs install mapserver-base&lt;br&gt;
&lt;/div&gt;
* Probing last version of module &amp;#39;mapserver-base&amp;#39;... fgs-mapserver-base-5.2.1-linux-sparc64.tar.gz 5.2.1&lt;br&gt;+ Installing mapserver-base:&lt;br&gt;  /opt/fgs/tmp/fgs-1257844994-11561.tmp+ Getting and extracting module &amp;#39;mapserver-base&amp;#39;... &lt;br&gt;

! Cannot find file &amp;#39;5.2.1/fgs-mapserver-base-fgs-mapserver-base-5.2.1-linux-sparc64.tar.gz-linux-i386.tar.gz&amp;#39;, aborting...&lt;br&gt;&lt;br&gt;
It seems that somewhere else is still using &amp;#39;i386&amp;#39; and the file name shown in the last line &amp;#39;! Cannot find file ...&amp;#39; looks totally wrong. Please have a look. Thank you.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Hao&lt;/font&gt;&lt;div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 4:58 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26286293&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;


&lt;div&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Norm,&lt;br&gt;
&lt;br&gt;
I did not change the CPU variable. Do you mean that I should modify install.sh file then rebuild self-installer? What output should I paste?&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Yes, please.  You can paste the output of the installation execution.&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26286293&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26286293.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26280568</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-10T01:29:52Z</published>
	<updated>2009-11-10T01:29:52Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;I changed the CPU variable from &amp;#39;i386&amp;#39; to &amp;#39;sparc64&amp;#39; and added echo line into fgs-dev/pkg_def/base/skeleton/etc/fgs/lib/install.sh. Then I rebuilt self-installer. The output of the installation execution looks like:&lt;br&gt;

&lt;br&gt;Where do you want to install the FGS suite [/opt/fgs] ?&lt;br&gt;+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.BXArCy...ok&lt;br&gt;+ Running base&amp;#39;s installer&lt;br&gt;+ module : base&lt;br&gt;+ Running fgs install mapserver-base&lt;br&gt;
* Probing last version of module &amp;#39;mapserver-base&amp;#39;... fgs-mapserver-base-5.2.1-linux-sparc64.tar.gz 5.2.1&lt;br&gt;+ Installing mapserver-base:&lt;br&gt;  /opt/fgs/tmp/fgs-1257844994-11561.tmp+ Getting and extracting module &amp;#39;mapserver-base&amp;#39;... &lt;br&gt;
! Cannot find file &amp;#39;5.2.1/fgs-mapserver-base-fgs-mapserver-base-5.2.1-linux-sparc64.tar.gz-linux-i386.tar.gz&amp;#39;, aborting...&lt;br&gt;&lt;br&gt;
It seems that somewhere else is still using &amp;#39;i386&amp;#39; and the file name shown in the last line &amp;#39;! Cannot find file ...&amp;#39; looks totally wrong. Please have a look. Thank you.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 4:58 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26280568&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;div&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Norm,&lt;br&gt;
&lt;br&gt;
I did not change the CPU variable. Do you mean that I should modify install.sh file then rebuild self-installer? What output should I paste?&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Yes, please.  You can paste the output of the installation execution.&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26280568&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26280568.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26269201</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-09T07:58:22Z</published>
	<updated>2009-11-09T07:58:22Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;br&gt;&amp;gt; Hi Norm,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I did not change the CPU variable. Do you mean that I should modify 
&lt;br&gt;&amp;gt; install.sh file then rebuild self-installer? What output should I paste?
&lt;br&gt;&amp;gt;
&lt;br&gt;Yes, please. &amp;nbsp;You can paste the output of the installation execution.
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269201&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26269201.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26268996</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-09T07:42:10Z</published>
	<updated>2009-11-09T07:42:10Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;I did not change the CPU variable. Do you mean that I should modify install.sh file then rebuild self-installer? What output should I paste?&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 6, 2009 at 3:45 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26268996&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I start to install the self-installer I created (fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin), but it encounters such fatal error:&lt;br&gt;
&lt;br&gt;
[... ...]&lt;br&gt;
+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.SCxSFA...ok&lt;br&gt;
+ Running base&amp;#39;s installer&lt;br&gt;
+ module : base&lt;br&gt;
+ Running fgs install mapserver-base&lt;br&gt;
* Probing last version of module &amp;#39;mapserver-base&amp;#39;...&lt;br&gt;
&lt;br&gt;
! Cannot find a mapserver-base module from /tmp/fgs-selfextract.SCxSFA&lt;br&gt;
&lt;br&gt;
! Fatal error, please contact FGS team.&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
It is probably related to the get_last_module_version() function.  I don&amp;#39;t remember if you change the CPU variable.  Could you edit /fgs-dev/pkg_def/base/skeleton/etc/fgs/lib/install.sh and add an echo at the location marked below and paste the output?  You&amp;#39;ll have to redo your installer.&lt;br&gt;

&lt;br&gt;
Norm&lt;br&gt;
&lt;br&gt;
get_last_module_version ()&lt;br&gt;
{&lt;br&gt;
   local FILES_SRC=$1&lt;br&gt;
   local MODULE_NAME=$2&lt;br&gt;
&lt;br&gt;
   # uname -i doesn&amp;#39;t return the same things depending on the linux distributi\&lt;br&gt;
on...                                                                           &lt;br&gt;
   #local CPU=`uname -i`                                                         #[ $CPU = &amp;#39;GenuineIntel&amp;#39; ] &amp;amp;&amp;amp; CPU=&amp;#39;i386&amp;#39;                                      local CPU=&amp;#39;i386&amp;#39;&lt;br&gt;
   local FGS_PLATFORM=&amp;quot;`uname -s | tr [A-Z] [a-z]`-$CPU&amp;quot;&lt;br&gt;
&lt;br&gt;
   if [ `echo $FILES_SRC | grep -c &amp;#39;http://&amp;#39;` -eq 1 ] ; then&lt;br&gt;
       return 1&lt;br&gt;
   # not yet implemented                                                  &lt;br&gt;
       is_wget_installed&lt;br&gt;
       local list_modules=&amp;quot;$FGS_HOME/tmp/list_modules.$$.tmp&amp;quot;&lt;br&gt;
       wget -q $FILES_SRC/ -O - 1&amp;gt; $list_modules 2&amp;gt;/dev/null&lt;br&gt;
       if [ &amp;quot;$?&amp;quot; -ne 0 ] ; then&lt;br&gt;
           rm -f $list_modules&lt;br&gt;
           fatal_error &amp;quot;Cannot download &amp;#39;$FILES_SRC/$FILE_NAME&amp;#39;, aborting...&amp;quot;&lt;br&gt;
       fi&lt;br&gt;
   else&lt;br&gt;
       ## From path (cdrom, dvd, etc...)                                             [ -d $FILES_SRC ] || fatal_error &amp;quot;Unable to find directory &amp;#39;$FILES_SRC&amp;#39;\&lt;br&gt;
, aborting...&amp;quot;&lt;br&gt;
       cd $FILES_SRC&lt;br&gt;
   fgs_package=`ls -1 fgs-$MODULE_NAME-*-$FGS_PLATFORM.tar.gz 2&amp;gt;/dev/null \&lt;br&gt;
| tail -n 1`&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;echo $fgs_package&lt;br&gt;
&lt;br&gt;
       leftsubstring=fgs-${MODULE_NAME}-&lt;br&gt;
       resultingstring=${fgs_package#$leftsubstring}&lt;br&gt;
       rightsubstring=-${FGS_PLATFORM}.tar.gz&lt;br&gt;
   finalstring=${resultingstring%$rightsubstring}&lt;br&gt;
       echo $finalstring&lt;br&gt;
       [ $? -ne 0 ] &amp;amp;&amp;amp; fatal_error &amp;quot;Unable to find module for &amp;#39;$MODULE_NAME&amp;#39; i\&lt;br&gt;
n $FILES_SRC&amp;quot;&lt;br&gt;
   fi&lt;br&gt;
   return 0&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26268996&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26268996.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26233544</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-06T06:45:18Z</published>
	<updated>2009-11-06T06:45:18Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I start to install the self-installer I created 
&lt;br&gt;&amp;gt; (fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin), but it encounters 
&lt;br&gt;&amp;gt; such fatal error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [... ...]
&lt;br&gt;&amp;gt; + Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.SCxSFA...ok
&lt;br&gt;&amp;gt; + Running base's installer
&lt;br&gt;&amp;gt; + module : base
&lt;br&gt;&amp;gt; + Running fgs install mapserver-base
&lt;br&gt;&amp;gt; * Probing last version of module 'mapserver-base'...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ! Cannot find a mapserver-base module from /tmp/fgs-selfextract.SCxSFA
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ! Fatal error, please contact FGS team.
&lt;br&gt;&amp;gt;
&lt;/div&gt;Hao,
&lt;br&gt;&lt;br&gt;It is probably related to the get_last_module_version() function. &amp;nbsp;I 
&lt;br&gt;don't remember if you change the CPU variable. &amp;nbsp;Could you edit 
&lt;br&gt;/fgs-dev/pkg_def/base/skeleton/etc/fgs/lib/install.sh and add an echo at 
&lt;br&gt;the location marked below and paste the output? &amp;nbsp;You'll have to redo 
&lt;br&gt;your installer.
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;get_last_module_version ()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; local FILES_SRC=$1
&lt;br&gt;&amp;nbsp; &amp;nbsp; local MODULE_NAME=$2
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; # uname -i doesn't return the same things depending on the linux 
&lt;br&gt;distributi\
&lt;br&gt;on... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; #local CPU=`uname 
&lt;br&gt;-i` &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; #[ $CPU = 'GenuineIntel' ] &amp;&amp; 
&lt;br&gt;CPU='i386' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; local CPU='i386'
&lt;br&gt;&amp;nbsp; &amp;nbsp; local FGS_PLATFORM=&amp;quot;`uname -s | tr [A-Z] [a-z]`-$CPU&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if [ `echo $FILES_SRC | grep -c '&lt;a href=&quot;http://'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://'&lt;/a&gt;` -eq 1 ] ; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 1
&lt;br&gt;&amp;nbsp; &amp;nbsp; # not yet implemented &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is_wget_installed
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local list_modules=&amp;quot;$FGS_HOME/tmp/list_modules.$$.tmp&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wget -q $FILES_SRC/ -O - 1&amp;gt; $list_modules 2&amp;gt;/dev/null
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [ &amp;quot;$?&amp;quot; -ne 0 ] ; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rm -f $list_modules
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fatal_error &amp;quot;Cannot download '$FILES_SRC/$FILE_NAME', 
&lt;br&gt;aborting...&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fi
&lt;br&gt;&amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ## From path (cdrom, dvd, 
&lt;br&gt;etc...) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ -d $FILES_SRC ] || fatal_error &amp;quot;Unable to find directory 
&lt;br&gt;'$FILES_SRC'\
&lt;br&gt;, aborting...&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cd $FILES_SRC
&lt;br&gt;&amp;nbsp; &amp;nbsp; fgs_package=`ls -1 fgs-$MODULE_NAME-*-$FGS_PLATFORM.tar.gz 2&amp;gt;/dev/null \
&lt;br&gt;| tail -n 1`
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;echo $fgs_package
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; leftsubstring=fgs-${MODULE_NAME}-
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resultingstring=${fgs_package#$leftsubstring}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rightsubstring=-${FGS_PLATFORM}.tar.gz
&lt;br&gt;&amp;nbsp; &amp;nbsp; finalstring=${resultingstring%$rightsubstring}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo $finalstring
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ $? -ne 0 ] &amp;&amp; fatal_error &amp;quot;Unable to find module for 
&lt;br&gt;'$MODULE_NAME' i\
&lt;br&gt;n $FILES_SRC&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; fi
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 0
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26233544&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26233544.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26232849</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-06T06:10:18Z</published>
	<updated>2009-11-06T06:10:18Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao,
&lt;br&gt;&lt;br&gt;Thank you. &amp;nbsp;Answer in line.
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;Hao Zhang wrote:
&lt;br&gt;&amp;gt; Sure. The error messages when building MapSever 5.4.2 looks like: 
&lt;br&gt;&amp;gt; (sorry, it is quite a lot)
&lt;br&gt;&amp;gt;
&lt;br&gt;One of our MapServer developer will test that.
&lt;br&gt;&lt;br&gt;&amp;gt; Regarding Ming, I have successfully buit ming-0.4.2 on the target 
&lt;br&gt;&amp;gt; sparc64 machine without any error. But I failed to compile Ming (any 
&lt;br&gt;&amp;gt; version) on my i686 32bit work machine, however, it does not matter, 
&lt;br&gt;&amp;gt; it is just for a test try.
&lt;br&gt;I'll test that.
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232849&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26232849.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26232848</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-06T05:59:46Z</published>
	<updated>2009-11-06T05:59:46Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao,
&lt;br&gt;&lt;br&gt;Thank you for taking the time to explain to me. &amp;nbsp;I'll thing of something 
&lt;br&gt;to overcome the issue unless you have a suggestion...
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Norm,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry for my late feedback. The day before yesterday, I finally built 
&lt;br&gt;&amp;gt; FGS self-installer from source successfully (with name 
&lt;br&gt;&amp;gt; &amp;quot;fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&amp;quot;). Thank you very 
&lt;br&gt;&amp;gt; much for your help all the time.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, I don't think the last error &amp;quot;Conflicting version ...&amp;quot; has 
&lt;br&gt;&amp;gt; anything to do with other module/lib uses another version of curl 
&lt;br&gt;&amp;gt; somewhere. The outcome of running &amp;quot;fgsdev dump_modules_for_dep 
&lt;br&gt;&amp;gt; curl-lib mapserver-php&amp;quot; is:
&lt;br&gt;&amp;gt; Actual version of the target dependency: &amp;nbsp;curl-lib:7.19.4
&lt;br&gt;&amp;gt; gdal-base curl-lib:7.19.4
&lt;br&gt;&amp;gt; mapserver-php curl-lib:7.19.4
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The cause of the error is that in the list of modules I provide in 
&lt;br&gt;&amp;gt; command &amp;quot;build_si&amp;quot; contain several modules that depend on the same 
&lt;br&gt;&amp;gt; module, e.g. &amp;quot;apache_mod_ssl-module&amp;quot; &amp;quot;gdal-base&amp;quot; both depend on 
&lt;br&gt;&amp;gt; curl-lib. If I give them three in an order such as &amp;quot;fgsdev 
&lt;br&gt;&amp;gt; list_modules_dep apache_mod_ssl-module curl-lib gdal-base&amp;quot;, it will 
&lt;br&gt;&amp;gt; reproduce the same error. I found out this is related to the behavior 
&lt;br&gt;&amp;gt; of function 'get_dep' in script fgs-dev/bin/lib/list_module_dep.sh. In 
&lt;br&gt;&amp;gt; this function, it will loop call itself in order to get all depended 
&lt;br&gt;&amp;gt; modules for the given module as well as all its required modules in 
&lt;br&gt;&amp;gt; required.list. This behavior will in some case cause line &amp;quot;if [ &amp;quot;`grep 
&lt;br&gt;&amp;gt; ^$dep_name: $LIST_FILE`&amp;quot; != &amp;quot;$dep&amp;quot; ] ; then&amp;quot; return true and exit with 
&lt;br&gt;&amp;gt; &amp;quot;! Conflicting version ...&amp;quot;. After function 'get_dep' goes through 
&lt;br&gt;&amp;gt; &amp;quot;apache_mod_ssl-module&amp;quot; and &amp;quot;curl-lib&amp;quot;, there will be two duplicated 
&lt;br&gt;&amp;gt; lines 'curl-lib:7.19.4' in the $LIST_FILE. Thus, when function 
&lt;br&gt;&amp;gt; 'get_dep' &amp;nbsp;works on &amp;quot;gdal-base&amp;quot;, line &amp;quot;if [ &amp;quot;`grep ^$dep_name: 
&lt;br&gt;&amp;gt; $LIST_FILE`&amp;quot; != &amp;quot;$dep&amp;quot; ] ; then&amp;quot; returns true and exit. However, the 
&lt;br&gt;&amp;gt; order of module list also matters, e.g. &amp;quot;fgsdev list_modules_dep 
&lt;br&gt;&amp;gt; curl-lib apache_mod_ssl-module gdal-base&amp;quot; will work well.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I changed list of modules I provide in command &amp;quot;build_si&amp;quot; to avoid 
&lt;br&gt;&amp;gt; multiple dependances among them but cover all necessary modules for 
&lt;br&gt;&amp;gt; installer. Then it successfully built the self-installer. Command I 
&lt;br&gt;&amp;gt; run looks like:
&lt;br&gt;&amp;gt; fgsdev build_si mapserver_basic_5.2.1 1.0.1 mapserver-base 
&lt;br&gt;&amp;gt; mapserver-php apache_mod_ssl-module freetds-lib gdal_python-module 
&lt;br&gt;&amp;gt; gettext-base libxslt-lib ming-lib postgis-lib postgresql-server 
&lt;br&gt;&amp;gt; python_mapscript-module sablotron-base php_curl-module php_ftp-module 
&lt;br&gt;&amp;gt; php_gettext-module php_mssql-module php_odbc-module php_ogr-module 
&lt;br&gt;&amp;gt; php_pgsql-module php_wddx-module php_xmlrpc-module php_xsl-module
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232848&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26232848.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26232432</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-06T05:37:51Z</published>
	<updated>2009-11-06T05:37:51Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;I start to install the self-installer I created (fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin), but it encounters such fatal error:&lt;br&gt;&lt;br&gt;[... ...]&lt;br&gt;+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.SCxSFA...ok&lt;br&gt;
+ Running base&amp;#39;s installer&lt;br&gt;+ module : base&lt;br&gt;+ Running fgs install mapserver-base&lt;br&gt;* Probing last version of module &amp;#39;mapserver-base&amp;#39;... &lt;br&gt;&lt;br&gt;! Cannot find a mapserver-base module from /tmp/fgs-selfextract.SCxSFA&lt;br&gt;
&lt;br&gt;! Fatal error, please contact FGS team.&lt;br&gt;&lt;br&gt;&lt;br&gt;cat fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.modules file looks like:&lt;br&gt;&lt;br&gt;fgs-base.tar.gz&lt;br&gt;fgs-mapserver-base-5.2.1-linux-sparc64.tar.gz&lt;br&gt;fgs-libstdc++-lib-6.0.10-linux-sparc64.tar.gz&lt;br&gt;
fgs-libgcc-lib-1-linux-sparc64.tar.gz&lt;br&gt;fgs-apache-base-2.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-expat-base-2.0.1-linux-sparc64.tar.gz&lt;br&gt;fgs-gd-lib-2.0.35-linux-sparc64.tar.gz&lt;br&gt;fgs-jpeg-lib-6b-linux-sparc64.tar.gz&lt;br&gt;fgs-freetype-lib-2.3.9-linux-sparc64.tar.gz&lt;br&gt;
fgs-libpng-lib-1.2.35-linux-sparc64.tar.gz&lt;br&gt;fgs-zlib-lib-1.2.3-linux-sparc64.tar.gz&lt;br&gt;fgs-curl-lib-7.19.4-linux-sparc64.tar.gz&lt;br&gt;fgs-openssl-lib-0.9.8k-linux-sparc64.tar.gz&lt;br&gt;fgs-proj-lib-4.6.1-linux-sparc64.tar.gz&lt;br&gt;
fgs-postgresql-lib-8.3.7-linux-sparc64.tar.gz&lt;br&gt;fgs-gdal-base-1.6.1-linux-sparc64.tar.gz&lt;br&gt;fgs-tiff-lib-3.8.2-linux-sparc64.tar.gz&lt;br&gt;fgs-libgeotiff-lib-1.2.5-linux-sparc64.tar.gz&lt;br&gt;fgs-xerces_c-base-3.0.1-linux-sparc64.tar.gz&lt;br&gt;
fgs-unixODBC-base-2.2.12-linux-sparc64.tar.gz&lt;br&gt;fgs-libungif-base-4.1.4-linux-sparc64.tar.gz&lt;br&gt;fgs-libiconv-base-1.12-linux-sparc64.tar.gz&lt;br&gt;fgs-proj4_epsg42xxx-support-proj-linux-sparc64.tar.gz&lt;br&gt;fgs-geos-lib-3.1.0-linux-sparc64.tar.gz&lt;br&gt;
fgs-libxml2-base-2.7.3-linux-sparc64.tar.gz&lt;br&gt;fgs-agg-lib-2.4-linux-sparc64.tar.gz&lt;br&gt;fgs-mapserver-php-5.2.1-linux-sparc64.tar.gz&lt;br&gt;fgs-php-base-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-apache_mod_ssl-module-2.2.11-linux-sparc64.tar.gz&lt;br&gt;
fgs-freetds-lib-0.82-linux-sparc64.tar.gz&lt;br&gt;fgs-gdal_python-module-1.6.1-linux-sparc64.tar.gz&lt;br&gt;fgs-python-base-2.5.2-linux-sparc64.tar.gz&lt;br&gt;fgs-gettext-base-0.17-linux-sparc64.tar.gz&lt;br&gt;fgs-libxslt-lib-1.1.24-linux-sparc64.tar.gz&lt;br&gt;
fgs-ming-lib-0.4.2-linux-sparc64.tar.gz&lt;br&gt;fgs-postgis-lib-1.3.5-linux-sparc64.tar.gz&lt;br&gt;fgs-postgresql-server-8.3.7-linux-sparc64.tar.gz&lt;br&gt;fgs-python_mapscript-module-5.2.1-linux-sparc64.tar.gz&lt;br&gt;fgs-sablotron-base-1.0.1-linux-sparc64.tar.gz&lt;br&gt;
fgs-php_curl-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-php_ftp-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-php_gettext-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-php_mssql-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-php_odbc-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;
fgs-php_ogr-module-1.1.1-linux-sparc64.tar.gz&lt;br&gt;fgs-php_pgsql-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-php_wddx-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-php_xmlrpc-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;fgs-php_xsl-module-5.2.11-linux-sparc64.tar.gz&lt;br&gt;
&lt;br&gt;What could be wrong?&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232432&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26232432.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26232203</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-06T05:20:32Z</published>
	<updated>2009-11-06T05:20:32Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;Sure. The error messages when building MapSever 5.4.2 looks like: (sorry, it is quite a lot)&lt;br&gt;&lt;br&gt;cd mapscript/php3; make; cd ../..&lt;br&gt;make[1]: Entering directory `/home/FGS/fgs-dev/src/mapserver-5.4.2/mapscript/php3&amp;#39;&lt;br&gt;
gcc -fPIC -O2 -fPIC -Wall    -DCOMPILE_DL=1 -DPHP4 -DNEED_NONBLOCKING_STDERR     -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MING_FLASH   -DUSE_POSTGIS  -DUSE_GDAL -DUSE_OGR -DUSE_GEOS   -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/home/FGS/fgs-dev/src/mapserver-5.4.2   -I/home/FGS/fgs-dev/built/libxml2/include/libxml2 -I/home/FGS/fgs-dev/built/libiconv/include -I/home/FGS/fgs-dev/built/curl/include -I/home/FGS/fgs-dev/built/ming/include   -I/home/FGS/fgs-dev/built/postgresql/include  -I/home/FGS/fgs-dev/built/gdal/include -I/home/FGS/fgs-dev/built/geos/include  -I/home/FGS/fgs-dev/built/proj/include -I/home/FGS/fgs-dev/built/libpng/include -I/home/FGS/fgs-dev/built/agg/include -I/home/FGS/fgs-dev/built/freetype/include/freetype2 -I/home/FGS/fgs-dev/built/freetype/include  -I/home/FGS/fgs-dev/built/gd//include -I/home/FGS/fgs-dev/built/libiconv//include -I/home/FGS/fgs-dev/built/zlib/include  -I/home/FGS/fgs-dev/built/php/include/php/ -I/home/FGS/fgs-dev/built/php/include/php//dl -I/home/FGS/fgs-dev/built/php/include/php//main -I/home/FGS/fgs-dev/built/php/include/php//Zend -I/home/FGS/fgs-dev/built/php/include/php//include -I/home/FGS/fgs-dev/built/php/include/php//TSRM  -I -c -o php_mapscript_util.o php_mapscript_util.c&lt;br&gt;
/usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start&amp;#39;:&lt;br&gt;(.text+0x10): undefined reference to `main&amp;#39;&lt;br&gt;/usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start&amp;#39;:&lt;br&gt;
(.text+0x1c): undefined reference to `main&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_php_extract_associative_array&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x20): undefined reference to `zend_hash_internal_pointer_reset_ex&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x6c): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xdc): undefined reference to `zend_hash_get_current_key_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x118): undefined reference to `zend_hash_move_forward_ex&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x128): undefined reference to `zend_hash_get_current_data_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x168): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x1e4): undefined reference to `_convert_to_string&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x1f4): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x214): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_object_init&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x248): undefined reference to `_object_init_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x264): undefined reference to `add_property_resource_ex&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_add_property_object&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x298): undefined reference to `add_property_zval_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x2dc): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_fetch_property_resource&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x318): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x350): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x3b0): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x3d0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_fetch_property_string&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x408): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x44c): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x480): undefined reference to `_convert_to_string&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x4c8): undefined reference to `zend_error&amp;#39;&lt;br&gt;
/tmp/cc5eP7aS.o: In function `_phpms_set_property_double&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x524): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x56c): undefined reference to `_emalloc&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x5f8): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x608): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x624): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x650): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_set_property_long&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x6a8): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x6f0): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x778): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x788): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x7a4): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x7d0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_set_property_null&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x828): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x870): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x8ec): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x8fc): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x918): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x944): undefined reference to `zend_error&amp;#39;&lt;br&gt;
/tmp/cc5eP7aS.o: In function `_phpms_set_property_string&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x99c): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x9e4): undefined reference to `_emalloc&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xa70): undefined reference to `_estrndup&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xab4): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xac4): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xae0): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xb0c): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_fetch_property_double&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0xb44): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xb8c): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xbc4): undefined reference to `convert_to_double&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xbec): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_fetch_property_long&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xc28): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xc60): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xc88): undefined reference to `convert_to_long&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xcb4): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xce0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_fetch_property_handle2&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xd38): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xd7c): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xd8c): undefined reference to `_zend_list_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xdd0): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xdfc): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_fetch_handle2&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xe68): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xe84): undefined reference to `_zend_list_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xeb8): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xed4): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xef0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/cc5eP7aS.o: In function `_phpms_report_mapserver_error&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xf28): undefined reference to `msGetErrorObj&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xf70): undefined reference to `zend_error&amp;#39;&lt;br&gt;collect2: ld returned 1 exit status&lt;br&gt;make[1]: *** [php_mapscript_util.o] Error 1&lt;br&gt;make[1]: Leaving directory `/home/FGS/fgs-dev/src/mapserver-5.4.2/mapscript/php3&amp;#39;&lt;br&gt;
cd mapscript/php3; make; cd ../..&lt;br&gt;make[1]: Entering directory `/home/FGS/fgs-dev/src/mapserver-5.4.2/mapscript/php3&amp;#39;&lt;br&gt;gcc -fPIC -O2 -fPIC -Wall    -DCOMPILE_DL=1 -DPHP4 -DNEED_NONBLOCKING_STDERR     -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MING_FLASH   -DUSE_POSTGIS  -DUSE_GDAL -DUSE_OGR -DUSE_GEOS   -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/home/FGS/fgs-dev/src/mapserver-5.4.2   -I/home/FGS/fgs-dev/built/libxml2/include/libxml2 -I/home/FGS/fgs-dev/built/libiconv/include -I/home/FGS/fgs-dev/built/curl/include -I/home/FGS/fgs-dev/built/ming/include   -I/home/FGS/fgs-dev/built/postgresql/include  -I/home/FGS/fgs-dev/built/gdal/include -I/home/FGS/fgs-dev/built/geos/include  -I/home/FGS/fgs-dev/built/proj/include -I/home/FGS/fgs-dev/built/libpng/include -I/home/FGS/fgs-dev/built/agg/include -I/home/FGS/fgs-dev/built/freetype/include/freetype2 -I/home/FGS/fgs-dev/built/freetype/include  -I/home/FGS/fgs-dev/built/gd//include -I/home/FGS/fgs-dev/built/libiconv//include -I/home/FGS/fgs-dev/built/zlib/include  -I/home/FGS/fgs-dev/built/php/include/php/ -I/home/FGS/fgs-dev/built/php/include/php//dl -I/home/FGS/fgs-dev/built/php/include/php//main -I/home/FGS/fgs-dev/built/php/include/php//Zend -I/home/FGS/fgs-dev/built/php/include/php//include -I/home/FGS/fgs-dev/built/php/include/php//TSRM  -I -c -o php_mapscript_util.o php_mapscript_util.c&lt;br&gt;
/usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start&amp;#39;:&lt;br&gt;(.text+0x10): undefined reference to `main&amp;#39;&lt;br&gt;/usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start&amp;#39;:&lt;br&gt;
(.text+0x1c): undefined reference to `main&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_php_extract_associative_array&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x20): undefined reference to `zend_hash_internal_pointer_reset_ex&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x6c): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xdc): undefined reference to `zend_hash_get_current_key_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x118): undefined reference to `zend_hash_move_forward_ex&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x128): undefined reference to `zend_hash_get_current_data_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x168): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x1e4): undefined reference to `_convert_to_string&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x1f4): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x214): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_object_init&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x248): undefined reference to `_object_init_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x264): undefined reference to `add_property_resource_ex&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_add_property_object&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x298): undefined reference to `add_property_zval_ex&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x2dc): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_fetch_property_resource&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x318): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x350): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x3b0): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x3d0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_fetch_property_string&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x408): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x44c): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x480): undefined reference to `_convert_to_string&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x4c8): undefined reference to `zend_error&amp;#39;&lt;br&gt;
/tmp/ccfByHlx.o: In function `_phpms_set_property_double&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x524): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x56c): undefined reference to `_emalloc&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x5f8): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x608): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x624): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x650): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_set_property_long&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x6a8): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x6f0): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x778): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x788): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x7a4): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x7d0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_set_property_null&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0x828): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x870): undefined reference to `_emalloc&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x8ec): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0x8fc): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x918): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x944): undefined reference to `zend_error&amp;#39;&lt;br&gt;
/tmp/ccfByHlx.o: In function `_phpms_set_property_string&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0x99c): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0x9e4): undefined reference to `_emalloc&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xa70): undefined reference to `_estrndup&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xab4): undefined reference to `_zval_dtor_func&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xac4): undefined reference to `_zval_copy_ctor_func&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xae0): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xb0c): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_fetch_property_double&amp;#39;:&lt;br&gt;
php_mapscript_util.c:(.text+0xb44): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xb8c): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xbc4): undefined reference to `convert_to_double&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xbec): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_fetch_property_long&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xc28): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xc60): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xc88): undefined reference to `convert_to_long&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xcb4): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xce0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_fetch_property_handle2&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xd38): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xd7c): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xd8c): undefined reference to `_zend_list_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xdd0): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xdfc): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_fetch_handle2&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xe68): undefined reference to `zend_hash_find&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xe84): undefined reference to `_zend_list_find&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xeb8): undefined reference to `zend_error&amp;#39;&lt;br&gt;php_mapscript_util.c:(.text+0xed4): undefined reference to `zend_error&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xef0): undefined reference to `zend_error&amp;#39;&lt;br&gt;/tmp/ccfByHlx.o: In function `_phpms_report_mapserver_error&amp;#39;:&lt;br&gt;php_mapscript_util.c:(.text+0xf28): undefined reference to `msGetErrorObj&amp;#39;&lt;br&gt;
php_mapscript_util.c:(.text+0xf70): undefined reference to `zend_error&amp;#39;&lt;br&gt;collect2: ld returned 1 exit status&lt;br&gt;make[1]: *** [php_mapscript_util.o] Error 1&lt;br&gt;make[1]: Leaving directory `/home/FGS/fgs-dev/src/mapserver-5.4.2/mapscript/php3&amp;#39;&lt;br&gt;
cp shp2img shp2pdf legend mapserv shptree shptreevis shptreetst scalebar sortshp mapscriptvars tile4ms msencrypt mapserver-config /home/FGS/fgs-dev/built/mapserver/bin&lt;br&gt;if test -x libmapserver.so ; then \&lt;br&gt;      cp &lt;a href=&quot;http://libmapserver.5.4.2.so&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;libmapserver.5.4.2.so&lt;/a&gt; /home/FGS/fgs-dev/built/mapserver/lib ; \&lt;br&gt;
      (cd /home/FGS/fgs-dev/built/mapserver/lib ; ln -f -s &lt;a href=&quot;http://libmapserver.5.4.2.so&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;libmapserver.5.4.2.so&lt;/a&gt; libmapserver.so ) ; \&lt;br&gt;    fi&lt;br&gt;+ Creating new package in /home/FGS/fgs-dev/modules/mapserver-base.&lt;br&gt;
+ Copying skeleton from /home/FGS/fgs-dev/pkg_def/mapserver/base.skeleton to /home/FGS/fgs-dev/modules/mapserver-base&lt;br&gt;+ Packaging mapserver-base to /home/FGS/fgs-dev/modules/fgs-mapserver-base-5.4.2-linux-sparc64.tar.gz...ok&lt;br&gt;
+ Creating new package in /home/FGS/fgs-dev/modules/mapserver-php.&lt;br&gt;+ Copying skeleton from /home/FGS/fgs-dev/pkg_def/mapserver/php.skeleton to /home/FGS/fgs-dev/modules/mapserver-php&lt;br&gt;cp: cannot stat `mapscript/php3/php_mapscript.so&amp;#39;: No such file or directory&lt;br&gt;
! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;&lt;br&gt;Regarding Ming, I have successfully buit ming-0.4.2 on the target sparc64 machine without any error. But I failed to compile Ming (any version) on my i686 32bit work machine, however, it does not matter, it is just for a test try.&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 4:27 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232203&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Then I started building mapserver 5.4.2, but when it came to compile in the directory mapscript/php3, it encountered a lot of &amp;quot;undefined reference to&amp;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.&lt;br&gt;

&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
We&amp;#39;re interested to know what are the error messages when you build MapServer 5.4.2.  Could you paste them here?&lt;br&gt;
&lt;br&gt;
By the way did you succeed to compile Ming?&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232203&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26232203.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26231976</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-06T05:07:37Z</published>
	<updated>2009-11-06T05:07:37Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;
Sorry for my late feedback. The day before yesterday, I finally built FGS
self-installer from source successfully (with name
&amp;quot;fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&amp;quot;). Thank you very much for your help all the time.&lt;br&gt;&lt;br&gt;However, I don&amp;#39;t think the last error &amp;quot;Conflicting version ...&amp;quot; has anything to do with other module/lib uses another version of curl somewhere. The outcome of running &amp;quot;fgsdev dump_modules_for_dep curl-lib mapserver-php&amp;quot; is:&lt;br&gt;
Actual version of the target dependency:  curl-lib:7.19.4&lt;br&gt;
gdal-base curl-lib:7.19.4&lt;br&gt;
mapserver-php curl-lib:7.19.4&lt;br&gt;&lt;br&gt;The cause of the error is that in the list of modules I provide in command &amp;quot;build_si&amp;quot; contain several modules that depend on the same module, e.g. &amp;quot;apache_mod_ssl-module&amp;quot; &amp;quot;gdal-base&amp;quot; both depend on curl-lib. If I give them three in an order such as &amp;quot;fgsdev list_modules_dep apache_mod_ssl-module curl-lib gdal-base&amp;quot;, it will reproduce the same error. I found out this is related to the behavior of function &amp;#39;get_dep&amp;#39; in script fgs-dev/bin/lib/list_module_dep.sh. In this function, it will loop call itself in order to get all depended modules for the given module as well as all its required modules in required.list. This behavior will in some case cause line &amp;quot;if [ &amp;quot;`grep ^$dep_name: $LIST_FILE`&amp;quot; != &amp;quot;$dep&amp;quot; ] ; then&amp;quot; return true and exit with &amp;quot;! Conflicting version ...&amp;quot;. After function &amp;#39;get_dep&amp;#39; goes through &amp;quot;apache_mod_ssl-module&amp;quot; and &amp;quot;curl-lib&amp;quot;, there will be two duplicated lines &amp;#39;curl-lib:7.19.4&amp;#39; in the $LIST_FILE. Thus, when function &amp;#39;get_dep&amp;#39;  works on &amp;quot;gdal-base&amp;quot;, line &amp;quot;if [ &amp;quot;`grep ^$dep_name: $LIST_FILE`&amp;quot; != &amp;quot;$dep&amp;quot; ] ; then&amp;quot; returns true and exit. However, the order of module list also matters, e.g. &amp;quot;fgsdev list_modules_dep curl-lib apache_mod_ssl-module gdal-base&amp;quot; will work well.&lt;br&gt;
&lt;br&gt;So I changed list of modules I provide in command &amp;quot;build_si&amp;quot; to avoid multiple dependances among them but cover all necessary modules for installer. Then it successfully built the self-installer. Command I run looks like:&lt;br&gt;
fgsdev build_si mapserver_basic_5.2.1 1.0.1 mapserver-base mapserver-php apache_mod_ssl-module freetds-lib gdal_python-module gettext-base libxslt-lib ming-lib postgis-lib postgresql-server python_mapscript-module sablotron-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&lt;br&gt;

&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 4:12 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231976&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Outcome:&lt;br&gt;
&lt;br&gt;
* Creating archive file containing all required FGS modules...&lt;br&gt;
+ Including base module... ok&lt;br&gt;
! Conflicting version for &amp;#39;curl-lib&amp;#39;: Another(s) package(s) request(s) &amp;#39;7.19.4&lt;br&gt;
7.19.4&amp;#39;&lt;br&gt;
! and &amp;#39;gdal-base&amp;#39; requests &amp;#39;7.19.4&amp;#39;, aborting.&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...&lt;br&gt;
* Creating self-extracting archive script&lt;br&gt;
* Self installer image created with success in &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&amp;#39;.&lt;br&gt;
* Versions info file is &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions&amp;#39;.&lt;br&gt;
&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
There is a module/lib or other that uses another version of curl somewhere.  Try:&lt;br&gt;
&lt;br&gt;
fgsdev dump_modules_for_dep curl-lib mapserver-php&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231976&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26231976.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26231561</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-06T04:38:15Z</published>
	<updated>2009-11-06T04:38:15Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt; &lt;br&gt;Thank you. That will be really helpful.&lt;br&gt;&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 3:51 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231561&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Sorry, I think I find the reason which is that I provide wrong module names to command &amp;#39;fgsdev build_si&amp;#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.&lt;br&gt;

&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
You&amp;#39;re right about this.  I took a note to add some examples in the Web page.&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231561&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26231561.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26198839</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-04T07:27:29Z</published>
	<updated>2009-11-04T07:27:29Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;br&gt;&amp;gt; Then I started building mapserver 5.4.2, but when it came to compile 
&lt;br&gt;&amp;gt; in the directory mapscript/php3, it encountered a lot of &amp;quot;undefined 
&lt;br&gt;&amp;gt; reference to&amp;quot; errors and aborted. Then I tried to build mapserver 
&lt;br&gt;&amp;gt; 5.2.1 instead and luckily it did not encounter any error and well built.
&lt;br&gt;&amp;gt;
&lt;br&gt;Hao,
&lt;br&gt;&lt;br&gt;We're interested to know what are the error messages when you build 
&lt;br&gt;MapServer 5.4.2. &amp;nbsp;Could you paste them here?
&lt;br&gt;&lt;br&gt;By the way did you succeed to compile Ming?
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198839&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26198839.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26198365</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-04T07:12:16Z</published>
	<updated>2009-11-04T07:12:16Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Outcome:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * Creating archive file containing all required FGS modules...
&lt;br&gt;&amp;gt; + Including base module... ok
&lt;br&gt;&amp;gt; ! Conflicting version for 'curl-lib': Another(s) package(s) request(s) 
&lt;br&gt;&amp;gt; '7.19.4
&lt;br&gt;&amp;gt; 7.19.4'
&lt;br&gt;&amp;gt; ! and 'gdal-base' requests '7.19.4', aborting.
&lt;br&gt;&amp;gt; ! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...
&lt;br&gt;&amp;gt; * Creating self-extracting archive script
&lt;br&gt;&amp;gt; * Self installer image created with success in 
&lt;br&gt;&amp;gt; '/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin'.
&lt;br&gt;&amp;gt; * Versions info file is 
&lt;br&gt;&amp;gt; '/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions'.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But the built curl-lib version is 7.19.4 
&lt;br&gt;&amp;gt; (fgs-curl-lib-7.19.4-linux-sparc64.tar.gz), why will it still complain?
&lt;br&gt;&amp;gt;
&lt;/div&gt;Hao,
&lt;br&gt;&lt;br&gt;There is a module/lib or other that uses another version of curl 
&lt;br&gt;somewhere. &amp;nbsp;Try:
&lt;br&gt;&lt;br&gt;fgsdev dump_modules_for_dep curl-lib mapserver-php
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198365&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26198365.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26198087</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-04T06:51:01Z</published>
	<updated>2009-11-04T06:51:01Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;br&gt;&amp;gt; Sorry, I think I find the reason which is that I provide wrong module 
&lt;br&gt;&amp;gt; names to command 'fgsdev build_si'. I thought the module name shoud be 
&lt;br&gt;&amp;gt; the *.tar.gz file name which was wrong. It could be better to give 
&lt;br&gt;&amp;gt; some example of how to use those fgsdev commands in the right way on 
&lt;br&gt;&amp;gt; the official webpage as well as fgsdev help output text.
&lt;br&gt;&amp;gt;
&lt;br&gt;Hao,
&lt;br&gt;&lt;br&gt;You're right about this. &amp;nbsp;I took a note to add some examples in the Web 
&lt;br&gt;page.
&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198087&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26198087.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26194660</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-04T03:11:08Z</published>
	<updated>2009-11-04T03:11:08Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;Now I have run the correct self-installer create command: (I have excluded &amp;#39;base&amp;#39; in the given module names, correct action?)&lt;br&gt;&lt;br&gt;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&lt;br&gt;
&lt;br&gt;Outcome:&lt;br&gt;&lt;br&gt;* Creating archive file containing all required FGS modules...&lt;br&gt;+ Including base module... ok&lt;br&gt;! Conflicting version for &amp;#39;curl-lib&amp;#39;: Another(s) package(s) request(s) &amp;#39;7.19.4&lt;br&gt;7.19.4&amp;#39;&lt;br&gt;
! and &amp;#39;gdal-base&amp;#39; requests &amp;#39;7.19.4&amp;#39;, aborting.&lt;br&gt;! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...&lt;br&gt;* Creating self-extracting archive script&lt;br&gt;* Self installer image created with success in &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&amp;#39;.&lt;br&gt;
* Versions info file is &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions&amp;#39;.&lt;br&gt;&lt;br&gt;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?&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 11:52 AM, Hao Zhang &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194660&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hao@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Norm,&lt;br&gt;&lt;br&gt;Sorry, I think I find the reason which is that I provide wrong module names to command &amp;#39;fgsdev build_si&amp;#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.&lt;br&gt;

&lt;br&gt;Regards,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Hao&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 11:34 AM, Hao Zhang &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194660&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hao@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Norm,&lt;br&gt;&lt;br&gt;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 &amp;quot;--enable-debug&amp;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.&lt;br&gt;




&lt;br&gt;Then I started building mapserver 5.4.2, but when it came to compile in the directory mapscript/php3, it encountered a lot of &amp;quot;undefined reference to&amp;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.&lt;br&gt;


&lt;br&gt;After mapserver 5.2.1 was built, I continued building python_mapscript module. But it encountered compile error such as:&lt;br&gt;[... ...]&lt;br&gt;+ Creating new package in /home/FGS/fgs-dev/modules/python_mapscript-module.&lt;br&gt;


+ Copying skeleton from /home/FGS/fgs-dev/pkg_def/python_mapscript/module.skeleton to /home/FGS/fgs-dev/modules/python_mapscript-module&lt;br&gt;cp: cannot stat `build/lib.linux-i686-2.5/_mapscript.so&amp;#39;: No such file or directory&lt;div&gt;

&lt;br&gt;
! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...&lt;br&gt;&lt;br&gt;&lt;/div&gt;I found the cause of this error is that in fgs-dev/pkg_def/python_mapscript/fgs_build file, &amp;quot;lib.linux-i686&amp;quot; is indicated. So command &amp;#39;cp build/lib.linux-i686-2.5/_mapscript.so&amp;#39; will fail because the correct directory should be &amp;#39;build/lib.linux-sparc64-2.5&amp;#39; which depends on my target sparc64 system. Thus, I modified this fgs_build file and python_mapscript module is well built.&lt;br&gt;


&lt;br&gt;After all these neccessary modules finally get built successfully, I start to run command &amp;quot;fgsdev build_si mapserver_basic_5.2.1 1.0.1 fgs-agg-lib-2.4-linux-sparc64.tar.gz _module_name_N_ ...&amp;quot; to build self installer containing all the modules needed. But at this time, I encounter the final error:&lt;br&gt;


&lt;br&gt;* Creating archive file containing all required FGS modules...&lt;br&gt;+ Including base module... ok&lt;br&gt;! Module &amp;#39;fgs-agg-lib-2.4-linux-sparc64.tar.gz&amp;#39; doesn&amp;#39;t have VERSION file &amp;#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&amp;#39; or maybe this is because the&lt;br&gt;


name of the module is wrong (verify in &amp;#39;/home/FGS/fgs-dev/modules&amp;#39;)&lt;br&gt;! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...&lt;br&gt;* Creating self-extracting archive script&lt;br&gt;&lt;br&gt;* Self installer image created with success in &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&amp;#39;.&lt;br&gt;


* Versions info file is &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions&amp;#39;.&lt;br&gt;&lt;br&gt;Could you help me to point out what could be the root cause of this error?&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Hao&lt;/font&gt;&lt;div&gt;

&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 3, 2009 at 4:12 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194660&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Installing PEAR environment:      /home/FGS/fgs-dev/built/php/lib/php/&lt;br&gt;
make[1]: *** [install-pear-installer] Segmentation fault&lt;br&gt;
make: *** [install-pear] Error 2&lt;br&gt;
! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
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:&lt;br&gt;
&lt;br&gt;
in fgs-dev/src/php_version/&lt;br&gt;
./fgs_build --debug&lt;br&gt;
./fgs_install&lt;br&gt;
&lt;br&gt;
or you could try to use PHP 5.3.0 to see if you meet the same issue.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mail-archive.com/php-bugs@lists.php.net/msg102985.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/php-bugs@.../msg102985.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194660&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26194660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26194492</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-04T02:52:37Z</published>
	<updated>2009-11-04T02:52:37Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;Sorry, I think I find the reason which is that I provide wrong module names to command &amp;#39;fgsdev build_si&amp;#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.&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 4, 2009 at 11:34 AM, Hao Zhang &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194492&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hao@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Norm,&lt;br&gt;&lt;br&gt;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 &amp;quot;--enable-debug&amp;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.&lt;br&gt;



&lt;br&gt;Then I started building mapserver 5.4.2, but when it came to compile in the directory mapscript/php3, it encountered a lot of &amp;quot;undefined reference to&amp;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.&lt;br&gt;

&lt;br&gt;After mapserver 5.2.1 was built, I continued building python_mapscript module. But it encountered compile error such as:&lt;br&gt;[... ...]&lt;br&gt;+ Creating new package in /home/FGS/fgs-dev/modules/python_mapscript-module.&lt;br&gt;

+ Copying skeleton from /home/FGS/fgs-dev/pkg_def/python_mapscript/module.skeleton to /home/FGS/fgs-dev/modules/python_mapscript-module&lt;br&gt;cp: cannot stat `build/lib.linux-i686-2.5/_mapscript.so&amp;#39;: No such file or directory&lt;div class=&quot;im&quot;&gt;
&lt;br&gt;
! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...&lt;br&gt;&lt;br&gt;&lt;/div&gt;I found the cause of this error is that in fgs-dev/pkg_def/python_mapscript/fgs_build file, &amp;quot;lib.linux-i686&amp;quot; is indicated. So command &amp;#39;cp build/lib.linux-i686-2.5/_mapscript.so&amp;#39; will fail because the correct directory should be &amp;#39;build/lib.linux-sparc64-2.5&amp;#39; which depends on my target sparc64 system. Thus, I modified this fgs_build file and python_mapscript module is well built.&lt;br&gt;

&lt;br&gt;After all these neccessary modules finally get built successfully, I start to run command &amp;quot;fgsdev build_si mapserver_basic_5.2.1 1.0.1 fgs-agg-lib-2.4-linux-sparc64.tar.gz _module_name_N_ ...&amp;quot; to build self installer containing all the modules needed. But at this time, I encounter the final error:&lt;br&gt;

&lt;br&gt;* Creating archive file containing all required FGS modules...&lt;br&gt;+ Including base module... ok&lt;br&gt;! Module &amp;#39;fgs-agg-lib-2.4-linux-sparc64.tar.gz&amp;#39; doesn&amp;#39;t have VERSION file &amp;#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&amp;#39; or maybe this is because the&lt;br&gt;

name of the module is wrong (verify in &amp;#39;/home/FGS/fgs-dev/modules&amp;#39;)&lt;br&gt;! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...&lt;br&gt;* Creating self-extracting archive script&lt;br&gt;&lt;br&gt;* Self installer image created with success in &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&amp;#39;.&lt;br&gt;

* Versions info file is &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions&amp;#39;.&lt;br&gt;&lt;br&gt;Could you help me to point out what could be the root cause of this error?&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Hao&lt;/font&gt;&lt;div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 3, 2009 at 4:12 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194492&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Installing PEAR environment:      /home/FGS/fgs-dev/built/php/lib/php/&lt;br&gt;
make[1]: *** [install-pear-installer] Segmentation fault&lt;br&gt;
make: *** [install-pear] Error 2&lt;br&gt;
! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
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:&lt;br&gt;
&lt;br&gt;
in fgs-dev/src/php_version/&lt;br&gt;
./fgs_build --debug&lt;br&gt;
./fgs_install&lt;br&gt;
&lt;br&gt;
or you could try to use PHP 5.3.0 to see if you meet the same issue.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mail-archive.com/php-bugs@lists.php.net/msg102985.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/php-bugs@.../msg102985.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194492&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26194492.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26194355</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-04T02:34:09Z</published>
	<updated>2009-11-04T02:34:09Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;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 &amp;quot;--enable-debug&amp;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.&lt;br&gt;


&lt;br&gt;Then I started building mapserver 5.4.2, but when it came to compile in the directory mapscript/php3, it encountered a lot of &amp;quot;undefined reference to&amp;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.&lt;br&gt;
&lt;br&gt;After mapserver 5.2.1 was built, I continued building python_mapscript module. But it encountered compile error such as:&lt;br&gt;[... ...]&lt;br&gt;+ Creating new package in /home/FGS/fgs-dev/modules/python_mapscript-module.&lt;br&gt;
+ Copying skeleton from /home/FGS/fgs-dev/pkg_def/python_mapscript/module.skeleton to /home/FGS/fgs-dev/modules/python_mapscript-module&lt;br&gt;cp: cannot stat `build/lib.linux-i686-2.5/_mapscript.so&amp;#39;: No such file or directory&lt;br&gt;
! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...&lt;br&gt;&lt;br&gt;I found the cause of this error is that in fgs-dev/pkg_def/python_mapscript/fgs_build file, &amp;quot;lib.linux-i686&amp;quot; is indicated. So command &amp;#39;cp build/lib.linux-i686-2.5/_mapscript.so&amp;#39; will fail because the correct directory should be &amp;#39;build/lib.linux-sparc64-2.5&amp;#39; which depends on my target sparc64 system. Thus, I modified this fgs_build file and python_mapscript module is well built.&lt;br&gt;
&lt;br&gt;After all these neccessary modules finally get built successfully, I start to run command &amp;quot;fgsdev build_si mapserver_basic_5.2.1 1.0.1 fgs-agg-lib-2.4-linux-sparc64.tar.gz _module_name_N_ ...&amp;quot; to build self installer containing all the modules needed. But at this time, I encounter the final error:&lt;br&gt;
&lt;br&gt;* Creating archive file containing all required FGS modules...&lt;br&gt;+ Including base module... ok&lt;br&gt;! Module &amp;#39;fgs-agg-lib-2.4-linux-sparc64.tar.gz&amp;#39; doesn&amp;#39;t have VERSION file &amp;#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&amp;#39; or maybe this is because the&lt;br&gt;
name of the module is wrong (verify in &amp;#39;/home/FGS/fgs-dev/modules&amp;#39;)&lt;br&gt;! /home/FGS/fgs-dev/bin/fgsdev: Fatal error returned, exiting...&lt;br&gt;* Creating self-extracting archive script&lt;br&gt;&lt;br&gt;* Self installer image created with success in &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin&amp;#39;.&lt;br&gt;
* Versions info file is &amp;#39;/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.versions&amp;#39;.&lt;br&gt;&lt;br&gt;Could you help me to point out what could be the root cause of this error?&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hao&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 3, 2009 at 4:12 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194355&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Installing PEAR environment:      /home/FGS/fgs-dev/built/php/lib/php/&lt;br&gt;
make[1]: *** [install-pear-installer] Segmentation fault&lt;br&gt;
make: *** [install-pear] Error 2&lt;br&gt;
! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
Hao,&lt;br&gt;
&lt;br&gt;
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:&lt;br&gt;
&lt;br&gt;
in fgs-dev/src/php_version/&lt;br&gt;
./fgs_build --debug&lt;br&gt;
./fgs_install&lt;br&gt;
&lt;br&gt;
or you could try to use PHP 5.3.0 to see if you meet the same issue.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mail-archive.com/php-bugs@lists.php.net/msg102985.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/php-bugs@.../msg102985.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26194355&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26194355.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26182010</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-03T07:12:02Z</published>
	<updated>2009-11-03T07:12:02Z</updated>
	<author>
		<name>nsavard</name>
	</author>
	<content type="html">Hao Zhang wrote:
&lt;br&gt;&amp;gt; Installing PEAR environment: &amp;nbsp; &amp;nbsp; &amp;nbsp;/home/FGS/fgs-dev/built/php/lib/php/
&lt;br&gt;&amp;gt; make[1]: *** [install-pear-installer] Segmentation fault
&lt;br&gt;&amp;gt; make: *** [install-pear] Error 2
&lt;br&gt;&amp;gt; ! ./fgs_install: Fatal error returned, exiting...
&lt;br&gt;&amp;gt; ! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...
&lt;br&gt;&amp;gt; ! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...
&lt;br&gt;&amp;gt;
&lt;br&gt;Hao,
&lt;br&gt;&lt;br&gt;I have never met such problem before but I found on google that it may 
&lt;br&gt;depend on the compiler or the php version. &amp;nbsp;To have a clue of what is 
&lt;br&gt;happening you could compile php in debug mode:
&lt;br&gt;&lt;br&gt;in fgs-dev/src/php_version/
&lt;br&gt;./fgs_build --debug
&lt;br&gt;./fgs_install
&lt;br&gt;&lt;br&gt;or you could try to use PHP 5.3.0 to see if you meet the same issue.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.mail-archive.com/php-bugs@lists.php.net/msg102985.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/php-bugs@.../msg102985.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Norm
&lt;br&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26182010&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26182010.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26177052</id>
	<title>Re: Starting apache error: httpd cannot execute binary file</title>
	<published>2009-11-03T01:00:53Z</published>
	<updated>2009-11-03T01:00:53Z</updated>
	<author>
		<name>Hao Zhang-4</name>
	</author>
	<content type="html">Hi Norm,&lt;br&gt;&lt;br&gt;gdal was successfuly built after I disabled mysql support. Then it came to build php 5.2.9 and I disabled mysql support as well. The build was complete but it encountered installing error after it. The building log looks like:&lt;br&gt;
&lt;br&gt;[... ...]&lt;br&gt;Build complete.&lt;br&gt;Don&amp;#39;t forget to run &amp;#39;make test&amp;#39;.&lt;br&gt;&lt;br&gt;Installing PHP SAPI module:       cgi&lt;br&gt;Installing PHP CGI binary:       /home/FGS/fgs-dev/built/php/bin/&lt;br&gt;Installing PHP CLI binary:        /home/FGS/fgs-dev/built/php/bin/&lt;br&gt;
Installing PHP CLI man page:  /home/FGS/fgs-dev/built/php/man/man1/&lt;br&gt;Installing shared extensions:     /home/FGS/fgs-dev/built/php/lib/php/extensions/no-debug-non-zts-20060613/&lt;br&gt;Installing build environment:    /home/FGS/fgs-dev/built/php/lib/php/build/&lt;br&gt;
Installing header files:              /home/FGS/fgs-dev/built/php/include/php/&lt;br&gt;Installing helper programs:       /home/FGS/fgs-dev/built/php/bin/&lt;br&gt;  program: phpize&lt;br&gt;  program: php-config&lt;br&gt;Installing man pages:               /home/FGS/fgs-dev/built/php/man/man1/&lt;br&gt;
  page: phpize.1&lt;br&gt;  page: php-config.1&lt;br&gt;Installing PEAR environment:      /home/FGS/fgs-dev/built/php/lib/php/&lt;br&gt;make[1]: *** [install-pear-installer] Segmentation fault&lt;br&gt;make: *** [install-pear] Error 2&lt;br&gt;! ./fgs_install: Fatal error returned, exiting...&lt;br&gt;
! /home/FGS/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...&lt;br&gt;! /home/FGS/fgs-dev/bin/fgs_build_all.sh: Fatal error returned, exiting...&lt;br&gt;&lt;br&gt;How to fix it?&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hao &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Mon, Nov 2, 2009 at 6:43 PM, Normand Savard &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26177052&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nsavard@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;Hao Zhang wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Should comment this line as well, right?&lt;br&gt;
OPTIONS=&amp;quot;$OPTIONS --with-mysql=$FGS_BUILD_HOME/$mysql_ARCHIVE_DIR/bin/mysql_config&amp;quot;&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;
You&amp;#39;re right. &lt;br&gt;
Norm&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Foss-gis-suite mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26177052&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Foss-gis-suite@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/foss-gis-suite&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-apache-error%3A-httpd-cannot-execute-binary-file-tp26081606p26177052.html" />
</entry>

</feed>
