用于 Rails 的 SQL Server 适配器 [英] SQL Server Adapter for Rails
问题描述
试图在 windows 上找到适用于 rails 的 sqlserver 适配器.
Trying to find the sqlserver adapter for rails on windows.
我尝试从(运气不好)获取它:
I have tried getting it from (without luck):
gem install activerecord-sqlserver-adapter --source=http://gems.rubyonrails.org
gem install activerecord-sqlserver-adapter --source=http://gems.rubyonrails.org
我还能从哪里得到这颗宝石?
Where else can I get this gem?
更新:
确保以管理员身份运行命令提示符.右键单击命令提示符,然后单击以管理员身份运行".
Make sure to run the command prompt as the administrator. Right click on the command prompt and click "Run as administrator".
推荐答案
我刚刚运行了您执行的确切命令行,并且 gem 安装正常.
I just ran the exact command line you did, and the gem installs fine.
问题:
您运行的是 Vista 吗?
Are you running Vista?
- 如果是这样,请确保您以管理员权限运行命令提示符,以便它可以写入 gems 文件夹
你有最新版本的 gems 吗?
Do you have the latest version of gems?
- 运行
gem --version
找出你有什么,如果它不是 1.2.0,然后运行 gem update --system
以获取最新的
- Run
gem --version
to find out what you have, if it's not 1.2.0, then rungem update --system
to get the latest
这篇关于用于 Rails 的 SQL Server 适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!