Wednesday, October 27, 2010

mysql error after upgrading to Lucid Lynx

After I upgraded my Ubuntu machine from Karmic Koala to Lucid Lynx and running my ror app,
I get the following mysql error:

/usr/lib/ruby/gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.so: libmysqlclient.so.15: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.so (LoadError)

Running this command fixes the error:

$ sudo apt-get install ruby-dev

Sunday, October 3, 2010

Installing Sphinx with MySQL support in Ubuntu Karmic Koala

apt-get install gcc make libmysqlclient15-dev libmysql++-dev


curl -O http://sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz


tar zxvf sphinx-0.9.9
cd sphinx-0.9.9
./configure
make
sudo make install


http://acidborg.wordpress.com/2009/11/22/how-to-install-and-configure-sphinx-in-ubuntu-9-10-with-mysql-support/