[英]Installing ruby sudo make command not found (Vagrant, Virtualbox)
I am trying to get a development environment up and running. 我正在尝试建立并运行开发环境。 I installed virtualbox and then used vagrant with the hashicorp/precise32 box.
我安装了virtualbox,然后将无业游民与hashicorp / precise32盒子一起使用。 I access the VM through ssh and am trying to install the latest version of ruby.
我通过ssh访问VM,并尝试安装最新版本的ruby。
I pasted 我贴了
wget -O ruby-install-0.5.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.5.0.tar.gz
tar -xzvf ruby-install-0.5.0.tar.gz
cd ruby-install-0.5.0/
sudo make install
into the command line from https://github.com/postmodern/ruby-install#readme 从https://github.com/postmodern/ruby-install#readme进入命令行
The prompt shows sudo make install and when I hit enter I get a message that says "sudo: make: command not found." 提示显示sudo make install,当我按Enter键时,我收到一条消息,提示“ sudo:make:命令未找到”。
What am I doing wrong? 我究竟做错了什么?
I know there are boxes with ruby already setup but I wanted to go through the process myself so learn a bit along the way. 我知道已经安装了带有红宝石的盒子,但是我想亲自完成此过程,所以请继续学习。
A separate issue I came across was that this box has an outdated version of ubuntu. 我遇到的另一个问题是,此包装盒包含过时的ubuntu版本。 When I try to upgrade it warns me not to do it over SSH.
当我尝试升级时,它警告我不要通过SSH进行升级。 Is there a better way?
有没有更好的办法?
Thanks 谢谢
Maybe you don't have make installed on Ubuntu. 也许您没有在Ubuntu上安装make 。 You can install the package build-essential which will install make and other building tools.
您可以安装build-essential软件包,该软件包将安装make和其他构建工具。
sudo apt-get install build-essential
also, here's a good reference on installing Ruby, Ruby on Rails, and other tools on Ubuntu. 另外, 这里是在Ubuntu上安装Ruby,Ruby on Rails和其他工具的很好的参考 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.