在windows下使用magic-gem编码 [英] using magic-encoding gem under windows

查看:117
本文介绍了在windows下使用magic-gem编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Windows 8.1下的控制台中使用magic-encoding gem。这是我得到的:

I'm trying to use the magic-encoding gem in a console under Windows 8.1. Here's what I get:

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下调用它?

So how do I invoke it under Windows?

推荐答案

检查您的ruby bin目录是否包含 magic_encoding.bat 文件。如果退出,请尝试使用完整路径来调用它:

Check if your ruby bin directory contains the file magic_encoding.bat. If it exits, try to use full path to invoke it:

..\MyProject> C:\RailsInstaller\Ruby1.9.3\bin\magic_encoding

这篇关于在windows下使用magic-gem编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆