我的操作系统是Windows 7,我正要连接我的本地MySQL数据库与Heroku共享数据库,在某一时刻,我得到了libmysql.dll文件丢失的错误,所以我搜索并下载了dll文件并将其保存在ruby中/bin 目录。当我再次准备连接时,这次它显示错误 ruby.exe 未被识别为内部或外部命令,这就是错误的外观。
发送模式
'"ruby.exe"' is not recognized as an internal or external command,TA: --:--:--
operable program or batch file.
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:07
operable program or batch file.
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:04
operable program or batch file.
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:02
operable program or batch file.
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:01
operable program or batch file.
架构:100%
|============================================|时间:00:00:06
“ruby.exe”未被识别为内部或外部命令,
可运行的程序或批处理文件。
C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/lib/vendor/okj
son.rb:82:in `valparse': unexpected nil (OkJson::ParserError)
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/vendor/okjson.rb:64:in `textparse'
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/vendor/okjson.rb:43:in `decode'
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/taps/operation.rb:419:in `push_indexes'
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/taps/operation.rb:408:in `block in run'
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/taps/operation.rb:203:in `call'
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/taps/operation.rb:203:in `catch_errors'
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/taps/operation.rb:405:in `run'
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l
ib/taps/cli.rb:171:in `clientxfer'
from C:/Users/JOE ARPUTHAN/.heroku/client/lib/heroku/command/db.rb:194:i
n `taps_client'
from C:/Users/JOE ARPUTHAN/.heroku/client/lib/heroku/command/db.rb:35:in
`push'
from C:/Users/JOE ARPUTHAN/.heroku/client/lib/heroku/command.rb:129:in `
run'
from C:/Program Files/Heroku/heroku:27:in `<main>'
你没有ruby.exe
PATH 变量中的路径。
在 Windows 7 中,您可以通过以下方式设置Start menu
-> 右键单击My computer
-> 左边最后一个选项(我认为是advanced settings
) -> 环境变量 -> 在system variables
子菜单查找Path
双击它并添加;然后是 ruby 安装的 bin 文件夹的路径。这应该可以修复它(您将需要重新启动所有已启动的命令提示符)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)