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

Cannot execute symlink'd binaries #2335

Closed
mqudsi opened this issue Jul 15, 2017 · 3 comments
Closed

Cannot execute symlink'd binaries #2335

mqudsi opened this issue Jul 15, 2017 · 3 comments

Comments

@mqudsi
Copy link

mqudsi commented Jul 15, 2017

Under Windows 15063.483:

C:\Users\Mahmoud\bin\ is in my path

> mklink C:\full\path\to\binary.exe C:\Users\Mahmoud\bin\binary.exe
> binary.exe #verify it works
> bash
mqudsi@ZBook /m/c/U/Mahmoud> binary.exe
Failed to execute process '/mnt/c/Users/Mahmoud/bin/binary.exe'. Reason:
exec: Exec format error
The file '/mnt/c/Users/Mahmoud/bin/binary.exe' is marked as an executable but could not be run by the operating system.
@therealkenc
Copy link
Collaborator

therealkenc commented Jul 15, 2017

See also #1475, which is now complicated by the fact that WSL is available in non-developer mode. Blog post here. User Choir here, here and here.

@sunilmut
Copy link
Member

@mqudsi - This should work starting build 16193 with Added support in DrvFs for following NT symlinks.. I tried it and it works fine (with symlink to notepad.exe). Currently, DrvFS is also case-sensitive. And, so, just be careful while creating the symlink to use proper case.

@mqudsi
Copy link
Author

mqudsi commented Jul 17, 2017

Awesome, thanks @sunilmut !

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

No branches or pull requests

3 participants