Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ubuntu@ip-172-30-0-26:~/jruby-9.0.0.0.pre2$ bin/jruby -Xnative.verbose=true -e "puts File.stat('/').dev_minor"
Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
java.lang.UnsatisfiedLinkError: libcrypt.so: cannot open shared object file: No such file or directory
at jnr.ffi.provider.jffi.NativeLibrary.loadNativeLibraries(NativeLibrary.java:87)
at jnr.ffi.provider.jffi.NativeLibrary.getNativeLibraries(NativeLibrary.java:70)
at jnr.ffi.provider.jffi.NativeLibrary.getSymbolAddress(NativeLibrary.java:49)
at jnr.ffi.provider.jffi.NativeLibrary.findSymbolAddress(NativeLibrary.java:59)
at jnr.ffi.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:117)
at jnr.ffi.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:59)
at jnr.ffi.provider.jffi.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:44)
at jnr.ffi.LibraryLoader.load(LibraryLoader.java:287)
at jnr.ffi.Library.loadLibrary(Library.java:127)
at jnr.posix.POSIXFactory$DefaultLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:271)
at jnr.posix.POSIXFactory$DefaultLibCProvider.getLibC(POSIXFactory.java:275)
at jnr.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:36)
at jnr.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:18)
at jnr.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:143)
at jnr.posix.POSIXFactory.loadNativePOSIX(POSIXFactory.java:121)
at jnr.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:90)
at jnr.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:35)
at jnr.posix.LazyPOSIX.posix(LazyPOSIX.java:31)
at jnr.posix.LazyPOSIX.isNative(LazyPOSIX.java:329)
at org.jruby.RubyGlobal.prepareStdioChannel(RubyGlobal.java:283)
at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:197)
at org.jruby.Ruby.init(Ruby.java:1274)
at org.jruby.Ruby.newInstance(Ruby.java:330)
at org.jruby.Main.internalRun(Main.java:267)
at org.jruby.Main.run(Main.java:226)
at org.jruby.Main.main(Main.java:198)
NotImplementedError: stat.st_dev unsupported or native support failed to load
dev_minor at org/jruby/RubyFileStat.java:233
<top> at -e:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment