Basically the similar steps as described in Quick Start Guide on Ubuntu 8.04.
- Install amp-dev (or webstack packages) on OpenSolaris (or Solaris production release), and install SunStudio and GNU autotools (JDS CBE toolset is recommended).
- Download the latest laconica archive file, and extract to
apache2/2.2/htdocs, and edit thehttpd.confto enable"AllowOverride All"for htdocs directory. - Edit config.php, setup mysql databases, configure fancy URL, as described in above document.
- Download sphinx-0.9.8.1 and apply this patch for sunstudio C++ compiler, build and install it as following,
- Use pecl(1) to install sphinx php extension, while you need export CC to SunStudio, otherwise, it would uses gcc even it's not in your $PATH. (Thanks to Sriram Natarajan for this tip, I used to download and build it manually.)
- Enable DNS and set it prior to NIS, otherwise email validation would fail.
$ export PATH=$PATH:/path/to/mysql/bin
$ ./configure; make; pfexec make install
$ cd api/libsphinxclient; ./configure LDFLAGS="-lsocket -lnsl"; \
> make; pfexec make install
$export CC=/opt/SUNWspro/bin/cc
$ pecl install sphinx
Please note that CoolStack is no more. It has been replaced by the same Web Stack from OpenSolaris, now ported and fully supported on both Solaris 10 and Red Hat (in addition of course to the primary platform of OpenSolaris itself). Available here:
http://www.sun.com/software/webstack/
Jyri, thanks so much for the hinting, just updated my post. And actually I installed webstack (1.4-b06) but logged with a wrong name :$
what is wrong in doing with pecl - even when it is compiling with gcc ?
Sriram, it's probably OK to use gcc in this case, since gcc has compatible ABI with SunStudio C compiler, while, I think the performance of SunStudio compilers is much better on SPARC. And once an extension module links to a C++ library compiled by SunStudio, we would have to use SunStudio then.
if you export CC in the command line pointing to sun studio compiler, then pecl will try to compile extensions with sun studio compiler.
Hi, Sriram, thanks for the tip!
Sweet!!!! I never would have gotten libsphinxclient to compile without your help! thanks a bunch! If you ever have a laconica question just sent it my way, im on identi.ca @foucault