<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Installing Sphinx on OS X for PHP</title>
	<atom:link href="http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-sphinx-on-os-x-for-php</link>
	<description></description>
	<lastBuildDate>Sat, 05 May 2012 21:49:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19827</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: htay khaing</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-11445</link>
		<dc:creator>htay khaing</dc:creator>
		<pubDate>Mon, 19 Mar 2012 06:08:42 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-11445</guid>
		<description>@Eric
Could you please take a look this error I got when i tried to run it on my localhost?
I got that error after step 4 make
4. Now install the extension:

cd ./sphinx-1.0.0
phpize
./configure --with-sphinx=/opt/sphinx
make

Error Trace :
Jias-Mac-mini:sphinx-1.1.0 khaing$ make
/bin/sh /Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/libtool --mode=compile cc  -I. -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -DPHP_ATOM_INC -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/include -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/main -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/sphinx/include  -DHAVE_CONFIG_H  -g -O2   -c /Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c -o sphinx.lo 
mkdir .libs
 cc -I. -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -DPHP_ATOM_INC -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/include -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/main -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/sphinx/include -DHAVE_CONFIG_H -g -O2 -c /Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c  -fno-common -DPIC -o .libs/sphinx.o
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function &#039;zim_SphinxClient_setRankingMode&#039;:
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c:772: error: too few arguments to function &#039;sphinx_set_ranking_mode&#039;
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function &#039;zim_SphinxClient_updateAttributes&#039;:
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c:1040: warning: passing argument 2 of &#039;__builtin___memset_chk&#039; makes integer from pointer without a cast
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c:1040: warning: passing argument 2 of &#039;__inline_memset_chk&#039; makes integer from pointer without a cast
make: *** [sphinx.lo] Error 1

Thank you for your help.
HK</description>
		<content:encoded><![CDATA[<p>@Eric<br />
Could you please take a look this error I got when i tried to run it on my localhost?<br />
I got that error after step 4 make<br />
4. Now install the extension:</p>
<p>cd ./sphinx-1.0.0<br />
phpize<br />
./configure &#8211;with-sphinx=/opt/sphinx<br />
make</p>
<p>Error Trace :<br />
Jias-Mac-mini:sphinx-1.1.0 khaing$ make<br />
/bin/sh /Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/libtool &#8211;mode=compile cc  -I. -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -DPHP_ATOM_INC -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/include -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/main -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/sphinx/include  -DHAVE_CONFIG_H  -g -O2   -c /Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c -o sphinx.lo<br />
mkdir .libs<br />
 cc -I. -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -DPHP_ATOM_INC -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/include -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/main -I/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/sphinx/include -DHAVE_CONFIG_H -g -O2 -c /Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c  -fno-common -DPIC -o .libs/sphinx.o<br />
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function &#8216;zim_SphinxClient_setRankingMode&#8217;:<br />
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c:772: error: too few arguments to function &#8216;sphinx_set_ranking_mode&#8217;<br />
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function &#8216;zim_SphinxClient_updateAttributes&#8217;:<br />
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c:1040: warning: passing argument 2 of &#8216;__builtin___memset_chk&#8217;makes integer from pointer without a cast<br />
/Users/khaing/hk/mydocuments/sphinx-1.1.0/sphinx-1.1.0/sphinx.c:1040: warning: passing argument 2 of &#8216;__inline_memset_chk&#8217;makes integer from pointer without a cast<br />
make: *** [sphinx.lo] Error 1</p>
<p>Thank you for your help.<br />
HK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David James</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-1035</link>
		<dc:creator>David James</dc:creator>
		<pubDate>Sun, 08 Jan 2012 15:27:30 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-1035</guid>
		<description>Your instructions are very easy to follow, however, the extension did not actually work for me because of wrong architecture (&quot;sphinx.so: mach-o ... wrong architecture&quot;). 

$ lipo -info sphinx.so 
$ Non-fat file: sphinx.so is architecture: x86_64
$ lipo -info php
$ Non-fat file: php is architecture: i386

To resolve this I had to add the following parameters to the ./configure command:

MACOSX_DEPLOYMENT_TARGET=10.6 
CFLAGS=&quot;-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp&quot; 
CCFLAGS=&quot;-arch i386 -arch x86_64 -g -Os -pipe&quot; 
CXXFLAGS=&quot;-arch i386 -arch x86_64 -g -Os -pipe&quot; 
LDFLAGS=&quot;-arch i386 -arch x86_64 -bind_at_load&quot; 

See http://www.activecollab.com/forums/post/32919/ for more information.</description>
		<content:encoded><![CDATA[<p>Your instructions are very easy to follow, however, the extension did not actually work for me because of wrong architecture (&#8220;sphinx.so: mach-o &#8230; wrong architecture&#8221;). </p>
<p>$ lipo -info sphinx.so<br />
$ Non-fat file: sphinx.so is architecture: x86_64<br />
$ lipo -info php<br />
$ Non-fat file: php is architecture: i386</p>
<p>To resolve this I had to add the following parameters to the ./configure command:</p>
<p>MACOSX_DEPLOYMENT_TARGET=10.6<br />
CFLAGS=&#8221;-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp&#8221;<br />
CCFLAGS=&#8221;-arch i386 -arch x86_64 -g -Os -pipe&#8221;<br />
CXXFLAGS=&#8221;-arch i386 -arch x86_64 -g -Os -pipe&#8221;<br />
LDFLAGS=&#8221;-arch i386 -arch x86_64 -bind_at_load&#8221; </p>
<p>See <a href="http://www.activecollab.com/forums/post/32919/" rel="nofollow">http://www.activecollab.com/forums/post/32919/</a> for more information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodney Rehm</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-1034</link>
		<dc:creator>Rodney Rehm</dc:creator>
		<pubDate>Wed, 22 Sep 2010 13:20:41 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-1034</guid>
		<description>If you&#039;re interested in Portfiles for sphinx, sphinx-client and php5-sphinx (PECL) for sphinx 1.10-beta, check out http://github.com/rodneyrehm/MacPorts/</description>
		<content:encoded><![CDATA[<p>If you&#8217;re interested in Portfiles for sphinx, sphinx-client and php5-sphinx (PECL) for sphinx 1.10-beta, check out <a href="http://github.com/rodneyrehm/MacPorts/" rel="nofollow">http://github.com/rodneyrehm/MacPorts/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Marden</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-1033</link>
		<dc:creator>Eric Marden</dc:creator>
		<pubDate>Mon, 31 May 2010 17:20:29 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-1033</guid>
		<description>I have put it on a live web server. Lucene&#039;s index is quite different from MySQL and Sphinx. If you can get it running Sphinx will be a lot easier to manage. Lucene, especially the Zend_Lucene implementation is slower and requires an entirely rethought approach. In other words, you can&#039;t apply Relational Database thinking to Lucene and expect to get very far. You&#039;ll run into weird issues with the index and with pulling results back.

Installing Sphinx on a VPS should be very straight forward, especially if you&#039;re on Debian or Ubuntu.</description>
		<content:encoded><![CDATA[<p>I have put it on a live web server. Lucene&#8217;s index is quite different from MySQL and Sphinx. If you can get it running Sphinx will be a lot easier to manage. Lucene, especially the Zend_Lucene implementation is slower and requires an entirely rethought approach. In other words, you can&#8217;t apply Relational Database thinking to Lucene and expect to get very far. You&#8217;ll run into weird issues with the index and with pulling results back.</p>
<p>Installing Sphinx on a VPS should be very straight forward, especially if you&#8217;re on Debian or Ubuntu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-1032</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 29 May 2010 18:05:36 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-1032</guid>
		<description>Nice tut, I have wanted to take sphinx for a test drive for ages, I have a search engine type app I have built as a means to learn php and it really needs a full index and search function, mysql is just to slow but fits the bill for now. Sphinx or lucene  fit the bill perfectly but look quite difficult to get to grips with. If I can use this and it works I don&#039;t think I&#039;ll bother trying the latter.

Out of interest, have you had to install sphinx on a live web server?

I noticed in cpanel there are some add-ons in PEAR for lucene and sphinx, you need root level access to the server to install, hence I haven&#039;t made the jump. My domain is not on a dedicated server or VPS as yet.</description>
		<content:encoded><![CDATA[<p>Nice tut, I have wanted to take sphinx for a test drive for ages, I have a search engine type app I have built as a means to learn php and it really needs a full index and search function, mysql is just to slow but fits the bill for now. Sphinx or lucene  fit the bill perfectly but look quite difficult to get to grips with. If I can use this and it works I don&#8217;t think I&#8217;ll bother trying the latter.</p>
<p>Out of interest, have you had to install sphinx on a live web server?</p>
<p>I noticed in cpanel there are some add-ons in PEAR for lucene and sphinx, you need root level access to the server to install, hence I haven&#8217;t made the jump. My domain is not on a dedicated server or VPS as yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shoan</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-1031</link>
		<dc:creator>Shoan</dc:creator>
		<pubDate>Mon, 10 Aug 2009 08:40:05 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-1031</guid>
		<description>Your article was really helpful. Initially, I wasn&#039;t able to compile the libsphinxclient because I used the sphinx source tarball downloaded by macports. After I downloaded the tarball from the sphinx website, all was well.</description>
		<content:encoded><![CDATA[<p>Your article was really helpful. Initially, I wasn&#8217;t able to compile the libsphinxclient because I used the sphinx source tarball downloaded by macports. After I downloaded the tarball from the sphinx website, all was well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Marden</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-1030</link>
		<dc:creator>Eric Marden</dc:creator>
		<pubDate>Thu, 02 Jul 2009 15:43:04 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-1030</guid>
		<description>My Pleasure. It was a bit tricky to figure out so I had to blog it for me and others.

Thanks,

- Eric Marden</description>
		<content:encoded><![CDATA[<p>My Pleasure. It was a bit tricky to figure out so I had to blog it for me and others.</p>
<p>Thanks,</p>
<p>- Eric Marden</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://xentek.net/articles/431/installing-sphinx-on-os-x-for-php/#comment-1029</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 02 Jul 2009 14:31:46 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=431#comment-1029</guid>
		<description>Awesome!  Thanks for the guide, this saved me a lot of trouble.</description>
		<content:encoded><![CDATA[<p>Awesome!  Thanks for the guide, this saved me a lot of trouble.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

