简体   繁体   English

如何在安装在vmware中的ubuntu中的rails程序上运行ruby?

[英]how to run ruby on rails program in ubuntu installed in vmware?

I am trying to install ruby on rails on my windows. 我正在尝试在Windows的导轨上安装ruby。 But after searching , I came to know that the best combination for ruby is either MAC or LINUX OS. 但是在搜索之后,我知道红宝石的最佳组合是MAC或LINUX OS。 But I m having laptop with windows 10. So can i install and run ruby and rails in UBUNTU inside VMware or which is the best option available? 但是我有带Windows 10的笔记本电脑。那么我可以在VMware内部的UBUNTU中安装和运行ruby和rails还是哪个是最佳的选择?

Not sure what version of Windows 10 you have, but if you have the version that supports Hyper-V you have two good options. 不知道您使用的是哪个版本的Windows 10,但是如果您具有支持Hyper-V的版本,则有两个不错的选择。

http://vagrantup.com http://vagrantup.com

Using either Oracle's Virtual Box or Hyper-V you can basically have a dedicated VM on your local box in the time it takes to download a pre-packaged box. 使用Oracle的Virtual Box或Hyper-V,基本上可以在下载预包装盒的时间上在本地盒上安装专用VM。 I used this for a long time, though I now use http://c9.io as a cloud based IDE. 我使用了很长时间,尽管现在我将http://c9.io用作基于云的IDE。

Step 1. Download the Oracle VM Virtual box from here . 步骤1.从此处下载Oracle VM Virtual框。

Step 2. Download the Ubuntu ISO file. 步骤2.下载Ubuntu ISO文件。 64 bit Windows supports both 32 bit as well as 64 bit guest OS. 64位Windows支持32位和64位来宾OS。 If your machine is a 64 bit machine then download ubuntu-14.04.3-desktop-amd64.iso . 如果您的计算机是64位计算机,请下载ubuntu-14.04.3-desktop-amd64.iso

Step 3. Enable Intel vt-x from the BIOS menu. 步骤3.从BIOS菜单中启用Intel vt-x。

Step 4. Disable Hyper-V platform from Turn windows features on or off. 步骤4.从“打开或关闭Windows功能”禁用Hyper-V平台。

Step 5. Insert the ISO image into the virtual CD/DVD drive as instructed here . 步骤5.按照此处的说明将ISO映像插入虚拟CD / DVD驱动器。

Step 6. Once the Ubuntu is installed on your VM. 步骤6.在您的VM上安装Ubuntu之后。 Install virtual box guest additions and it will be mounted inside the /media folder and at the right hand corner there will be a button to install the software and you're done with your setup. 安装虚拟盒子来宾添加物,它将被安装在/ media文件夹中,并且在右上角将显示一个用于安装软件的按钮,设置完成。

在此处输入图片说明

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

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