简体   繁体   English

从Ubuntu的Ruby on Rails连接到MSSQL

[英]Connecting to MSSQL from Ruby on Rails from Ubuntu

The title sums up the whole problem. 标题总结了整个问题。

To use RoR, I was suggested to use Linux, so I got a VirtualBox and got Ubuntu 13 on it, installed RVM and RoR and now I'm pretty stuck. 为了使用RoR,我被建议使用Linux,所以我得到了一个VirtualBox,并在其上安装了Ubuntu 13,安装了RVM和RoR,现在我很困难。

I need to access the MSSQL from Ruby from inside the Ubuntu, and I don't have a single clue. 我需要从Ubuntu内部从Ruby访问MSSQL,我没有一个线索。 A question of relevance was this question , but the answer links seemed to have expired, and the one that isn't, I can't make out a method of how to do it. 一个相关性的问题是这个问题 ,但答案链接似乎已经过期,而那个不是,我无法弄清楚如何做到这一点的方法。

Any approach suggestions? 任何方法建议?

Its very simple if you use freetds. 如果你使用freetds它很简单。 Install freetds library. 安装freetds库。 Its available in ubuntu repository. 它在ubuntu存储库中可用。

sudo apt-get install freetds sudo apt-get install freetds

Then follow the instructions here 然后按照此处的说明操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM