On 04/29/2011 01:06 AM, Didin Ibnu Sarnan wrote:
> Over all I have succedeed install rails on my laptop, when I do
> # rails server
>
> itis was failed and produce this error:
>
> Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your
>> Gemfile.
>>
> after that I try to install sqllite3
> with sudo apt-get install sqlite3 and installed,
>
> I try to restart server rails, but it doesn't change and keep in producing
> this error.
> so I try to do
>
> # sudo gem install sqlite3
> but it was error:
>
> Building native extensions.  This could take a while...
> ERROR:  Error installing sqlite3:
>      ERROR: Failed to build gem native extension.
>
>
> Anyone, can help me?
>
> Thank you :)

You need to install the sqlite3-dev package via apt-get, then try 
installing the gem again.

-Justin