Closed GoogleCodeExporter closed 9 years ago
Looks like you solved dependencies manually, right? Autoinstaller could do it
for you.
What are the result of commands?
* ruby -e "require 'rubygems'" -e "require 'sqlite3/database'"
* ruby -e "require 'rubygems'" -e "require 'sqlite3'"
* gem list | grep sqlite
* dpkg -l | grep libsqlite
Original comment by sibprogrammer
on 20 Apr 2011 at 2:39
[deleted comment]
ruby -e "require 'rubygems'" -e "require 'sqlite3/database'"
/usr/lib/ruby/1.8/sqlite3/database.rb:290: undefined method `busy_timeout=' for
class `SQLite3::Database' (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from -e:2
ruby -e "require 'rubygems'" -e "require 'sqlite3'"
result nothing
gem list | grep sqlite
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3, 1.2.4)
dpkg -l | grep libsqlite
ii libsqlite3-0 3.7.5-1 SQLite 3
shared library
ii libsqlite3-dev 3.7.5-1 SQLite 3
development files
ii libsqlite3-ruby 1.3.1-2 SQLite3
interface for Ruby
ii libsqlite3-ruby1.8 1.3.1-2 SQLite3
interface for Ruby 1.8
ii libsqlite3-ruby1.9.1 1.3.1-2 SQLite3
interface for Ruby 1.9.1
Original comment by tdcmyst...@gmail.com
on 20 Apr 2011 at 3:01
Issue 283 has been merged into this issue.
Original comment by sibprogrammer
on 24 Apr 2011 at 1:03
You're using Debian unstable repository (sid), right? Package
libsqlite3-ruby1.8 1.3.1-2 looks like broken. Need to use 1.2.2/1.2.4 versions
of libsqlite3-ruby. I highly not recommend to use Debian sid for deployment of
Owp.
Original comment by sibprogrammer
on 24 Apr 2011 at 1:12
Just before using unstable Repo i try to install 1.2.2/1.2.4 done without
problems but still the same error on check.
PS: OWP work fine for me
Original comment by tdcmyst...@gmail.com
on 24 Apr 2011 at 1:22
Remove all libsqlite3-ruby packages and install only libsqlite3-ruby 1.2.2. Owp
may looks like working ok, but problems with sqlite3 can lead to errors in the
future.
Original comment by sibprogrammer
on 24 Apr 2011 at 1:27
The problem isn't with libsqlite3-ruby, but the Owp installation script.
ai.sh needs to set RUBY_SQLITE3_CMD (line 6) to include the whole gem as
opposed to just sqlite3/database.rb:
RUBY_SQLITE3_CMD="ruby -e \"require 'rubygems'\" -e \"require 'sqlite3'\"
As of recent versions of the gem, `require 'sqlite3/database'` cannot function
without loading other internal libraries:
A glance into the sqlite3-ruby gem unveils the issue:
https://github.com/luislavena/sqlite3-ruby/blob/master/lib/sqlite3.rb
# support multiple ruby version (fat binaries under windows)
begin
RUBY_VERSION =~ /(\d+.\d+)/
require "sqlite3/#{$1}/sqlite3_native"
rescue LoadError
require 'sqlite3/sqlite3_native'
end
require 'sqlite3/database'
require 'sqlite3/version'
Toying in `irb`, `require 'sqlite3/database'` will fail with the following
error:
NameError: undefined method `busy_timeout=' for class `SQLite3::Database'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-1.3.5/lib/sqlite3/database.rb:293
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
from (irb):4
Unless you run the `begin...rescue...end` block above first.
Original comment by faraz.ya...@gmail.com
on 14 Jan 2012 at 3:01
the same here
Original comment by tooxicbu...@gmail.com
on 6 Apr 2012 at 1:07
Support for new versions of SQLite Ruby gem was added.
Original comment by sibprogrammer
on 3 May 2012 at 1:00
Issue 354 has been merged into this issue.
Original comment by sibprogrammer
on 3 May 2012 at 1:00
Issue 388 has been merged into this issue.
Original comment by sibprogrammer
on 3 May 2012 at 1:04
Original issue reported on code.google.com by
tdcmyst...@gmail.com
on 19 Apr 2011 at 6:55