Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
JRuby 184.108.40.206 not working on windows server 2003/2003 R2 #3998
jruby 32 bit, version 220.127.116.11
windows server 2003 32 bit, 2003 R2 32 bit
new installation of jruby, only preinstalled gems, the command gem list return the following output
FFI::NotFoundError: Function 'CreateSymbolicLinkW' not found in [kernel32]
On a windows server 2008 64 bit server no problems...
Jruby 1.7.23 working on the 2003 machines
referenced this issue
Jul 7, 2016
Sadly, this function appears to have been added in Windows Server 2008.
I know @djberg96 has recommended not supporting anything this old, but perhaps on older Windows we should just behave like MRI did before adding Windows symlink support? Thoughts?
It looks like MRI defines its stub "not implemented" method for symlink on platforms where the latter is not supported. We can force the symlink method to be "not implemented" when running on Windows. Then, at least RubyGems can be patched to check for symlink, if it doesn't already.
@pandar1 Please test the fix I just pushed. I skip the symlink definition completely on Windows when CreateSymbolicLinkW is not available.
@djberg96 This is not a beautiful way to do it, but win32-ffi could perhaps wrap just the symlink definition and skip it when appropriate.
It should be available in tonight's snapshot build at http://ci.jruby.org, or you can build master yourself.