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

retdec-macho-extractor file missing from scripts directory #418

Closed
kostaskol opened this issue Oct 19, 2018 · 4 comments
Closed

retdec-macho-extractor file missing from scripts directory #418

kostaskol opened this issue Oct 19, 2018 · 4 comments

Comments

@kostaskol
Copy link

Whenever I try to use the retdec-decompiler.py script, I get the following error:
FileNotFoundError: [Errno 2] No such file or directory: '</path/to/>retdec/scripts/retdec-macho-extractor': '</path/to>/retdec/scripts/retdec-macho-extractor'

OS: Kali linux Rolling

I would be happy to provide any further information that might be needed.

@s3rvac
Copy link
Member

s3rvac commented Oct 19, 2018

Hi. Have you built and installed RetDec before running the script? The error you have posted shows up when you try to run retdec/scripts/retdec-decompiler.py instead of <install dir>/bin/retdec-decompiler.py.

s3rvac added a commit that referenced this issue Oct 19, 2018
…ory.

This helps to assist our users when they try to run the scripts from the
'retdec/scripts' directory instead of from an installed RetDec (#418).
@s3rvac
Copy link
Member

s3rvac commented Oct 19, 2018

To improve the error that is being shown in this case, I have added a check into the scripts that they are run from an installed RetDec (commit c9673db). If anyone tries to run them from the scripts directory, they will see the following error message:

Error: You need to build and install RetDec first and then run the installed script via `python $RETDEC_INSTALL_DIR/bin/retdec-decompiler.py`.
For more details, see https://github.com/avast-tl/retdec#installation-and-use

This makes the issue self-evident.

@kostaskol
Copy link
Author

I really can't believe it but I forgot to make install after make, so it's entirely my fault. Thank you for your help and sorry for taking up your time for something as silly as this.

@s3rvac
Copy link
Member

s3rvac commented Oct 19, 2018

No worries. At least we improved the error message so users in the future will immediately know that they have to install RetDec, which is great.

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

2 participants