rvm

Could not find rake-10.1.0 in any of the sources

旧时模样 提交于 2019-11-30 15:26:36
I have been working with rails and have been trying to setup passenger with rake 10.1.0 and it sends back me this errors. Here is the link to the error. Website LInk It looks like Bundler could not find a gem. This is probably because your application is being run under a different environment than it's supposed to. Please check the following: * Is this app supposed to be run as the `rails` user? * Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use. * Are you using RVM? Please check whether the correct gemset is

How to correctly install RVM in Docker?

落爺英雄遲暮 提交于 2019-11-30 14:54:01
问题 This is what I have in my Dockerfile : RUN gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 RUN curl -L https://get.rvm.io | bash -s stable RUN /bin/bash -l -c "rvm requirements" RUN /bin/bash -l -c "rvm install 2.3.3" Works just fine, however, when I start the container, I see this: $ docker -it --rm myimage /bin/bash /root# ruby --version ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] /root# /bin/bash -l -c "ruby --version" ruby 2.3.3p222 (2016-11-21 revision 56859)

RVM gem permissions error

我们两清 提交于 2019-11-30 14:48:41
I started trying to set up a local rails installation for development. After I installed in using apt-get , however, I learned about RVM, so I removed the earlier one, and reinstalled from RVM. It looks like I have residual problems, though. Specifically, when I try to install rails I get... $ gem install rails ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /var/lib/gems/1.9.1 directory. This already looks like a problem, because I don't want it to be in the /var/ directory, I want it to be in the user directory. So, I check the following...

Can't get mysql2 gem to work with MAMP2 and RVM on Lion, Rails3 app

狂风中的少年 提交于 2019-11-30 14:34:31
I am using MAMP2, rvm on OS X Lion and there is no way I can get mysql2 gem to work with my Rails app. I've followed this blog post http://blog.mirotin.net/35/mamp-1-9-5-mysql-5-5-9-and-ruby-mysql2 and this one http://www.pa-ket.com/blog/show/12-osx-ruby-mysql2-gem-python-mysqldb-using-mamp These were the steps: $ cd /tmp $ mv /Users/yourname/Desktop/mysql-5.5.9.tar.gz . $ tar xf mysql-5.5.9.tar.gz $ cd mysql-5.5.9 $ brew install cmake $ cmake . -DMYSQL_UNIX_ADDR=/Applications/MAMP/tmp/mysql/mysql.sock -DCMAKE_INSTALL_PREFIX=/Applications/MAMP/Library This step failed: $ make -j 3 After

RVM system-wide install script url broken — what is replacement?

帅比萌擦擦* 提交于 2019-11-30 14:07:51
My RVM system-wide installation scripts are broken, both in the form of Linode StackScripts and Chef-solo Recipes. Per the instructions on the RVM website, my scripts execute the following commands as root to install RVM on a system-wide basis: echo "Installing RVM system-wide" >> $logfile bash < <( curl -L http://bit.ly/rvm-install-system-wide ) cat >> /etc/profile <<'EOF' # Load RVM if it is installed, # first try to load user install # then try to load root install, if user install is not there. if [ -s "$HOME/.rvm/scripts/rvm" ] ; then . "$HOME/.rvm/scripts/rvm" elif [ -s "/usr/local/rvm

RubyMine Unit tests - Test Framework quit unexpectedly

倖福魔咒の 提交于 2019-11-30 13:11:35
问题 When I try to run the tests from within RubyMine I have an issue. But what is strange is that it work fine when I run the tests from the command line. "Test framework quit unexpectedly" /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest /Users/sabour/Desktop/EIP/project/test/controllers/categories_controller_test.rb Testing started at 1:39 AM ... Run options: --seed 14336 # Running tests: /usr/local/rvm/gems/ruby-1.9.3-p392/gems

Do you check in your rvmrc file?

耗尽温柔 提交于 2019-11-30 13:09:55
问题 Ruby Version Manager allows us to use an .rvmrc file in each project to set up which ruby version and gem set to load. Should this file be checked in to source control? Or does this presume too much about other developers' working environment? 回答1: Source Control Management is mainly about reproducibility : are you able to reproduce a version of a development effort based on what you have stored in your SCM? If that .rvmrc file is needed for any developer on your project to be able to work

How to correctly install RVM in Docker?

我与影子孤独终老i 提交于 2019-11-30 12:58:44
This is what I have in my Dockerfile : RUN gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 RUN curl -L https://get.rvm.io | bash -s stable RUN /bin/bash -l -c "rvm requirements" RUN /bin/bash -l -c "rvm install 2.3.3" Works just fine, however, when I start the container, I see this: $ docker -it --rm myimage /bin/bash /root# ruby --version ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] /root# /bin/bash -l -c "ruby --version" ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux] Obviously, this is not what I want. As far as I understand, the problem is that bash doesn

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

别等时光非礼了梦想. 提交于 2019-11-30 12:51:39
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 correctly returns 2.0.0p0 which I installed and set as default using RVM. How might I get Xcode to look

custom_require.rb:36:in `require': no such file to load — myapp(LoadError)

我与影子孤独终老i 提交于 2019-11-30 12:46:51
i get the above error, all i did was install rvm and update to ruby 1.9.2 from the default ruby that you get with mac. all my gems appear in the gem list but do i need to specify a path somewhere? cheers, glenno. Check that you have the gems installed gem list If not, install as usual gem install whatever or if you want a specific version gem install whatever -v 1.2.3 Or if you have bundler in your project (ie Rails), it's just bundle install If you have all the gems, then this is probably a local file, and you're probably coming from Ruby version < 1.9, you need to either fix your $LOAD_PATH