rvm

“bad ecpoint” SSL error on fresh RVM Ruby 1.9.3 install on OSX Mountain Lion

核能气质少年 提交于 2019-11-29 12:48:21
Trying to use Ruby 1.9.3 & rest-client to make https requests like: RestClient.get('https://google.com') always gives me a SSL error, OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint which I cannot figure out. bad ecpoint ? I've had no trouble making the same request with 1.9.3 & rest-client on another Mountain Lion machine. Notes about this machine: MacBook pro with fresh Mountain Lion install, where I originally had some trouble installing gcc-4.2 via the XCode command line tools, but eventually got gcc-4.2 via homebrew/dupes . I've

cannot load such file — rubygems.rb

大城市里の小女人 提交于 2019-11-29 12:43:31
问题 To open this project (revel) I need to be using ruby-2.1.2. I have both ruby-2.1.0 and ruby-2.1.2 installed, but I think the 2.1.2 version is corrupt for some reason and I can't seem to use it. |~/desktop/ix/projects/revel> rvm use 2.1.2 Using /Users/lianoosh/.rvm/gems/ruby-2.1.2 <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>' |~/desktop/ix/projects/revel> gem list <internal:gem_prelude>:1:in `require':

RVM Ruby with TK installation (OSX)

*爱你&永不变心* 提交于 2019-11-29 12:21:48
I'm trying to install Ruby with TK support. Using RVM, I did this: rvm install 1.9.2 -C --enable-shared --enable-pthread The installation appears to work fine, and I can see something called .rvm/src/ruby-1.9.2-p320/ext/tk/tcltklib.c which I assume is the library I need? I then try to run require 'tk' in irb, but get the error message LoadError: no such file to load -- tk Any ideas? Update: Fixed! If anyone is interested in the complete list of steps for a Ruby upgrade to 2.0.0 with TK support on OSX, this is what I did: Install RVM for Ruby - \curl -#L https://get.rvm.io | bash -s stable -

Can't install Ruby 2.0.0-p0 with RVM. Error running 'make -j8'

一世执手 提交于 2019-11-29 10:26:16
I tried to install Ruby 2 using RVM today and it failed. I updated RVM, all my brew formulas and whatnot. This is what I get: admin:/$ rvm install ruby-2.0.0-p0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password. Already up-to-date. Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date. Installing Ruby from source to: /Users/admin/.rvm/rubies/ruby-2.0.0

Gem not found in Ruby cron job in RVM env

拥有回忆 提交于 2019-11-29 09:43:07
问题 I'm trying to run a simple ruby script on my old PPC machine running 10.5 in an RVM environment. Searching on SO, I've followed the chosen answer from this post. This is the line in cron as a result: SHELL=/bin/bash 00 * * * * BASH_ENV=~/.bash_profile && /bin/bash -c '~/deggy/onlineGW.rb' This command runs fine in Bash at the root of the user sam. Here's the salient part of my script: #!/usr/bin/env ruby require 'open-uri' require 'nokogiri' ... Here's the output of the error from cron: X

Update RVM list known

◇◆丶佛笑我妖孽 提交于 2019-11-29 09:04:35
Is it possible to update the list of known rubies (what you get with rvm list known ) without upgrading the entirety of rvm? No it is not, some of the version changes require changes in code, you should be good with sticking to stable to keep more stability (if that is your concern): rvm get stable you should be good with sticking to master (as it's stable) to get latest versions: rvm get master Arup Rakshit mpapis answer and opinion is 100% correct. The settings I had in my laptop is below. Add the the line rvm_autoupdate_flag=2 to ~/.rvmrc . It will auto update Rvm, all the time, whenever

Failing to install Nokogiri gem

旧巷老猫 提交于 2019-11-29 06:21:22
问题 I'm working on a rails app that allows for image attachments to each use account. I'm using paperclip and amazon web services: gem 'paperclip' gem 'aws-sdk' When I run bundle install, I get this message: extconf failed, exit code 1 Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.5 for inspection. Results logged to /usr/local/rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.5/gem_make.out An error occurred while installing nokogiri

Weird rails error “permission denied: bin/rails” for old rails apps

天涯浪子 提交于 2019-11-29 06:21:18
问题 I'm getting this error whenever I run rails (or any rails command) _rails_command:2: permission denied: bin/rails ONLY when i'm inside some old rails app directory. In these directories bundle exec rails c command works but rails or even rails -v don't work. Background: I keep my coding workspace in dropbox folder. Now I recently installed Manjaro and hence all the rails apps which I downloaded back from my previous OS I call them old rails app. In Short: Rails works fine everywhere except

sqlite3-ruby can't make on rvm 1.8.7

妖精的绣舞 提交于 2019-11-29 02:58:46
问题 Upgrading to Rails 3 by starting with RVM 1.8.7. OSX 10.5.8 Output: josh-crewss-macbook:~ joshcrews$ gem install sqlite3-rubyBuilding native extensions. This could take a while...ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /Users/joshcrews/.rvm/rubies/ruby-1.8.7-p174/bin/ruby extconf.rb checking for sqlite3.h... yes checking for sqlite3_libversion_number() in -lsqlite3... yes checking for rb_proc_arity()... no checking for sqlite3_column_database_name().

xcodebuild: “No applicable devices found.” when exporting archive

烈酒焚心 提交于 2019-11-29 02:26:52
问题 As of Xcode 7†, the xcodebuild export archive step has been giving us errors. Build command xcodebuild -exportArchive -archivePath "path/to/Thing.xcarchive" \ -exportPath "path/to/" \ -exportOptionsPlist path/to/PackageOptions-adhoc.plist yields 2015-10-08 16:28:27.409 xcodebuild[62682:464728] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7ff1a42d23f0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo=0x7ff1a72ddd80