Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFI::NotFoundError: Function 'CreateSymbolicLinkW' not found in [kernel32] #3939

Closed
bioprogrammer opened this issue May 28, 2016 · 7 comments

Comments

@bioprogrammer
Copy link

Environment

Expected Behavior

a_count = 0
c_count = 0
g_count = 0
t_count = 0

File.open('sequence.fasta').each do |line|
a_count += line.split('').count('A')
c_count += line.split('').count('C')
g_count += line.split('').count('G')
t_count += line.split('').count('T')
end

puts 'A: ' + a_count.to_s
puts 'C: ' + c_count.to_s
puts 'G: ' + g_count.to_s
puts 'T: ' + t_count.to_s

Actual Behavior

FFI::NotFoundError: Function 'CreateSymbolicLinkW' not found in [kernel32]
attach_function at C:/jruby-9.1.2.0/lib/ruby/stdlib/ffi/library.rb:241
attach_pfunc at uri:classloader:/jruby/kernel/file.rb:25
module:Functions at uri:classloader:/jruby/kernel/file.rb:31
module:File at uri:classloader:/jruby/kernel/file.rb:16
module:Windows at uri:classloader:/jruby/kernel/file.rb:8
module:JRuby at uri:classloader:/jruby/kernel/file.rb:7
at uri:classloader:/jruby/kernel/file.rb:6
load at org/jruby/RubyKernel.java:962
at file:/C:/jruby-9.1.2.0/lib/jruby.jar!/jruby/kernel.rb:1

@enebo
Copy link
Member

enebo commented May 28, 2016

@bioprogrammer could you tell us more about which version of Windows and the JVM you were using. @djberg96 maybe you know about which envs may not be able to load this?

@djberg96
Copy link
Contributor

@enebo My guess is that it's XP. Are you supporting versions of Windows older than Vista? If so, you'll need to make a guard for it.

FWIW, Microsoft end of life'd XP in April 2014.

@headius
Copy link
Member

headius commented May 31, 2016

@djberg96 Good question. I'm not sure we've ever officially said what versions of Windows we support, but XP is so darn old now.

@djberg96
Copy link
Contributor

@headius My advice is to NOT support XP, as it will otherwise encourage people to remain on unsupported operating systems when they really, really ought to either upgrade or simply switch to Linux or FreeBSD.

I typically have dropped support about a year after MS drops it for my own projects.

I also imagine that at some point JRuby will require a JRE that is no longer supported on XP, and that will pretty much be the end of it one way or another.

@TheSynthMaster
Copy link

TheSynthMaster commented Jul 6, 2016

Same problem here... "gem list" gives the same error on windows server 2003

C:\JRAILS1\APPLIC1\ASSETS~1>gem list
FFI::NotFoundError: Function 'CreateSymbolicLinkW' not found in [kernel32]
attach_function at C:/jrails4_update/jruby-9.1.2.0/lib/ruby/stdlib/ffi/library.rb:241
attach_pfunc at uri:classloader:/jruby/kernel/file.rb:25
module:Functions at uri:classloader:/jruby/kernel/file.rb:31
module:File at uri:classloader:/jruby/kernel/file.rb:16
module:Windows at uri:classloader:/jruby/kernel/file.rb:8
module:JRuby at uri:classloader:/jruby/kernel/file.rb:7
at uri:classloader:/jruby/kernel/file.rb:6
load at org/jruby/RubyKernel.java:962
at file:/C:/jrails4_update/jruby-9.1.2.0/lib/jruby.jar!/jruby/kernel.rb:1

Does this mean windows server 2003 is not supported anymore? :O

P.S. I tried on a windows 2008 server machine and I can confirm that IS working on that OS... another machine with windows server 2003 R2 does not work... so, no luck on 2003 and 2003 R2...

opened issue #3998

@headius
Copy link
Member

headius commented Jul 11, 2016

Close in favor of #3998, which is more specific about environment.

@headius headius closed this as completed Jul 11, 2016
@headius headius added this to the Invalid or Duplicate milestone Jul 11, 2016
@sevk
Copy link

sevk commented Aug 22, 2016

why not support win2003 server ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants