Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6556167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:54:36+00:00 2026-05-25T12:54:36+00:00

I really need help installing Sphinx and getting it going. I’m on rails 3

  • 0

I really need help installing Sphinx and getting it going.

I’m on rails 3 and I’m following these set of directions: http://freelancing-god.github.com/ts/en/quickstart.html to install Sphinx.

Thinking Sphinx was easy to install since it’s a gem. However, the guide says I need to have both Sphinx and Thinking Sphinx installed to get started (Is this true?). I checked Ryan Bates’ railscast for Thinking Sphinx and he only installed the plugin and got started immediately.

Anyways, I installed Sphinx via MacPorts and here’s proof:

...
  --->  Configuring mysql5
  --->  Building mysql5
  --->  Staging mysql5 into destroot
  --->  Installing mysql5 @5.1.57_0
   The MySQL client has been installed.

...

--->  Installing sphinx @0.9.9_0+mysql5
--->  Activating sphinx @0.9.9_0+mysql5
--->  Cleaning sphinx

It automatically configured Sphinx with mysql5. I have both mySQL and POSTgreSQL.

Now the next step was to rake thinking_sphinx:index after setting up an index in my user model which looks like this:

  define_index do
   indexes year
   indexes major
   indexes books_buy
   indexes books_sell
   indexes facebook
   indexes restaurants
   indexes interests

   end

However, rake thinking_sphinx:index gave me this:

rake aborted!
Don't know how to build task 'thinking_sphnix:index'

and then

rake aborted!
no such file to load -- sqlite3

So I figured my database was configured on sqlite3 still. So I switched the gem to mySQL and edited my database.yml file to look like this:

# Switched over to mysql

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
development:
  adapter: mysql5
  encoding: utf8
  database: sphinx_development
  pool: 5
  username: root
  password:
  socket: /tmp/mysql.sock

test:
  adapter: mysql5
  encoding: utf8
  database: sphinx_test
  pool: 5
  username: root
  password:
  socket: /tmp/mysql.sock

production:
  adapter: mysql5
  encoding: utf8
  database: sphinx_production
  pool: 5
  username: root
  password: 
  socket: /tmp/mysql.sock

and I got these errors:

rake aborted!
Please install the mysql5 adapter: `gem install activerecord-mysql5-adapter` (no such file to load -- active_record/connection_adapters/mysql5_adapter)

and

    ERROR:  Could not find a valid gem 'activerecord-mysql5-adapter' (>= 0) in any repository
ERROR:  Possible alternatives: activerecord-jdbcmysql-adapter, activerecord-nulldb-adapter, activerecord-odbc-adapter, activerecord-jdbc-adapter, activerecord-postgis-adapter
Tony-Ngs-MacBook-Air:sample_app TonyNg$ gem install activerecord-nulldb-adapter

Any tips would be generous and helpful. Would also be willing to switch to PostgreSQL if help lead provided. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:54:36+00:00Added an answer on May 25, 2026 at 12:54 pm

    You need to put either mysql or mysql2 as your adapter – and include either gem (same names as the adapters) in your Gemfile. I recommend mysql2, as it’s actively maintained – but keep in mind if you’re using Rails 3.0.x, then you must use a 0.2.x release of mysql2. If you’re on Rails 3.1, then use mysql2 0.3.x.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really need help getting this query right. I can't share actual table and
I really need help on getting a simple GTK program in c++ running using
I am new to objective C and I really need help with the following
i really need help with the simpliest things of WSDL. i got the following
I really need help with using namespaces. How do I get the following code
I really need help with the where clause below. Consider this xml <name xmlns=http://www.imsglobal.org/xsd/imslip_v1p0>
I really need help with the java program...i am getting errors when i am
I really need help with interfaces in general... Any resources that you guys would
I really need help on this one. I am having a simple login form
Sorry to bother again, but I really need help transforming this Python2 code into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.