草庐IT

rbenv-gemset

全部标签

ruby - 如何使用 RVM 管理多个 gemsets 和 ruby​​ 版本?

我对RVM网站上给出的解释感到非常困惑。我不清楚不同的ruby​​解释器和gemsets之间的关系。在我看来是这样的——我的Mac帐户有一个rvmrvm安装和管理一组不同版本的ruby​​解释器。每个ruby​​版本都有一组gemsets。我把事情说清楚了吗...欢迎提供更多解释。我可以处理(Ruby1.8.7+rails2.3.8及其依赖项)和(Ruby1.9.2和Rails3.0及其依赖项)...如果有人精通在rvm的帮助下处理许多ruby​​版本和gemsets,请向我解释......感谢您的帮助 最佳答案 这是我喜欢的方式.

ruby - 在没有 rvm 或 rbenv 的情况下编译 Ruby 2.0 错误, `readline.c:1886:26: error: ' Function' undeclared (first use in this function)`

我想安装gitlab,不推荐使用任何ruby版本管理器。但是这是我的操作系统Linuxdqa-dev3.13.0-24-generic#46-UbuntuSMPThuApr1019:08:14UTC2014i686i686i686GNU/Linuxlinkingshared-objectpsych.soinstallingdefaultpsychlibrariesmake[2]:Leavingdirectory`/home/poc/ruby-2.0.0-p451/ext/psych'make[2]:Enteringdirectory`/home/poc/ruby-2.0.0-p451/

ruby - rbenv — 'find_spec_for_exe':找不到带有可执行包的 gem 打包器 (>= 0.a) (Gem::GemNotFoundException)

我是rbenv的新手(长期使用RVM)。今天我彻底卸载了我的RVM并安装了rbenv。我成功安装了Ruby2.5.1,没有任何问题。但是,当我今天尝试为一个项目运行bundleinstall时,出现了以下错误:'find_spec_for_exe':找不到带有可执行包(Gem::GemNotFoundException)的gem打包器(>=0.a)我的bundler安装似乎出了点问题,但我不确定哪里出了问题。使用sudo运行geminstallbundler无法解决问题。这是完整的轨迹:$echo$SHELL/bin/zsh$cat~/.gemrcgem:--no-documentin

ruby - rvm 使 gemset 原始是什么意思?

我在Google或rvm网站上找不到任何相关信息。当我运行rvmgemsetcopy1.9.3-p1941.9.3-p125-falcon=>Copyinggemsetfrom1.9.3-p194to1.9.3-p125-falcon=>Makinggemsetfor1.9.3-p125-falconpristine.是输出。这是什么意思? 最佳答案 RVM运行gempristine在gem上,将gem恢复到原始状态。命令gemhelppristine从命令行提供有关底层命令的更多信息。Thepristinecommandcompa

ruby-on-rails - rails : rbenv rehash not working (rbenv-shim exists)

我正在尝试在安装新gem后重新哈希rbenv它在我的ubuntu服务器上给了我这些错误rbenv:cannotrehash:/home/deployer/.rbenv/shims/.rbenv-shimexists但是.rbenv-shims不存在 最佳答案 可能是issuewithdirectorypermissions@sstephenson/rbenv:FWIW-Ialsohadthisproblem,andhadtochangepermissionsonthedirwhereitwascheckingforthe.rbenv

ruby - rbenv 和 bundler : "bad interpreter: No such file or directory"

我搞砸了我的配置。我正在运行Ubuntu14.04,当我尝试从一个项目转移到另一个项目时遇到了一些问题。我尝试卸载并重新安装rbenv,然后按照本指南安装了Ruby2.1.7:https://gorails.com/setup/ubuntu/14.04.现在,当我运行geminstallbundler时,没有任何反应,我无法安装任何gem。当我输入bundler或bundler-v我看到这个:/usr/local/bin/bundler:/usr/bin/ruby1.9.1:badinterpreter:Nosuchfileordirectory我花了很多时间试图解决这个问题,但我真的

ruby-on-rails - Vagrant/VirtualBox VM 配置 : rbenv installs successfully but subsequent uses in script fail

我正在使用Vagrant+VirtualBox为我的Rails应用设置虚拟机。我正在清理Vagrantfile中引用的.sh配置脚本,如下所示:config.vm.provision"shell",path:"script/provision-script.sh"配置脚本做了很多事情,但最后它应该安装rbenvRuby版本控制,然后使用rbenv安装Ruby2.2.1。供应脚本的那部分看起来像这样:echo"settinguprbenv"#executetheremainingcommandsasvagrantuser,insteadofrootsudo-H-uvagrantbash-

ruby - 设置环境、OSX rbenv 和 bundle battle

所以我刚刚从ubuntu切换到mac,设置env并不像promise的那么容易。这是我遵循的过程。安装xcode-然后进入首选项并下载命令行工具然后通过运行gcc--version验证是否安装了正确的版本i686-apple-darwin11-llvm-gcc-4.2(GCC)4.2.1(BasedonAppleInc.build5658)(LLVMbuild2336.11.00)Copyright(C)2007FreeSoftwareFoundation,Inc.Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO

ruby - rbenv 无法更改全局 ruby​​ 版本

我的MacOSX有一个默认的ruby​​。$ruby-vruby2.0.0p451(2014-02-24revision45167)[universal.x86_64-darwin13]我安装了rbenv和ruby​​版本2.1.2。$rbenvversionssystem*2.1.2(setby/Users/sdw/.rbenv/version)我尝试将全局ruby​​版本设置为2.1.2,但没有任何反应。$rbenvglobal2.1.2$ruby-vruby2.0.0p451(2014-02-24revision45167)[universal.x86_64-darwin13]所

ruby - 如何让 rbenv 识别 '1.9.3-p***' Ruby 版本?

我正在尝试运行一些Ruby项目,并且该项目正在使用.ruby-version文件。该文件仅包含:1.9.3我安装了最新的Ruby1.9.3:$rbenvinstall1.9.3-p448然而,当我运行ruby--version时,我得到了rbenv:version'1.9.3'isnotinstalled为了修复这个错误,我列出了~/.rbenv/versions/并且它包含文件夹1.9.3-p448。我将该文件夹重命名为1.9.3并运行rbenvrehash。这解决了问题。看起来-p448部分(什么意思?补丁?)混淆了rbenv。如何在不手动重命名~/.rbenv中的文件夹的情况下使