Tag: rvm

快速干扰器安装问题

由于fast-stemmer存在问题,我很难安装我想要的任何rubygem。 我把错误放在了下面。 Building native extensions. This could take a while… ERROR: Error installing fast-stemmer: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb creating Makefile make “DESTDIR=” clean make “DESTDIR=” compiling porter.c porter.c:359:27: warning: ‘&&’ within ‘||’ [-Wlogical-op-parentheses] if (a > 1 || a == 1 && !cvc(z, z->k – 1)) z->k–; ~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~ porter.c:359:27: […]

rvm安装 – / usr / local / rvm:权限​​被拒绝(在此之前,我在Ubuntu中错误地删除了主目录)

可能重复: 如何修复使用SUDO完成的RVM安装 我在服务器’myuser’上创建了一个用户。 登录并运行此cmd: curl -L get.rvm.io | bash -s — –auto-dotfiles 一切都很好,安装正确。 因此,我使用另一个用户登录名删除了主目录,即/ home / myuser(其中安装了rvm)(由其他用户’anothuser’登录)。 然后丢失了rvm,所以尝试运行相同的安装cmd,但现在出现了这个错误: curl -L get.rvm.io | bash -s — –auto-dotfiles % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 185 100 185 0 0 349 0 –:–:– –:–:– –:–:– […]

如何使用RVM将Ruby更改为1.9.3版(再次)?

我曾经在Ubuntu上使用Ruby版本1.9.3并进行了更新,可能搞砸了我的bash配置文件,我需要帮助才能将其转回而不是使用版本1.8.7。 现在rails s使用Ruby 1.8.7打开服务器,因为我在我的应用程序中使用了更新的语法而出现错误。 .bash_profile : cat ~/.bash_profile ### Added by the Heroku Toolbelt export PATH=”/usr/local/heroku/bin:$PATH” [[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm” # Load RVM into a shell session *as a function* which rails : /usr/local/bin/rails which ruby : /usr/bin/ruby ruby -v : ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] rvm list : rvm rubies […]

为什么我的Ruby Git脚本钩子运行错误的$ PATH?

我正在使用RVM。 我为一个项目编写了一个Git pre-commit钩子: #!/usr/bin/env ruby puts RUBY_VERSION puts `echo $PATH` exit(1) 当由Git运行时输出它: $ git ci -m ‘foo’ 1.8.7 /usr/libexec/git-core:/usr/bin:/usr/local/heroku/bin:/Users/mgoerlich/.rvm/gems/ruby-2.0.0-p195@global/bin:/Users/mgoerlich/.rvm/rubies/ruby-2.0.0-p195/bin:/Users/mgoerlich/.rvm/bin:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/platform-tools:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/tools:/usr/local/bin:/usr/local/sbin:/Users/mgoerlich/.dotfiles/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin/core_perl:/Users/mgoerlich/bin:/usr/local/share/npm/bin:/usr/local/share/npm/bin 它似乎与错误的Ruby版本一起运行,因为$PATH与bash或zsh或sh中的不同。 似乎git正在操纵$PATH 。 手动运行时,我得到: $ .git/hooks/pre-commit 2.0.0 /usr/local/heroku/bin:/Users/mgoerlich/.rvm/gems/ruby-2.0.0-p195@global/bin:/Users/mgoerlich/.rvm/rubies/ruby-2.0.0-p195/bin:/Users/mgoerlich/.rvm/bin:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/platform-tools:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/tools:/usr/local/bin:/usr/local/sbin:/Users/mgoerlich/.dotfiles/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin/core_perl:/Users/mgoerlich/bin:/usr/local/share/npm/bin:/usr/local/share/npm/bin 在提交钩子的输出中,前面有两个路径,其中一个是/usr/bin ,其中放置了系统Ruby的可执行文件。 这是一种已知行为吗? 我可以以某种方式操纵它吗? 我知道我可以在shebang中指定正确的Ruby版本的完整路径,但这不是我想要的。

无法在OSX上运行带有RVM的Ruby 2.2.3

我有两部MacBook(一部在小牛队,另一部在优胜美地),同样的事情发生在两者上。 使用RVM安装Ruby 2.2.3后,出现以下错误: .rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/http.rb:923:in `connect’: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError) 我曾尝试在线搜索解决方案,但似乎没有任何效果。 大多数有此问题的人都在运行Windows机器。 $ rvm osx-ssl-certs status all Certificates for /usr/local/etc/openssl/cert.pem: Up to date. Certificates for /etc/openssl/cert.pem: Up to date. 切换回2.2.2工作正常。 有什么想法吗?

在命令行中调用“mvim。”时“dyld:Library not loaded”,“libruby.1.9.1.dylib”

我正在尝试使用“mvim”将我的rails项目打开到mvim(macvim)。 但是我收到以下错误。 ➜ cs193p git:(master) mvim . dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib Referenced from: /usr/local/Cellar/macvim/7.3-64/MacVim.app/Contents/MacOS/Vim Reason: image not found [1] 85219 trace trap mvim . ➜ cs193p git:(master) mvim –version dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib Referenced from: /usr/local/Cellar/macvim/7.3-64/MacVim.app/Contents/MacOS/Vim Reason: image not found 我最近删除了RVM(“rvm implode”,其中包括ruby 1.9.3-p125)并重新安装了1.9.3-p194。 我需要做些什么来解决这个问题? 谢谢

全新安装Rails并获取OpenSSL错误:“已初始化常量OpenSSL”

我被困在试图继续使用RoR。 我做了Ruby Installfest,但遇到了我认为是openssl.bundle的问题。 我正在使用RVM,并且正在运行Rails 5.0.1和Ruby 2.4.0 我尝试使用rvm implode完全删除/重新开始,然后重新安装并重新安装RailsApps指南后的所有内容,但仍然看到相同的错误。 我正在运行最新版本的macOS Sierra。 这是我在my_app中运行$ Rake -T时得到的输出。 richsmith@Richs-MacBook-Pro:~/workspace/myapp$ rake -T /Users/richsmith/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::VERSION /Users/richsmith/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_VERSION /Users/richsmith/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_LIBRARY_VERSION /Users/richsmith/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_VERSION_NUMBER /Users/richsmith/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_FIPS /Users/richsmith/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Config::DEFAULT_CONFIG_FILE /Users/richsmith/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already […]

在Ruby脚本中需要Ruby Gem打破了Cron作业执行

我正在尝试使用Gems运行一个cron作业。 我已经通过RVM安装了ruby,当我需要一个gem时它打破了cron的工作。 我试过要求两个完全不同的gem,PG / Pry,当我需要时,cronjob没有完成。 这是“测试代码”工作正常: open(‘/home/log.log’, ‘a’) do |f| f.puts Time.now.to_s end 以下是我设置cronjob的方法: * * * * * /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby /home/test1.rb 我每分钟都能看到新的输出。 当我在顶部添加一个require gem行时,它会中断,但只有在通过cron运行时: require ‘pg’ open(‘/home/log.log’, ‘a’) do |f| f.puts Time.now.to_s end cronjob运行(我可以看到它在sys日志中执行),但从未完成(没有输出进入文本文件)。 我在两个单独的服务器上尝试了这个,一个是Debian,一个是CentOS,两者都有相同的问题。 奇怪的是,这只会影响cron作业,如果我从控制台运行相同的ruby文件:/home/test1.rb它会正常工作。 任何帮助都会很棒。

rvm install ruby​​-1.9.3-p286:运行’make -j 9’时出错(OSX:Mountain Lion)

运行rvm install ruby-1.9.3-p286给了我这个错误: Error running ‘make -j 9’, please read /Users/epeterson/.rvm/log/ruby-1.9.3-p286/make.log There has been an error while running make. Halting the installation.

在Mac OS Lion上安装Ruby 1.9.2的问题

我正在运行Lion,利用Xcode 4,安装了RVM和自制程序,但我只能运行ruby 1.8.7 spurvis:〜流氓$ ruby​​ -v ruby 1.8.7(2010-01-10 patchlevel 249)[universal-darwin11.0] spurvis:〜流氓$ 我已经阅读了几个与此主题相关的线程,但似乎没有任何问题可以解决我的问题: spurvis:〜流氓$ rvm安装1.9.2 从源代码安装Ruby到:/Users/rogue/.rvm/rubies/ruby-1.9.2-p290,这可能需要一段时间,具体取决于你的cpu … ruby-1.9.2-p290 – #fetching ruby-1.9.2-p290 – #extracted to /Users/rogue/.rvm/src/ruby-1.9.2-p290(已提取) 将yaml-0.1.4.tar.gz提取到/Users/rogue/.rvm/archives 将yaml-0.1.4.tar.gz解压缩到/Users/rogue/.rvm/src 在/Users/rogue/.rvm/src/yaml-0.1.4中配置yaml。 在/Users/rogue/.rvm/src/yaml-0.1.4中编译yaml。 将yaml安装到/Users/rogue/.rvm/usr ruby-1.9.2-p290 – #configuring ruby-1.9.2-p290 – #compiling 错误:运行’make’时出错,请阅读/Users/rogue/.rvm/log/ruby-1.9.2-p290/make.log 错误:运行make时出错。 暂停安装。 make.log给了我以下信息: [2011-08-08 11:50:52] make /usr/bin/gcc-4.2 -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initial rbconfig.rb不变 ./miniruby -I./lib -I.ext […]