Tag: rvm

不能与sudo一起使用RVM安装的Ruby

我已经成功地configurationRVM使用Ruby 1.9.2,一切都很好。 但是,当我试图使用sudo运行Ruby时,它说它找不到RVM或Ruby: $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] $ sudo ruby -v [sudo] password for administrator: sudo: ruby: command not found 这是正确的行为还是我的RVMconfiguration错误? 也许我应该使用系统安装 ?

导轨控制台,RVM和readline的问题

我已经安装了rvm,以确保我的本地开发版本的ruby与我的服务器上的特定应用程序(ruby1.8.7)相同。 我已经完成了这个,并安装ruby1.8.7好。 但是,当我尝试启动导轨控制台时出现此错误: Readline was unable to be required, if you need completion or history install readline then reinstall the ruby. You may follow 'rvm notes' for dependencies and/or read the docs page http://rvm.beginrescueend.com/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the […]

RVM Ruby 1.9.1安装无法findzlib,但其运行时和开发库在那里

尝试让Ruby 1.9.1在全新安装(Fedora)上运行并运行RVM。 在做rvm install 1.9.1 ,rubygems错误日志显示zlib不能被find 没有这样的文件加载 – zlib(LoadError) 但是,zlib运行时和开发库都已安装并且是最新的。 我现在有点不知所措。

Rails 3 – 没有这样的文件加载 – openssl

当运行Rails服务器时,我得到以下错误:没有这样的文件加载 – openssl 我尝试一个我在网上find的解决scheme 我去〜/ .rvm / src / ruby​​-1.9.2-head / ext / openssl。 我input:ruby extconf.rb,但我得到以下内容: === OpenSSL for Ruby configurator === === Checking for system dependent stuff… === checking for t_open() in -lnsl… no checking for socket() in -lsocket… no checking for assert.h… yes === Checking for required stuff… === checking for openssl/ssl.h… no […]

如何使用RVM更新Ruby解释器?

我前段时间安装了几个Ruby解释器版本的RVM。 我如何更新它,因为新版本已经发布了? 我发现只有一种方法: rvm install 1.9.2-rc1 && rvm remove 1.9.2-preview1 ,但是我的gem丢失了。 我可以不时更新分行吗? 我还没有在文档中find任何提示。

RVM Bundle安装缺lessGem错误,即使安装了Gem

即使我目前已经安装了Bundler gem(当我运行$ gem list时出现),我得到以下错误。 ERROR: Gem bundler is not installed, run `gem install bundler` first. 我正在使用RVM,我的$ PATH如下所示: /Users/cjstingl/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/bin: /Users/cjstingl/.rvm/gems/ruby-1.9.2-p290@global/bin: /Users/cjstingl/.rvm/rubies/ruby-1.9.2-p290/bin: /Users/cjstingl/.rvm/bin: /Users/cjstingl/.bin: /usr/local/sbin: /usr/local/Cellar/php/5.3.6/bin: /usr/local/share/python: /usr/bin: /bin: /usr/sbin: /sbin: /usr/local/bin: /usr/X11/bin 这也是我的gem环境 RubyGems Environment: – RUBYGEMS VERSION: 1.8.15 – RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.2.0] – INSTALLATION DIRECTORY: /Users/cjstingl/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd – RUBY EXECUTABLE: /Users/cjstingl/.rvm/rubies/ruby-1.9.2-p290/bin/ruby – […]

山狮rvm安装1.8.7 x11错误

更新到山狮后,我试着安装1.8.7,我得到错误。 没有findX11文件,我安装了Xquarkz,但没有任何改变。 怎么了? Fail to find [tclConfig.sh, tkConfig.sh] Use MacOS X Frameworks. Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk. clang -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-06-29\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 -fno-common -pipe -fno-common -c stubs.c In file included from stubs.c:10: /usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' […]

Xcode – configure:error:在$ PATH中找不到可接受的C编译器

从头开始重build一个mac。 安装xcode和rvm,然后尝试安装ruby,但他们都给我: Error running ' ./configure –prefix=/Users/durrantm/.rvm/rubies/ruby-1.9.3-p125 –enable-shared –disable-install-doc –with-libyaml –with-opt-dir=/Users/durrantm/.rvm/usr ', please read /Users/durrantm/.rvm/log/ruby-1.9.3-p125/configure.log There has been an error while running configure. Halting the installation. Michaels-MacBook-Air:~ durrantm$ 日志有: checking for gcc… no checking for cc… no checking for cl.exe… no configure: error: in `/Users/durrantm/.rvm/src/ruby-1.9.2-p290': configure: error: no acceptable C compiler found in $PATH 我需要gcc […]

Rubygems,Bundler和RVM混淆

在再次询问之前,我读了“ Rubygems,Bundler和RVM之间的关系 ”。 好吧,这样的问题很多,但是回答的人说他们和Rubygems,RVM和Bundler一起工作,他们没有解释每个工作是如何独立的。 当我们安装gem的时候,我真的很困惑,三个人是如何孤立地工作的。 请不要告诉我你是如何工作的,这对我有帮助,但是当我们和他们一起玩时,我不知道发生了什么。 我的困惑可以分解成这些问题。 在以下情况下安装的gem在哪里? 我只有Rubygems(没有RVM或Bundler)? Rubygems和RVM安装? Rubygems,RVM和Bundler是否安装? 请通过networking上的资源或详细的答案来帮助我理解这些内容。

如何安装RVM系统需求,而无需为RVM用户提供sudo访问权限

在我的Debian服务器上,有一个名为“部署者”的用户没有sudo访问权限,并安装了RVM。 使用“部署者”(如1.9.3)安装Ruby时,会触发安装依赖项的任务 "Installing requirements for debian, might require sudo password." 失败并停止安装,因为“部署者”不能sudo。 我不想将“部署者”添加到sudoers列表中,也不想为其他用户安装RVM,只是一次性安装依赖项。 什么是安装该依赖关系的正确方法? 或者我如何列出他们手动安装?