jjzjj

ruby-on-rails - 在 Ubuntu 14.04 virtualbox 上使用 rbenv 安装 Ruby 挂起

我正在尝试让RubyonRails在Ubuntu14.04上运行。Ubuntu安装在VirtualBox上。我正在关注https://gorails.com/setup/ubuntu/14.04当我运行命令时rbenvinstall2.1.2Ruby一直在安装。我等了1个多小时。这是命令行的样子:rbenvinstall2.1.2Downloadingruby-2.1.2.tar.gz...->http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6

ruby - rbenv 构建在 Ubuntu 14.04 上失败

我已经在我的Ubuntu14.04桌面上成功安装了rbenv(连同构建工具),看起来工作正常,但是当我尝试安装ruby​​2.1.1时,构建失败了:daniel@grape:~$rbenvinstall2.1.1Downloadingyaml-0.1.6.tar.gz...->http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06eInstallingyaml-0.1.6...Installedyaml-0.1.6to/home/daniel/.rbenv/versions/2.1.1Downloading

ruby - 无法安装遏制 gem

它给了我错误geminstallcurbBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingcurb:ERROR:Failedtobuildgemnativeextension./usr/bin/ruby1.9.1extconf.rb/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in`require':cannotloadsuchfile--mkmf(LoadError)from/usr/lib/ruby/1.9.1/rubygems/custom_

ruby - gem install pg 无法绑定(bind)到 libpq

在Ubuntu10.04.3上升级到Ruby1.9.3(从1.9.2使用系统RVM)后,我删除了所有的gem,并尝试重新安装pg(alabundleinstallpg).然后它抛出一个错误并通知我应该查看mkmf.log,这两个都包含在这个要点中:https://gist.github.com/d05a81701d968895c730libpq-dev、libpq5和postgresql-client都已安装并正常工作。将gem指向pg_config,直接包含和bin目录似乎没有任何改变。我在stackoverflow和网络的其余部分看到了几个关于类似错误消息的问题,但它们似乎都是简单

ruby - 安装 Ruby 1.9.3 时出错

我在通过rvm安装Ruby1.9.3时出错。rvminstall1.9.3-p0InstallingRubyfromsourceto:/home/alder/.rvm/rubies/ruby-1.9.3-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.3-p0-#fetchingruby-1.9.3-p0-#downloadingruby-1.9.3-p0,thismaytakeawhiledependingonyourconnection...%Total%Received%XferdAverageSpeedTimeTimeT

ruby-on-rails - 如何在 Ubuntu 11.10 上使用 libyaml 安装 Ruby?

我在我的Ubuntu11.10五笔上安装了ruby​​-1.9.3-p0,然后安装了ruby​​gems来设置Rails。这是我的代码:sudorubysetup.rb我遇到了这个错误:"/usr/local/lib/ruby/1.9.1/yaml.rb:56:in'':Itseemsyourrubyinstallationismissingpsych(forYAMLoutput).Toeliminatethiswarning,pleaseinstalllibyamlandreinstallyourruby."我安装了libyaml并重新安装了Ruby,但仍然无法正常工作。信息变了,我

ruby - 安装后无法使用 compass

我似乎无法使用thisVagrantfile使compass在Vagrant上工作.请在此处查看其余的bash脚本(已删除repo)(如果您想配置您的VagrantUbuntuBox,请参阅Vaprobash!)。因此,当我不得不使用gruntserver时,我正在学习gruntjs类(class)。唯一的问题是它需要更新的ruby​​版本(我相信是1.9+而不是1.8)并且它需要compass。所以我通过安装RVM和安装最新的稳定版本解决了ruby​​部分。compass应该很容易获得geminstallcompass并且它似乎确实已安装。但是当我输入compass-v时,我得到了休

ruby-on-rails - Ubuntu 12 - 如何正确安装 Ruby 和 Rails

按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visitthehelpcenter指导。关闭10年前。我阅读了很多关于在Ubuntu12上安装Ruby1.9和RubyonRails3.2.3的文章。我以前安装过它们。但是花了很多时间,大约5天。我犯了很多错误,我对此感到非常厌倦。现在我需要再做一次。显然,我希望它毫不费力且正确。就像在Windows中使用Rails安装程序和Ruby安装程序一样。谁能给我一个关于如何正确安装它们的链接(!)?或者也许您知道

ruby - 找不到 phantomjs

尝试在Ubuntu上使用来自ruby​​的phantomjs时出现以下错误:Failure/Error:visitroot_pathCliver::Dependency::NotFound:Couldnotfindanexecutable["phantomjs"]onyourpath.#./spec/features/search_spec.rb:17:in`block(2levels)in'#./spec/support/vcr.rb:23:in`block(3levels)in'#./spec/support/vcr.rb:23:in`block(2levels)in'phanto

ruby - 如何在 Ubuntu 11.10 上使用 RVM 在 IRB 中获得 Readline 支持

我已经尝试了所有我能想到的方法来让它工作,但无济于事,所以我在这里请求有关如何调试的建议。首先,运行Ubuntu11.10已安装的rvm:$bash使用apt-get安装readline:$sudoapt-getinstalllibreadline-dev检查readline安装:$dpkg--get-selections|grepreadlinelib64readline-gplv2-devinstalllib64readline5installlibreadline-devinstalllibreadline5installlibreadline6installlibreadlin