我想在我的debian lenny服务器上安装最新的ruby和rails.
我发现包http://packages.debian.org/lenny-backports/ruby1.9.1-full,但是当我尝试安装它,我只是得到:
atlas:~# apt-get install ruby1.9.1-full Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package ruby1.9.1-full
我的sources.list如下所示:
atlas:~# cat /etc/apt/sources.list deb http://ftp.se.debian.org/debian/ lenny main non-free contrib deb-src http://ftp.se.debian.org/debian/ lenny main non-free contrib deb http://security.debian.org/ lenny/updates main contrib non-free deb-src http://security.debian.org/ lenny/updates main contrib non-free deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
我要做什么来安装它?
解决方法
停止.回去.安装Ruby Debian的任何版本,大概是1.8.7或1.8.7.然后安装RVM.我有一些
using RVM with Ubuntu的方向(对不起,不是Debian,但是很接近).严重的是,RVM使得安装任何版本的Ruby很容易.然后,使用RVM安装Ruby 1.9.2,你不需要1.9.1.
这将根据您想要使用Ruby的方式工作.为了开发目的,使用RVM的工作真的很好.对于服务器目的,我想可以使用它,但是您可能会遇到一些问题.我认为RVM为您提供了一些可用于使用init脚本和cron作业运行Ruby脚本的脚本.
或者,您可以从源安装.这不是很难,而不是debian的方式,但它会完成这项工作.这可能更适合安装一些第三方软件包,您可能不知道在编译期间做了什么,以及如何在安全漏洞的情况下获得快速更新.使用RVM或从源手动安装,您可以随时更新.
原文地址:https://www.jb51.cc/ruby/273751.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。