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

Decompilation fails with "Error: Unknown OS" #10

Closed
H4Security opened this issue Dec 13, 2017 · 3 comments
Closed

Decompilation fails with "Error: Unknown OS" #10

H4Security opened this issue Dec 13, 2017 · 3 comments

Comments

@H4Security
Copy link

when I try to execute decompile.sh I got this message "Error: Unknown OS"
I try it on windows 7 64

@s3rvac
Copy link
Member

s3rvac commented Dec 13, 2017

Thank you for the report. Which terminal emulator and shell do you use to run decompile.sh? What is the output from uname -s?

@H4Security
Copy link
Author

I was using bash to run decompile.sh
"uname -s" result is "WindowsNT"
Thanks

s3rvac added a commit that referenced this issue Dec 13, 2017
The OS type detection is no longer used anywhere, so we can remove it.
@s3rvac
Copy link
Member

s3rvac commented Dec 13, 2017

Fixed in b19112d. The fix will be included in the next release.

Until then, as a workaround, remove the following code from $RETDEC_INSTALL_DIR/bin/config.sh:

SYS="$(get_SYS)"
if [ "$SYS" != "win" -a "$SYS" != "linux" ]; then
   echo "Error: Unknown OS" >&2
   exit 1
fi

@s3rvac s3rvac closed this as completed Dec 13, 2017
@s3rvac s3rvac added the bug label Dec 13, 2017
@s3rvac s3rvac self-assigned this Dec 14, 2017
@s3rvac s3rvac changed the title Error: Unknown OS Decompilation fails with "Error: Unknown OS" Dec 15, 2017
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

3 participants