# MissingSourceFile in LookController#index

**URL:** <https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754>\
**Category:** Rails\
**Created:** [October 25, 2008, 5:21am UTC](https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754 "2008-10-25T05:21:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khaled\_mahmud\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecccb3/32.png) [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Post date:** [October 25, 2008, 5:21am UTC](https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754/1 "2008-10-25T05:21:53Z")

</div>

Hi Friends,

I am facing a problem, when I run a simple Ruby program on my browser,  
it shows me an error like “MissingSourceFile in LookController#index”.  
Infect, I made a controller named “Look”. When I type  
“[http://localhost:3000/look](http://localhost:3000/look)” in the address bar of a brower, it shows  
the above error. I attached the snapshot of the error.

Please help me. I can not go forward with the Ruby on Rails for having  
such problem.

Thanks in advance

Roni

---

<div class="post-metadata">

**Author:** ![Khaled\_mahmud\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecccb3/32.png) [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Post date:** [October 25, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754/2 "2008-10-25T16:42:40Z")

</div>

On 25 Oct 2008, at 04:21, Khaled mahmud Khaled wrote:

> Hi Friends,
> 
> I am facing a problem, when I run a simple Ruby program on my browser,  
> it shows me an error like “MissingSourceFile in LookController#index”.  
> Infect, I made a controller named “Look”.  
> Read on a little more - it’s telling you that it couldn’t load  
> sqlite3. You need to install the sqlite3-ruby gem (you can probably  
> find more detailed instructions with a quick google)

Fred

---

<div class="post-metadata">

**Author:** ![Khaled\_mahmud\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecccb3/32.png) [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Post date:** [October 26, 2008, 11:34am UTC](https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754/3 "2008-10-26T11:34:54Z")

</div>

Frederick C. wrote:

> On 25 Oct 2008, at 04:21, Khaled mahmud Khaled wrote:
> 
> > Hi Friends,
> > 
> > I am facing a problem, when I run a simple Ruby program on my browser,  
> > it shows me an error like “MissingSourceFile in LookController#index”.  
> > Infect, I made a controller named “Look”.  
> > Read on a little more - it’s telling you that it couldn’t load  
> > sqlite3. You need to install the sqlite3-ruby gem (you can probably  
> > find more detailed instructions with a quick google)
> 
> Fred

Thanks Fred. But I got stuck because of the following problem:

C:\>gem install sqlite3-ruby --version 1.2.4  
Building native extensions. This could take a whileâ€¦  
ERROR: Error installing sqlite3-ruby:  
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb install sqlite3-ruby  
checking for fdatasync() in rt.libâ€¦ no  
checking for sqlite3.hâ€¦ no

nmake  
â€˜nmakeâ€™ is not recognized as an internal or external command,  
operable program or batch file.

Gem files will remain installed in  
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.  
Results logged to  
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3\_  
api/gem\_make.out

after that I went to that specific folder  
(“C:\ruby\lib\ruby\gems\1.8\gems”) and saw there is already a folder  
named “sqlite3-ruby-1.2.4” installed.

Please help me. I am very much interested to work with Ruby on Rails but  
I could not work with that because of that problem.

Thanks in advance.

Roni

---

<div class="post-metadata">

**Author:** ![Khaled\_mahmud\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecccb3/32.png) [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Post date:** [October 26, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754/4 "2008-10-26T13:49:47Z")

</div>

On 26 Oct 2008, at 10:34, Khaled mahmud Khaled wrote:

> > > LookController#index".  
> > > Building native extensions. This could take a while…  
> > > ERROR: Error installing sqlite3-ruby:  
> > > ERROR: Failed to build gem native extension.

You need one of the prebuilt versions. I don’t have windows so i’d  
search around for some more detailed instructions
