我试图在Windows 8.1下的控制台中使用魔术编码宝石。这就是我得到的:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\User\RubymineProjects\MyProject>gem install magic_encoding
Fetching: magic_encoding-0.0.2.gem (100%)
Successfully installed magic_encoding-0.0.2
1 gem installed
Installing ri documentation for magic_encoding-0.0.2...
Installing RDoc documentation for magic_encoding-0.0.2...
C:\Users\User\RubymineProjects\MyProject>magic-encoding
'magic-encoding' is not recognized as an internal or external command,
operable program or batch file.
那么如何在Windows下调用它?
答案 0 :(得分:0)
检查您的ruby bin目录是否包含 magic_encoding.bat 文件。如果它退出,请尝试使用完整路径来调用它:
..\MyProject> C:\RailsInstaller\Ruby1.9.3\bin\magic_encoding