Build issue
behouba opened this issue · 3 comments
Hello,
I'm experimenting with unicorefuzz. This issue occurred while running setup.sh script:
....
[+] Building unicorn_mode
=================================================
UnicornAFL build script
=================================================
[*] Performing basic sanity checks...
[-] Error: Python setup-tools not found. Run 'sudo apt-get install python-setuptools'.
I've already installed Python 2 and Python 3, as well as 'python-setuptools' via apt-get and pip install. What am I doing incorrectly?
Probably you need python3-setuptools
, too
Thank you @domenukk for the quick reply. I just installed python3-setuptools
and still getting the same error message.
I've come across this issue as well and the root cause for me was the location of easy_install.py
being within the python3
folder and not the python3.x
folder. So, I changed the variable MYPYTHONPATH
within AFLplusplus/unicorn_mode/build_unicorn_support.sh
(line 114) to "/usr/lib/python3"
and it worked!
$ find /usr/lib -name "easy_install.py"
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py
/usr/lib/python3/dist-packages/easy_install.py
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py
/usr/lib/python2.7/dist-packages/easy_install.py
$ echo `python -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p}'`
/usr/lib/python3.8/
I'll try and see if I can modify the one-liner :)
Edit: Here's a cheap hack for build_unicorn_support.sh
:114
MYPYTHONPATH=`python -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p}' | sed -r 's/\.[0-9]{1,2}//g'`