OpenSuse - RubyGems安装 - 错误的文件名 [英] OpenSuse - RubyGems install - wrong file names

查看:83
本文介绍了OpenSuse - RubyGems安装 - 错误的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



ruby​​ -v - > ruby​​ 2.0.0p247(2013-06-27)[x86_64-linux]

gem -v - > 2.3.0



运行 gem env 输出如下: EXECUTABLE DIRECTORY / usr / bin 。它也在我的 $ PATH 中。



我试图安装 sass compass ,如安装指南所述:

  sudo gem install sass 
sudo gem install compass

(我需要使用 sudo ,因为它没有正常工作)



唯一的问题:既没有运行命令 sass 指南针 work。

一段时间后,我发现我不得不使用 sass2.0 compass2.0 来运行它们。 / usr / bin 中的ruby脚本在文件名末尾用 2.0 命名。



为什么那些最后以 2.0 命名的ruby脚本?我怎样才能防止这一点?我想在终端中使用指南针 sass



我没有使用Google获得任何结果。

解决方案

它看起来像openSUSE补丁rubygems,以保持多个ruby版本的安装,因此它将版本号附加到bin / / p>

我试过在我的Linux x86_64系统上安装sass软件包,它产生 sass,scss和sass-convert 可执行文件没有扩展名。



我也会警告以这种方式安装gem,直接进入文件系统。我建议不要避免包管理,并通过正确构建的包进行安装。在openSUSE的wiki中,有关于如何将Ruby gems打包成rpms 的段落。


I have a fresh OpenSuse 13.1 installation with all updates installed.

ruby -v --> ruby 2.0.0p247 (2013-06-27) [x86_64-linux]
gem -v --> 2.3.0

Running gem env outputs following: EXECUTABLE DIRECTORY: /usr/bin. It is also in my $PATH.

I tried to install sass and compass as described by the installation guides:

sudo gem install sass
sudo gem install compass

(I needed to use sudo because it didn't work without)

Only problem: neither running the commands sass nor compass work.
After a while I figured out that I had to use sass2.0 and compass2.0 to run them. The ruby scripts in /usr/bin are named with 2.0 at the end of the filename.

Why are those ruby scripts named with 2.0 at the end? How can I prevent this? I would like to use just compass and sass in the terminal.

I didn't get any results using Google.

解决方案

It looks like openSUSE patches rubygems to keep multiple ruby versions installed, so it appends version number to files in bin/.

I've tried install sass package on my Linux x86_64 system and it produced sass, scss and sass-convert executables without extension.

I'd also warn to install gems this way, directly into filesystem. I'd recommend not avoiding package management and install through properly built packages. At openSUSE's wiki there is paragraph about how to package Ruby gems into rpms .

这篇关于OpenSuse - RubyGems安装 - 错误的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆