Tag: 安装

捆绑问题

我尝试命令bundle install –local但它显示问题: -bash: /usr/local/bin/bundle: /usr/local/bin/ruby: bad interpreter: No such file or directory. 请帮我。

安装RVM时出现问题

我已按照rvm网站上的说明执行了命令,但事情似乎不起作用.. 从git存储库中获取代码运行顺利,但是当我尝试使用时 rvm notes 错误: /usr/local/bin/rvm: line 73: /home/cody/.rvm/scripts/rvm: No such file or directory 多行闪烁,直到我按下ctrl + C才停止。我正在运行Ubuntu 8.04,目前我正在运行ruby 1.9.2 ..抱歉,如果我错过了任何必要的信息。 提前致谢。

如何在没有root访问权限的情况下安装rvm?

我想在没有rubygem的机器上安装travis gem,而我没有root。 (我想加密与travis一起使用的东西。)我决定尝试安装rvm,因为https://rvm.io/rvm/install表明这是一种简单的方法来安装没有root的ruby。 但是,我马上遇到了问题: jgross@cagnode17:~$ \curl -L https://get.rvm.io | bash -s stable –ruby % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13961 100 13961 0 0 15390 0 –:–:– –:–:– –:–:– 170k Please read and follow further instructions. Press ENTER to continue. Downloading RVM […]

Heroku gem不能与RVM一起使用

我正在http://railstutorial.org/chapters/beginning#sec:1.4.1上关注Ruby on Rails教程,一切顺利,直到我试图让我的应用程序继续使用Heroku。 我安装了heroku,工作正常,但现在当我运行heroku keys:add或任何其他heroku命令时,我收到以下错误: /home/sirswap/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/rest-client-1.4.2/lib/restclient.rb:9:in `rescue in ‘: no such file to load — net/https. Try running apt-get install libopenssl-ruby (LoadError) from /home/sirswap/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/rest-client-1.4.2/lib/restclient.rb:5:in `’ from :29:in `require’ from :29:in `require’ from /home/sirswap/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/rest-client-1.4.2/lib/rest_client.rb:2:in `’ from :29:in `require’ from :29:in `require’ from /home/sirswap/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.9.14/lib/heroku/client.rb:2:in `’ from :29:in `require’ from :29:in `require’ from /home/sirswap/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.9.14/lib/heroku.rb:3:in `’ from :29:in `require’ […]

安装nokogiri安装了Mac OS X 10.8.2 XCode

试图在Mountain Lion上安装nokogiri。 我使用的是ruby 1.8.7,但刚刚升级到1.9.3但它阻止了捆绑安装工作。 顺便说一下,我可以通过卸载ruby 1.9.3并恢复到1.8.7来解决这个问题。 然而,这显然是一个次优的解决方案,因为我不希望在剩下的时间里被卡在1.8.7上…… Users-MacBook-Pro:sample_app user$ ls Gemfile app doc script Gemfile.lock config lib spec README.md config.ru log tmp Rakefile db public vendor Ravins-MacBook-Pro:sample_app user$ bundle Fetching gem metadata from https://rubygems.org/……. /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler.rb:263: warning: Insecure world writable dir /usr/local in PATH, mode 040777 Using rake (0.9.2.2) Using i18n (0.6.1) Using multi_json (1.3.6) Using […]

如何卸载Ruby on Rails并进行全新安装?

我正在关注Rails教程。 我有RVM的版本问题,并且遇到了很多错误。 我想重新开始使用Ruby,Rails,Gemfiles等的干净版本。 任何人都可以给我一些关于如何卸载Ruby-on-Rails环境的简要说明吗?

在OSX上使用RVM安装任何ruby版本时出错

伙计我要用这个来杀死自己! 我在RVM安装多个版本的Ruby时遇到了一些问题,并且在Stackoverflow上跟随一个线程后我决定完全删除它。 重新安装RVM后,我根本无法安装任何Ruby版本。 Mac OS X. RVM 1.20.10稳定 自制语0.9.4 这是一些日志: rvm install 2.0.0-p0 要么: rvm install 2.0.0-p195 –autolibs = enabled Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing requirements for osx, might require […]

通过ruby2.0.0在Windows上安装iconv时出错

通过ruby2.0.0在Windows上安装iconv时出错 通过ruby2.0.0在Windows上安装iconv时出错 我正在尝试安装iconv,但是当我运行以下命令时: gem install iconv 我的结果: Temporarily enhancing Path to include DevKit… Building native extensions. This could take a while… Error : Error installing iconv: ERROR: Failed to build gem native extension. C:/Ruby/Ruby200/bin/ruby.exe -r ./siteconf20150217-3212-i8hzmh.rb extconf.rb checking for rb_enc_get() in ruby/encoding.h… yes checking for rb_sys_fail_str() in ruby.h… yes checking for iconv() in iconv.h… no […]

可以将“gem install”配置为在/ usr / bin /之外安装可执行文件吗?

默认情况下,当你sudo gem install thegemname它会将可执行文件安装到/usr/bin/ 有没有办法改变这个? 例如,要将它们安装到/usr/local/rubygems/bin (或任何其他路径)? 该路径似乎没有硬编码到gemspec文件中,所以我不明白为什么这不可能(尽管我对Ruby / Gems的经验很少)

在Mac OSx 10.9.5上升级到Ruby 2.1.3

今天我在Mac OSx 10.9.5上从2.0.0升级到Ruby 2.1.3。 事实certificate,这比最初预期的要困难得多。 而且由于我浪费了很多时间,我认为我分享我的经验和解决方案,以防其他人也遇到问题。 我安装了xcode +开发人员工具。 我本周也更新了xcode – 不确定这是否是事情突然不起作用的原因。 但是,这是事实: $ gcc -v Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix $ rvm -v rvm 1.25.32 (stable) by Wayne E. Seguin , Michal Papis [https://rvm.io/] $ brew -v Homebrew 0.9.5 $ git version […]