rvm

Upgrading Global Ruby Version on macOS

好久不见. 提交于 2020-03-25 22:01:47
问题 I am trying to update Ruby on my computer to version 2.7.0 as that is the latest stable version. Running macOS Catalina Version 10.15.3 Have tried the top two solutions from this StackOverflow post. 1. Using just brew brew upgrade ruby just confirms that "ruby 2.6.5 already installed" 2. Using rbenv rbenv install 2.7.0 rbenv global 2.7.0 After installation I get confirmation that ruby 2.7.0 is installed, but when I close terminal, and check version, 2.6.5 is still the current version.

Where to source .profile in .bash_profile to install RVM in Cygwin?

三世轮回 提交于 2020-03-06 02:58:07
问题 I am installing RVM on a windows machine using cygwin. I used the command is curl -L https://get.rvm.io | bash -s stable to get RVM. But there is a problem. Please see the WARNING section in the output below and please help me to fix it. # mspc, # # Thank you for using RVM! # We sincerely hope that RVM helps to make your life easier and more enjoyable!!! # # ~Wayne, Michal & team. In case of problems: http://rvm.io/help and https://twitter.com/rvm_io * WARNING: You have '~/.profile' file, you

Could not find 'jekyll' (>= 0)

这一生的挚爱 提交于 2020-03-05 04:26:08
问题 Using jekyll -v returns the following: /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:308:in 'to_specs': Could not find 'jekyll' (>= 0) among 21 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/Users/myusername/.rvm/gems/ruby-2.4.2:/Users/myusername/.rvm/gems/ruby-2.4.2@global', execute 'gem env' for more information from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:320:in 'to_spec' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:65:in 'gem' from /usr/local/bin

阿里云[CentOS 7.2] Redis Cluster 搭建

馋奶兔 提交于 2020-02-28 23:02:04
准备工作 添加Redis对应端口到ip白名单 systemctl status firewalld Active: inactive (dead) --关闭 Active: active (running) --运行中 firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone=public --add-port=8080/tcp --permanent firewall-cmd --zone=public --add-port=6001/tcp --permanent firewall-cmd --zone=public --add-port=6002/tcp --permanent firewall-cmd --zone=public --add-port=6003/tcp --permanent firewall-cmd --zone=public --add-port=6004/tcp --permanent firewall-cmd --zone=public --add-port=6005/tcp --permanent firewall-cmd --zone=public --add-port=6006/tcp --permanent firewall-cmd -

jikes rvm3.0.1的编译问题小结

半城伤御伤魂 提交于 2020-02-28 22:08:02
1. 运行 bin/buildit localhost prototype-opt # Change this to select appopriate configuration 找不到jvm,解决: 修改javahome_x86_64,使新的值指向 /opt/jdk1.5.0.22( 考虑到原来的javahome指向jdk1.5.0所以我们依然使用这个版本) 2. rvm3.0.1使用jdk1.5.0_22, 现在的问题是 apt not found apt 在$javahome/bin/apt位置,可以直接调用 ,我使用了它的绝对路径 3. 新的问题是现在依赖文件下载失败,解决:在sourceforge.net上找到其它可用的mirror替换掉即可。 4.强制类型转换为char*类型的数据,然后出现的错误是pthread_create等未定义 在build.xml中修改相应的cpp编译选项:-lpthread改为-pthread即可 来源: oschina 链接: https://my.oschina.net/u/1444089/blog/195148

Ubuntu下安装ruby的三种方式

99封情书 提交于 2020-02-28 15:57:24
方法一:使用apt-get安装 可以直接使用两个命令完成Ruby的安装。 # sudo apt-get update # sudo apt-get install ruby 或者 # sudo apt-get install ruby2.0 方法二:使用brightbox ppa仓库安装 # sudo apt-get install python-software-properties # sudo apt-add-repository ppa:brightbox/ruby-ng # sudo apt-get update # sudo apt-get install ruby2.1 ruby2.1-dev 方法三:使用RVM安装 RVM是Ruby的版本管理器工具。 1、安装RVM # sudo apt-get curl # curl -L https://get.rvm.io | bash -s stable # source ~/.rvm/scripts/rvm 2、安装RVM的环境依赖 # rvm requirements 3、安装Ruby # rvm install ruby 如果想在Ubuntu上安装多个Ruby版本,那么可以使用下面的命令来指定使用rvm作为默认的Ruby版本管理。 # rvm use ruby --default 检查当前成功安装的Ruby版本 #

Error installing Rmagick on Mountain Lion

Deadly 提交于 2020-02-10 21:29:26
问题 I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick. Here is the error message I am getting: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for Ruby version >= 1.8.5... yes checking for /usr/local/bin/gcc-4.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes checking for HDRI disabled version

Error installing Rmagick on Mountain Lion

╄→尐↘猪︶ㄣ 提交于 2020-02-10 21:29:05
问题 I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick. Here is the error message I am getting: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for Ruby version >= 1.8.5... yes checking for /usr/local/bin/gcc-4.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes checking for HDRI disabled version

Ruby not starting on mac os x

寵の児 提交于 2020-02-04 01:43:13
问题 when I try to use ruby with the terminal, nothing happens. The last days I've used it and everything worked but it doesn't anymore. I installed rvm and the 1.9.3 version of ruby. It works when I launch a script with ruby myscript.rb , and I tried installing rails but when I type gem install rails I get an error: /Users/romainberger/.rvm/rubies/ruby-1.9.3-p194/bin/gem:4: warning: Insecure world writable dir /Users/romainberger/.rvm/gems/ruby-1.9.3-p194 in PATH, mode 040777 As there is no

Can't install therubyracer in JRuby

北慕城南 提交于 2020-02-01 05:00:24
问题 I've installed RVM and then Jruby, this the version that i get when i type: jruby -v: jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) (Java HotSpot(TM) Client VM 1.7.0_02) [linux-i386-java] The problem is that I can't install therubyracer gem, i get this when i try to install by jruby -S gem install therubyracer: /usr/local/rvm/rubies/jruby-1.6.5.1/bin/jruby extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library very we$ Check http://kenai.com/projects/jruby