rvm

RVM doesn't set correct gem path

时光总嘲笑我的痴心妄想 提交于 2019-11-26 23:03:58
问题 On a clean OS X Snow Leopard install, I have a problem with RVM: It sets the ruby path correctly but doesn't set the gem path. When I start a rails server, it mixes versions which doesn't work. To illustrate: $ rvm system $ which ruby /usr/bin/ruby $ which rails /usr/bin/rails $ rvm use 1.9.2-head Using /Users/m/.rvm/gems/ruby-1.9.2-head $ rvm gem list LOCAL GEMS [...] rails (3.0.7) [...] $ which ruby /Users/m/.rvm/rubies/ruby-1.9.2-head/bin/ruby $ which rails /usr/bin/rails Any ideas what

RVM and thin, root vs. local user

这一生的挚爱 提交于 2019-11-26 22:19:02
问题 So I'm trying to get thin to run as a service with RVM. After a thin install I manually updated /etc/init.d/thin to use an su - user when running the config command so that thin was running as a local user, rather than root. So far so good. Now, when I try to sudo service thin start it looks like it's trying to use the non-RVM version of Ruby (1.8.7 which was installed on the box to start with) to actually execute the command. I did a gem install thin on the non-RVM version, which then gets

Issue updating Ruby on Mac with Xcode 4.3.1

痴心易碎 提交于 2019-11-26 21:52:47
I'm using RVM to install it and it gives me this error: The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. I'm on Lion 10.7.3 and I have Xcode 4.3.1. shigeya Short answer is you can grab RVM master branch (not stable) to build it with LLVM (not gcc, I mistyped initially). It has appropriate patches to make 1.9.3-p125 to run (at least better) with Xcode 4.3.1 by default. I provided the patch. If you already installed RVM, rvm get head will install the master branch. With command line tools installed with Xcode 4.3

Getting the warning “Insecure world writable dir /home/chance ” in PATH, mode 040777 for rails and gem

和自甴很熟 提交于 2019-11-26 21:25:52
I've tried this but it didn't work and seemed to be for osx. I have a fresh Ubuntu 10.10 install with rvm, rails 3 and ruby 1.9.2. I have a fresh rails app but using either gem or rails results in the following warnings (with lag). $ rails -v /home/chance/.rvm/gems/ruby-1.9.2-p180@global/gems/railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /home/chance in PATH, mode 040777 /home/chance/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.10/lib/bundler/runtime.rb:136: warning: Insecure world writable dir /home/chance in PATH, mode 040777 Rails 3.0.5 $ gem

Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile

自闭症网瘾萝莉.ら 提交于 2019-11-26 21:20:41
问题 I have seen a number of posts on this before and have followed their instructions but nothing is working. I'll outline below what I have done, and the instructions I have follows - would be grateful for any advice! I have followed the following installation instructions: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac I have downloaded X-code for OSX Mountain Lion, and installed the gcc compiler: $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc

How to Uninstall RVM? [duplicate]

浪子不回头ぞ 提交于 2019-11-26 21:13:47
Possible Duplicate: How to remove rvm (ruby version manager) from my system? How can I uninstall (or reinstall) RVM on Ubuntu 9.10? I messed up my current installation. Mukesh Singh Rathaur It’s easy; just do the following: rvm implode or rm -rf ~/.rvm And don’t forget to remove the script calls in the following files: ~/.bashrc ~/.bash_profile ~/.profile And maybe others depending on whatever shell you’re using. 来源: https://stackoverflow.com/questions/3950260/how-to-uninstall-rvm

redis安装、持久化、数据类型、常用操作、操作键值、安全设置、慢查询日志、存储session、主从配置、集群介绍、集群搭建配置、集群操作,php安装redis扩展

回眸只為那壹抹淺笑 提交于 2019-11-26 20:43:49
21.9 redis介绍 21.10 redis安装 21.11 redis持久化 21.12 redis数据类型 21.13/21.14/21.15 redis常用操作 21.16 redis操作键值 21.17 redis安全设置 21.18 redis慢查询日志 21.19 php安装redis扩展 21.20 redis存储session 21.21 redis主从配置 21.22 redis集群介绍 21.23/21.24 redis集群搭建配置 21.25 redis集群操作 扩展 redis 哨兵https://segmentfault.com/a/1190000002680804 http://www.cnblogs.com/jaycekon/p/6237562.html 一、redis介绍 Redis和Memcached类似,也属于k-v数据存储 Redis官网redis.io, 当前最新稳定版4.0.1 支持更多value类型,除了和string外,还支持hash、lists(链表)、sets(集合)和sorted sets(有序集合) redis使用了两种文件格式(即持久化):全量数据(RDB)和增量请求(aof)。全量数据格式是把内存中的数据(k和v)写入磁盘,便于下次读取文件进行加载。增量请求文件则是把内存中的数据序列化为操作请求

Emacs is ignoring my path when it runs a compile command

我们两清 提交于 2019-11-26 20:19:13
问题 I'm trying to get a compile command (rake cucumber) to run with a specific ruby version on my Mac OS X system, I use rvm to do this currently in the terminal. My ~/.MacOSX/environment.plist has the correct path in it, but emacs insists on prepending to this path and therefore making it useless. I've also tried: (when (equal system-type 'darwin) (setenv "PATH" (concat "/Users/fearoffish/.rvm/bin:/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin:

RVM installed by Ruby not working?

痴心易碎 提交于 2019-11-26 19:57:02
问题 I installed RVM using the single instruction mentioned at the RVM website (using git). Then I installed Ruby version 1.9.2 and 1.8.7 using: rvm install 1.9.2 rvm install 1.8.7 However, I cannot find the Ruby binary. When I try to execute the command, I get the following error: [root@server1 support]# rvm use 1.9.2 Using /usr/local/rvm/gems/ruby-1.9.2-p136 [root@server1 support]# ruby -bash: ruby: command not found Here is the output of rvm info : [root@server1 support]# rvm info system:

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

北城余情 提交于 2019-11-26 19:56:21
问题 I used RVM to install Ruby 1.9.3 on Ubuntu 12.04 by doing rvm pkg install openssl rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr And then when I try to run something along the lines of: require 'open-uri' open('https://www.google.com/') I get the error: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed How do I solve this? I have many similar threads where people have this problem in OSX, but how do I resolve it in