# SQLITE3 error

**URL:** <https://www.ruby-forum.com/t/sqlite3-error/152762>\
**Category:** Rails\
**Created:** [November 7, 2008, 8:14am UTC](https://www.ruby-forum.com/t/sqlite3-error/152762 "2008-11-07T08:14:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![barrymackichan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f07891/32.png) [@barrymackichan](https://www.ruby-forum.com/u/barrymackichan)\
**Post date:** [November 7, 2008, 8:14am UTC](https://www.ruby-forum.com/t/sqlite3-error/152762/1 "2008-11-07T08:14:13Z")

</div>

I keep getting the following error when trying to use sqlite3 with Ruby.

“./sqlite3.dll: 127: The specified procedure could not be found. -  
Init\_sqlite3 (LoadError)  
./sqlite3.dll from  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’ …”

I’m using Windows XP.  
I tried reinstalling:  
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]  
rubygems 1.3.1  
sqlite3.dll and sqlite3.def from [sqlite.org](http://sqlite.org), version 3.6.4.

The ruby program I’m running is:

require “rubygems”  
require “activerecord”  
ActiveRecord::Base.establish\_connection(:adapter =\> “sqlite3”, :database  
=\> “test.sqlite”)  
class Account \< ActiveRecord::Base  
end  
account = Account.new  
account.username = “cpytel”  
account.save

Does anyone have any suggestions? This error message appeared before in  
this forum, and the cure was to update the code. I am using more recent  
versions than were available then.

–Barry
