ruby on rails 执行 rails dbconsole 报错:Could Not find database client: sqlite3
在windows下开发rubyonrails时,用的是,默认的数据库sqlite3,
执行:rake db:create
时没有问题但是执行
rails dbconsole时报错:
Could Not find database client: sqlite3, sqlite3.exe. Check your $PATH and try ag ain.
解决办法是:
到sqlite3官网(http://sqlite.org/download.html)
下载:sqlite-shell-win32-x86-3070701.zip,
解压出里面的sqlite3.exe放到ruby安装路径的bin文件夹下
(比如我的ruby安装在C:\Ruby192,那就把sqlite3.exe放到C:\Ruby192\bin下就OK了)
相关推荐
何志文 2020-05-11
JOO 2020-04-26
龙浩然 2014-06-03
yohunl 2008-01-11
wujiajax 2011-07-22
samllQ的备忘录 2011-07-22
踩风火轮的乌龟 2008-03-22
wl00 2020-10-28
EricNet 2020-07-05
EricNet 2020-05-27
happyfreeangel 2020-04-09
Poisedflw 2020-03-23
yangliuhbhd 2020-03-06
Ben的程序员生涯 2013-06-01
chenshuixian 2013-06-01
wes0 2014-05-31
mrice00 2019-12-20