rvm

Rails failing and strange bundle installations

蓝咒 提交于 2020-01-05 07:53:05
问题 There's one thing that I can't figure out. When I try to run rails it says something like: Could not find sprockets-2.1.2 in any of the sources Run `bundle install` to install missing gems. By the way sprockets-2.1.2 is installed. (I've run bundle install successfully) But as far as I understand when I run rails the global bin is being run and so my local gems installed by bundler are not accessible by it. Can I solve this somehow without having to manually install a lot of gems like: gem

Installing Ruby on Rails on Mac is failing

微笑、不失礼 提交于 2020-01-05 06:57:45
问题 I am trying to install Ruby on rails on my Mac for the first time. I ran the following command on my terminal windows - rvm install 2.0.0 But I keep getting this error. Error running './configure --prefix=/Users/tusharmathur/.rvm/rubies/ruby-2.0.0-p0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',

How to load rvm with correct gemset then execute a rake task

寵の児 提交于 2020-01-05 06:32:11
问题 Writing a script that cds into another dir, loads the correct rvm rvmrc file, then allows me to execute a rake task. I have the below script working on my computer, but when others pull it down to their machine they get the following error "Ruby rvmrc is not installed". Bundler.with_clean_env do Dir.chdir("../some_dir") do puts `source ~/.rvm/scripts/rvm && rvm --with-rubies rvmrc exec -- rake some_task` end end I have the most up to date version of rvm (so do they) and I'm on mt.lion I have

rvm doesn't install in centos without root privileges

吃可爱长大的小学妹 提交于 2020-01-05 04:02:26
问题 I trying to install RVM using deployer user that doesn't had root privileges ant I getting this error: bash: line 439: ./scripts/install: Permission denied Any help? Thank you! 回答1: I was trying to install rvm in folder mounted with noexec option. Mounting partition without this option works! 来源: https://stackoverflow.com/questions/13848422/rvm-doesnt-install-in-centos-without-root-privileges

There was an error installing gem gem-wrapper, rubygems-bundler

天涯浪子 提交于 2020-01-05 03:47:29
问题 I am trying to install ruby version 2.1.2 using rvm. Below is the details of the same. Installation of ruby 2.1.2 through rvm is completed with following warnings. After installation, when doing gem list getting below error. I am pretty new to ruby on rails. Any leads on how to solve this please? 来源: https://stackoverflow.com/questions/59341667/there-was-an-error-installing-gem-gem-wrapper-rubygems-bundler

Getting a While executing gem … (Gem::RemoteFetcher::FetchError) 503 error when attempting to install rails

僤鯓⒐⒋嵵緔 提交于 2020-01-05 02:54:06
问题 This is the error I get when I try to do a "gem install rails -v 4.1.0" using Ruby 2.1.1 and RVM. ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Service Unavailable 503 (http://api.rubygems.org/api/v1/dependencies?gems=activerecord) Not sure what is causing this, anybody have any ideas? 回答1: It would be a ssl problem. Change your gem sources and try again. gem sources --remove https://rubygems.org/ gem sources -a http://rubygems.org/ 回答2: Make sure your rvm ssl

Unable to run rake or rails commands (like rails c) - libcrypto error

安稳与你 提交于 2020-01-05 02:31:07
问题 When attempting to run any rake, rails or bundle commands, I get following error: /home/username/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': libcrypto.so.1.0.0: cannot open shared object file: No such file or directory - /home/username/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so I have tried rvm pkg install openssl, rvm remove 1.9.3, rvm reinstall 1.9.3, reinstall bundler and all gems. I read on another forum that

/usr/bin/env: ruby: No such file or directory at SSH login

六眼飞鱼酱① 提交于 2020-01-04 15:33:01
问题 I'm trying to run a ruby script from inside of a bash script at SSH login. I did put the ForceCommand /etc/ssh/MyScript.sh && $SSH_ORIGINAL_COMMAND inside sshd_config and inside MyScript.sh #!/bin/bash ./MyRubyScript.rb In my MyRubyScript.rb #!/usr/bin/env ruby #Some Ruby logic puts 'Hey' I wanted that MyRubyScript.rb to execute at the event that any one tries to login through SSH. But whenever I try to SSH login into the server, I get the following error. /usr/bin/env: ruby: No such file or

Ruby on Rails Mac OSX Mavericks issues after RVM install

孤街浪徒 提交于 2020-01-03 17:04:27
问题 I have been learning Ruby on Rails for a couple of months, and everything was working. Then, for the needs of a tutorial, I tried to install RVM, in order to downgrade my setup to older versions of Ruby and Rails. And since then, I kept running into troubles. For instance, anytime I launch a new Terminal session, here is what I get: You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers, you can switch to '.ruby-version' using 'rvm rvmrc

Rails 3's “bundle install” is super fast (takes 1 second), but no Rails is there afterwards? (using rvm)

纵饮孤独 提交于 2020-01-03 13:08:42
问题 I am using rvm, doing the following: rvm install ree <--- (Ruby Enterprise Edition), or this can be 1.8.7 or 1.9.2 rvm ree rvm gemset create 'proj' cd path/to/proj bundle install so Gemfile in that project says: gem 'rails', '3.0.0' and bundle install is super fast, reporting Using rails (3.0.0) but after that when I type $ rails -v /Library/Ruby/Site/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems.rb