rvm

How to make xcode use the correct version of ruby when running a script?

余生颓废 提交于 2019-12-18 15:08:44
问题 In xcode I have a 'run script' build phase that runs a ruby script. However, it seems that xcode is trying to run it using the default mac 1.8 version of ruby rather than the latest version. Given that the script requires a gem, it's failing with a require error and the path in the error points to /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/ Obviously the 1.8 in that path is making me suspicious. If I open up terminal and run the command ruby -v then it

/usr/bin/env ruby_noexec_wrapper fails with no file or directory

前提是你 提交于 2019-12-18 14:52:33
问题 When I try to start chef-solr as service it's failing with the following error # service chef-solr start Starting chef-solr: /usr/bin/env: ruby_noexec_wrapper: No such file or directory [FAILED] But when I run it manually from command line it's running successfully # chef-solr -d -c /etc/chef/solr.rb -L /var/log/chef/solr.log -P /var/run/chef/solr.pid # echo $? 0 # ps -ef | grep chef root 2691 1 12 04:19 ? 00:00:01 java -Xmx256M -Xms256M -Dsolr.data.dir=/var/lib/chef/solr/data -Dsolr.solr

/usr/bin/env ruby_noexec_wrapper fails with no file or directory

拥有回忆 提交于 2019-12-18 14:52:29
问题 When I try to start chef-solr as service it's failing with the following error # service chef-solr start Starting chef-solr: /usr/bin/env: ruby_noexec_wrapper: No such file or directory [FAILED] But when I run it manually from command line it's running successfully # chef-solr -d -c /etc/chef/solr.rb -L /var/log/chef/solr.log -P /var/run/chef/solr.pid # echo $? 0 # ps -ef | grep chef root 2691 1 12 04:19 ? 00:00:01 java -Xmx256M -Xms256M -Dsolr.data.dir=/var/lib/chef/solr/data -Dsolr.solr

After installing ruby gems, running the new gem returns “Could not find” errors

允我心安 提交于 2019-12-18 13:07:20
问题 Fresh Ubuntu 10.04 install: I'm having some trouble getting my gem install process to play nicely. Any time I install a gem, it goes through a nice, straightforward process with no problems: $ gem install rails Successfully installed rails-3.2.2 1 gem installed And then to verify the version, perhaps a simple "rails -v"? Nope: $ rails -v /home/pragone/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst

Phusion Passenger is throwing errors after upgrading Ruby and Rails using rvm

强颜欢笑 提交于 2019-12-18 12:56:18
问题 I recently upgraded my Rails setup to 3.1.3 and I'm having issues with Phusion Passenger loading an older app on this server. I got everything running on a testapp but I'm still having issues with this one app. When I run the Webrick server on port 3000 my app runs perfectly but when attempting to access it through the virtual host I continue to get Passenger errors. Here's the info: Error being thrown by Passenger Ruby (Rack) application could not be started Error message: Could not find

Why is this permissions error occurring with mod_passenger.so?

我们两清 提交于 2019-12-18 12:21:43
问题 I'm setting up a production RHEL 6 server with RVM and Passenger. I've gotten through installing RVM (to my home dir), installing Passenger, and adding the required lines to httpd.conf : LoadModule passenger_module /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11 PassengerRuby /home/em/.rvm/wrappers/ruby-1.9.2-p290@rails_3_production/ruby But when I

rvm install: ruby installation error

假如想象 提交于 2019-12-18 11:57:57
问题 I want to install ruby on my Linux Mint 12. I am following this tutorial and this one. when I run rvm install 1.9.3 I see this error: Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3, this may take a while depending on your cpu(s)... ruby-1.9.3 - #fetching ruby-1.9.3 - #extracting ruby-1.9.3- to /usr/share/ruby-rvm/src/ruby-1.9.3 ERROR: Error running 'bunzip2 < '/usr/share/ruby-rvm/archives/ruby-1.9.3-.tar.bz2' | tar xf - -C /usr/share/ruby-rvm/tmp/rvm_src_4428', please

Cannot install RVM . Permission denied in /usr/local/rvm

╄→尐↘猪︶ㄣ 提交于 2019-12-18 11:06:31
问题 Based on my previous thread : RVM installed by Ruby not working? where i had installed RVM using the root user, I then had to entirely remove the RVM install and now i am installing as a user. So i did : Create a new user by doing : useradd newuser Follow the instructions on the RVM website and execute the command : bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) Now, i get the error : mkdir: cannot create directory `/usr/local/rvm': Permission denied The new user i

Is a system-wide install of RVM a bad idea? [closed]

。_饼干妹妹 提交于 2019-12-18 11:06:06
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I'm confused about whether, on a server, you're supposed to install RVM as a regular user or do a system-wide installation, and, if the latter, how you're supposed to do things like bundle install without using sudo . Is there any definite set of guidelines on what you're

Redis数据的导出和导入(dump和load方式)

Deadly 提交于 2019-12-18 10:56:30
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 网上有些文章已经不再适用,本人也是踩了些坑,在此记录下。 迁移redis数据一般有如下3种方式: 第三方工具redis-dump,redis-load aof机制,需要开启aof功能 rdb存储机制 这里介绍第一种方式,通过redis-dump导出数据,再通过redis-load导入。开始吧。 第一步:安装gcc 终端执行 gcc 命令,如果提示没有此命令,说明需要安装。否则跳过此步 yum -y install gcc automake autoconf libtool make 第二步:配置Ruby官网源地址 因为默认的Ruby官网源地址在国外,访问速度很慢,所以需要配置成国内的源地址 gem sources -a http://gems.ruby-china.org/ 添加国内源地址 gem source -l 查看是否添加成功 gem source --remove http://rubygems.org/ 去掉国外源地址 gem source -l 确认现在的源地址只有国内 第三步:安装rvm命令 配置Google DNS /etc/resolv.conf nameserver 8.8.8.8 gpg2 --keyserver hkp://keys.gnupg.net --recv-keys