mxcl/homebrew — Issue #9462: Brew Versions Gives Incorrect SHA for 0.9.9 Version of Sphinx
Author: eddorre
Created: 2012-01-06 23:28:53+00:00
State: open

Trying to install a previous version of Sphinx; specifically 0.9.9.

Ran the following commands:

```
brew update
cd /usr/local
brew versions sphinx
```

Received the following output:

```
2.0.3 git checkout 8775400 /usr/local/Library/Formula/sphinx.rb
0.9.9 git checkout 2fe4579 /usr/local/Library/Formula/sphinx.rb
```
Then ran:

```
git checkout 2fe4579 /usr/local/Library/Formula/sphinx.rb
brew install sphinx
```

Received following error.

```
Error: This is a head-only formula; install with `brew install --HEAD sphinx`
```

It seems like this is an old version of the 0.9.9 branch.

I was able to have success with this commit revision:

```
git checkout 82cf7005798032b94709cf0e4b898127c7fb5146 /usr/local/Library/Formula/sphinx.rb

brew install sphinx

Warning: Building with LLVM, but this formula is reported to not work with LLVM:

fails with: ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)

We are continuing anyway so if the build succeeds, please open a ticket with
the following information: 2335-10.7. So
that we can update the formula accordingly. Thanks!

If it doesn't work you can try: brew install --use-clang

==> Downloading http://sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/sphinx/0.9.9 --disable-debug --with-pgsql
==> make install
==> Caveats
Sphinx depends on either MySQL or PostreSQL as a datasource.

You can install these with Homebrew with:
brew install mysql
For MySQL server.

brew install mysql-connector-c
For MySQL client libraries only.

brew install postgresql
For PostgreSQL server.

We don't install these for you when you install this formula, as
we don't know which datasource you intend to use.
==> Summary
/usr/local/Cellar/sphinx/0.9.9: 10 files, 8.4M, built in 18 seconds
```