no such file to load -- sqlite3/database 7
[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
-
在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据库的时候出现了这个信息,这是由于目录权限问题造成的错误。来自kain的解决方法:[doskoi@localhost :/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ru...
-
在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据...
-
在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据...
-
在主机上安装了Roby on Rails的sqlite3的Gem之后,在创建数据...
Comments
-
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!
-
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.
-
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 :)
-
Thanks! Damn permissions!!!
-
works in Ubuntu too!!
-
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.
-
you can also do require 'rubygems' since sqlite seems to work in irb