rvm

How do I find .bash_profile and add to my shell's initialization file? [closed]

北城余情 提交于 2019-12-01 04:03:28
I am trying to upgrade ruby using rvm. On the pragmatic site , it says: The important part is to add the following line to the end of your shell's initialization file (.bash_profile): [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" How do I do this? Where is this initialization file? Please help It would be /home/$USER/.bash_profile , but would only be present if you're actually using bash as your shell. Other shells will use a 'dot file' with their name in them instead. You can view them with ls -ad $HOME/.* There are two initialization files .bash_profile & .bashrc, both

Can't run Ruby 2.2.3 with RVM on OSX

若如初见. 提交于 2019-12-01 03:21:30
I've got two MacBooks (one on Mavericks, the other on Yosemite) and the same thing happens on both. After installing Ruby 2.2.3 with RVM, I get the following error: .rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/http.rb:923:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError) I've tried searching for a solution online, but nothing seems to work. Most of the people having this issues are running Windows machines. $ rvm osx-ssl-certs status all Certificates for /usr/local/etc/openssl/cert.pem: Up to date. Certificates for

rvm install ruby-1.9.3-p286: Error running 'make -j 9' (OSX: Mountain Lion)

强颜欢笑 提交于 2019-12-01 03:01:18
问题 Running rvm install ruby-1.9.3-p286 gives me this error: Error running 'make -j 9', please read /Users/epeterson/.rvm/log/ruby-1.9.3-p286/make.log There has been an error while running make. Halting the installation. 回答1: This took me forever to hunt down. Was trying different versions of make , gcc , etc. It turns out the format of the rvm_make_flags environment variable has changed from a string to an array and was not well communicated or documented. This may apply to all rvm_* env

Requiring a Ruby Gem in Ruby Script breaks Cron Job Execution

纵饮孤独 提交于 2019-12-01 01:26:33
I'm trying to run a cron job using Gems. I've installed ruby via RVM and when I require a gem it breaks the cron job. I've tried requiring two totally different gems, PG / Pry, and when I require either, the cronjob doesn't complete. Here is the "testing code" that works fine: open('/home/log.log', 'a') do |f| f.puts Time.now.to_s end Here is how I setup the cronjob: * * * * * /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby /home/test1.rb I can see new output every minute. And when I add a require gem line at the top, it then breaks, but only when run through cron: require 'pg' open('/home/log

rvm monit delayed_job

杀马特。学长 韩版系。学妹 提交于 2019-12-01 01:04:45
I am trying to run delayed_job using monit, but its failing to run as rvm's paths (local rvm installation per user basis) are not available to the command. My application is a rails2 app with bundler. Monit is not able to find bundler. Does anyone have any suggestions as to how i can tell about the rvm paths to monit? I am getting the error [rails@x-rws1 current]$ monit start delayed_job -c config/delayed_job.monitrc 'delayed_job' start: /usr/bin/env 'delayed_job' failed to start no such file to load -- bundler /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'

“dyld: Library not loaded”, “libruby.1.9.1.dylib” when calling “mvim .” in the command line

只谈情不闲聊 提交于 2019-12-01 00:41:24
问题 I'm trying to open my rails project into mvim (macvim) using "mvim ." but I get the following error. ➜ cs193p git:(master) mvim . dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib Referenced from: /usr/local/Cellar/macvim/7.3-64/MacVim.app/Contents/MacOS/Vim Reason: image not found [1] 85219 trace trap mvim . ➜ cs193p git:(master) mvim --version dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib

How do I install libksba on mac osx?

半腔热情 提交于 2019-12-01 00:22:59
问题 According to rvm requirements, "For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'" I am completely new and am not familiar with terminal commands. How can I install libksba without using homebrew? Please help!!! 回答1: I just installed libksba and its dependency libgpg-error from source and I can assure you that installing Homebrew and then installing libksba is much more straightforward. With Homebrew, you'll spend far less time dealing with terminal commands and the

rvm installation - /usr/local/rvm : permission denied (Before this, I deleted home directory by mistake in Ubuntu) [duplicate]

对着背影说爱祢 提交于 2019-11-30 23:40:17
Possible Duplicate: How do I fix a RVM install that was done using SUDO I have created a user on my server 'myuser' . Logged into it and ran this cmd : curl -L get.rvm.io | bash -s -- --auto-dotfiles Everything fine and installed correctly. Bymistake, I deleted the home directory using another user login, i.e /home/myuser (where rvm is installed) (logged in by other user 'anothuser'). Then lost rvm, so tried running the same install cmd , but now got this error : curl -L get.rvm.io | bash -s -- --auto-dotfiles % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total

Can't run Ruby 2.2.3 with RVM on OSX

懵懂的女人 提交于 2019-11-30 23:25:56
问题 I've got two MacBooks (one on Mavericks, the other on Yosemite) and the same thing happens on both. After installing Ruby 2.2.3 with RVM, I get the following error: .rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/http.rb:923:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError) I've tried searching for a solution online, but nothing seems to work. Most of the people having this issues are running Windows machines. $ rvm osx

Why is bundler not installing gems stored in get repo properly?

不问归期 提交于 2019-11-30 23:18:01
Bundler version 1.0.0.beta.2 Rvm Info system: uname: "Linux dane-r1f-ubuntu 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux" shell: "bash" version: "4.1.5(1)-release" rvm: type: "rvm is a function" version: "rvm 0.1.31 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" ruby: interpreter: "ruby" version: "1.9.2dev" date: "2010-05-31" platform: "i686-linux" patchlevel: "2010-05-31 revision 28117" full_version: "ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux]" homes: gem: "/home/dane/.rvm/gems/ruby-1.9.2-preview3@mmm" ruby: "/home