Failures with Ruby - lib version mismatch
gem : C:/Ruby21-x64/lib/ruby/2.1.0/x64-mingw32/rbconfig.rb:7:in `<module:RbConfig>': ruby lib version (2.1.7) doesn't match executable version (2.1.6) (RuntimeError)
At line:4 char:1
+ gem update --system > $null
Below is the script:
$env:path = "C:\Ruby" + $env:ruby_version + "\bin;" + $env:path
$tpath = "C:\Ruby" + $env:ruby_version + "\lib\ruby\" + $env:ruby_dir + "\test"
if ((test-path $tpath) -eq $True){ rm -recurse -force $tpath }
gem update --system > $null
if ((gem query -i ffi) -eq $False){ gem install ffi --no-document }
if ((gem query -i test-unit -v ">= 3.0") -eq $False){ gem install test-unit --no-document }
Attached is the appveyor.yml file.
- appveyor.yml 983 Bytes
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 21 Oct, 2015 03:13 AM
Is there any fix for that we should apply on build workers?
2 Posted by Daniel Berger on 21 Oct, 2015 12:13 PM
I think this happened because I cached C:\ruby\bin and then Ruby was upgraded later, so the result was a binary mismatch. Once I removed that cache and rebuilt it passed.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.