Tag: 终端

RVM – MacPorts不会通过代理更新

我正在尝试使用RVM在我的iMac上安装ruby。 我首先键入以下内容: rvm list known 然后,我使用以下行来定位我要安装的版本(我正在遵循建议1.9.2而不是基础1.8.7的指南): rvm install 1.9.2 然后我明白了: 27698AM:~ butler15$ rvm install 1.9.2 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.7/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing requirements for osx, might require sudo password. Password: 我输入密码,我得到了这个: DEBUG: […]

是否有ruby的命令行框架?

那么,有web框架,有GUI框架,我只是想知道是否有ruby的控制台/命令行框架? 具体来说,我希望能够: 有一个特定的视图,其中我可以选项卡到不同的输入段。 就像你可以在网页上使用表单一样。 我想通常的控制台快捷方式工作(ctr-k,ctr-a,ctr-e等) 如果光标位于某个输入位置,有时我希望它响应单个按键事件,而不是我必须输入文本然后按回车键。 不必是一个统一的框架。 但我注意到在ruby中编写控制台应用程序似乎有些麻烦。 是否有任何工具可以使这更容易?

无法安装Debugger gem – Rails – Mac OSX Mavericks

我正在尝试在本地运行应用程序,但是当我这样做时,我会抛出此错误。 Patricks-MacBook-Air:niet pbj$ rails s Could not find debugger-1.6.1 in any of the sources Run `bundle install` to install missing gems. 当我运行’bundle install’时,我得到了这个: Fetching source index from https://rubygems.org/ Enter your password to install the bundled RubyGems to your system: Using rake (10.1.0) Using i18n (0.6.5) Using minitest (4.7.5) Using multi_json (1.8.0) Using atomic (1.1.13) Using […]

OS X Mavericks安装rvm警告

在终端中运行时: $ curl -L https://get.rvm.io | bash -s 它似乎工作正常,但最后在升级说明中说 * WARNING: You have ‘~/.profile’ file, you might want to load it, to do that add the following line to ‘/Users/steven/.bash_profile’: source ~/.profile 我不能使用RVM,得到错误 -bash: rvm: command not found’ 我对终端和Ruby很新,所以任何帮助都会非常感激。

在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 […]

使用文本IO双击可执行文件制作ruby脚本?

我是Ruby的初学者,我不知道该怎么做…. 现在我有脚本,它在终端运行完美,但我希望能够在桌面上创建一个双击版本,然后在终端打开一个窗口并运行脚本。 Automator和Platypus不起作用。 我不知道该怎么做。 先感谢您。

将Ruby控制台输出写入文本文件

我正在尝试运行一个Ruby应用程序,它将信息输出到控制台。 我想将此输出保存到文本/日志文件中。 这有可能吗? ruby必须有一面旗帜才能做到这一点吗?

安装Homebrew时出错 – 找不到Brew命令

我花了我周五的大部分时间试图在我的新MacBook Air上安装最新版本的Ruby(安装了Mountain Lion)。 我有所有最新版本的XCode和命令行工具。 但我似乎无法让Homebrew工作! 这是我一直卡住的截图 (我是新用户,因此无法嵌入此图像)。 如您所见,我使用以下方法安装Homebrew: ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)” 虽然有一个“警告”,但似乎安装工作: Warning: /usr/local/bin is not in your PATH. ==> Installation successful! 尽管如此,当我尝试运行“酿造医生”时,我收到以下信息: -bash: brew: command not found 再一次,我正在尝试安装自制软件,所以我可以安装最新版本的ruby – 我正在学习使用ruby编写代码,但如果我甚至可以运行开发环境,那就搞砸了! 🙂 谢谢你尽你所能的帮助!

安装Bundler时出错

我正在尝试在我的Mac上安装Bundler gem。 使用命令: sudo gem install bundler我收到以下错误: ERROR: Could not find a valid gem ‘bundler’ (>= 0), here is why: Unable to download data from https://rubygems.org/ – SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz) 它显然似乎是一个服务器问题,但我该如何解决这个问题呢? gem update –system目前是最新的。 有没有其他方法可以获得Bundler?

在`require’:没有这样的文件加载 – iconv(LoadError)

➜ expertiza git:(master) ✗ ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.1.0] ➜ expertiza git:(master) ✗ rails -v Rails 2.3.14 ➜ expertiza git:(master) ✗ script/server /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/inflector.rb:3:in `require’: no such file to load — iconv (LoadError) from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/inflector.rb:3 from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext/integer/inflections.rb:1:in `require’ from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext/integer/inflections.rb:1 from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext/integer.rb:2:in `require’ from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext/integer.rb:2 from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext.rb:8:in `require’ from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext.rb:8 from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext.rb:8:in `each’ […]