no such file to load -- sqlite3/database 7

Posted by kain Sun, 06 Jul 2008 21:53:00 GMT

[kain@kain-osx:/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2]$ sudo find . -perm 0662 -exec chmod 664 {} \;

Update: Ruby Enterprise Edition is ahead of all: link

Another update: This is now fixed http://weblog.jamisbuck.org/2008/8/27/sqlite3-ruby-1-2-3

Trackbacks

Use the following link to trackback from your own site:
http://www.icoretech.org/trackbacks?article_id=no-such-file-to-load-sqlite3-database&day=06&month=07&year=2008

  1. 在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据库的时候出现了这个信息,这是由于目录权限问题造成的错误。来自kain的解决方法:[doskoi@localhost :/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ru...
  2. 在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据...
  3. 在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据...
  4. 在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据...
Comments

Leave a comment

  1. Avatar
    Mark about 2 hours later:
    Wow! Thanks this really helped -- just had this problem in the last 15 minutes and I see your post is only 2 hours old. Weird!
  2. Avatar
    Steve 22 days later:
    I have spent an entire day. Uninstalling/reinstalling/installing sqlite3 and sqlite3-ruby -- with no luck. This solved my problem in 30 seconds. THANKS. Still no idea how it solved the problem or how the problem arose in the first place. Thanks again.
  3. Avatar
    kain 23 days later:
    hey Steve, I'm glad you found this entry useful. Yes, seems like that, for some reason, the sqlite3 gem installs itself with wrong permissions. If you using Ruby Enterprise Edition they provided an hardcoded workaround to this problem in their git version, sadly for everybody else all we need to do is to fix permissions by hand. Hope that this will be fixed at some point :)
  4. Avatar
    Andrew about 1 month later:
    Thanks! Damn permissions!!!
  5. Avatar
    GB Hoyt about 1 month later:
    works in Ubuntu too!!
  6. Avatar
    Max Hyatt about 1 month later:
    THANK YOU! THANK YOU! This worked for me as well on Ubuntu 8.04. I also some recommendations to uninstall sqlite3 1.2.2 gem, and install 1.2.1.
  7. Avatar
    hobs 2 months later:
    you can also do require 'rubygems' since sqlite seems to work in irb
Comments