-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
NotImplementedError: symlink unsupported or native support failed to load #3905
Comments
The same exact problem happened to me today as well (Windows Server 2008 R2, SP 1), so you're not alone.
|
This is definitely a regression. Looks like something got missed on Windows :-( |
@headius thanks for looking into this issue. Is there an ETA for 9.1.2.0 yet? (Not being able to install warbler is a bit of a show-stopper in my personal exploration of JRuby ecosystem 😉 ) |
Hi! Having the same problem on Windows 10:
|
@vais @lucassch @tobymurray-nanometrics It is our hope to get out a 9.1.2.0 this week with so far this and one other windows-related issue. |
FWIW the win32-file gem has had an implementation of File.symlink and File.symlink? for quite some time. So, after seeing the same failure initially as the OP, I did this:
Then I hit this oddity:
|
As mentioned on the other thread, you'll need to run with administrator rights to create symlinks with Windows 7 and 8. Also, drop the quotes around the RUBYOPT setting if you're using a cmd shell. Still working on the Rakefile thing. |
@djberg96 On my Windows system, I was able to eventually install warbler after running from an Administrator console:
Are you sure you're on latest JRuby plus win32-file stuff? There were some activation problems in 9.1.0.0, I believe. Patch is looking ok to me at this point but would like to get confirmation from @djberg96 that it's working for him too. |
@headius Oh, great! Since I seem to regularly hose up my JRuby env one way or another, I will take your word for it that it works. Perhaps @tobymurray-nanometrics, @vais or @lucassch can confirm? |
@djberg96 What did you need a confirmation on specifically? Running JRuby 9.1.1.0 as administrator in Windows 10 command prompt (and cmder) I see identical behavior to running as not-administrator: Would you like me to try something else? |
@tobymurray-nanometrics Please try installing the |
It looks like I ran into the same oddity as you, @djberg96. Trying this both as admin and as not-admin, I get the same result:
|
@tobymurray-nanometrics well, crap, I'm not sure what's happening yet. I'll have to wait until tonight to look at this closer. BTW, I did try unpacking the gem locally, and modifying the gemspec to just remove the rake dependency, but then got a similar error for jruby-jars. EDIT: It looks like win32-file breaks |
The patch I came up with based on win32-file seems to work well with proper administrative privileges, so I went ahead and merged it to 9.1.2.0 and master. We'd really appreciate if someone can verify things are working with the patch on either branch, but especially 9.1.2.0 since we want to release tomorrow (Thursday). |
Hi @headius, With I got this error:
And with
Cheers, |
This worked for me as administrator. Am I understanding correctly that JRuby has to be executed as admin so it can handle symlinks? Admin
Not Admin
|
@tobymurray-nanometrics It's a deliberate restriction in the way that the underlying Alternatively, you can add SeCreateSymbolicLinkPrivilege to your local security policy. |
@tobymurray-nanometrics This is a transitive statement but added for posterity. MRI also has this same restriction for creating symlinks. |
I created an issue here (sorry for the duplication, not sure where it should go). Trying to figure out a workaround, it seems as though it works in the 1.7 branch of JRuby, as well as 9.0.5.0, so perhaps a regression?
Environment
Windows 10
JRuby 9.1.1.0 and 9.1.0.0
Expected Behavior
Actual Behavior
1.7.25
9.0.5.0
Fails in both 9.1.1.0 and 9.1.0.0 with the same stack trace
The text was updated successfully, but these errors were encountered: