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

Building r2ghidra on Termux fails due to lack of sudo #48

Closed
ghost opened this issue Sep 7, 2021 · 4 comments
Closed

Building r2ghidra on Termux fails due to lack of sudo #48

ghost opened this issue Sep 7, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 7, 2021

Hello, after running:

r2pm init
r2pm update
r2pm -ci r2ghidra

I have the following error:

[ 99%] Linking CXX shared library asm_ghidra.so   
[ 99%] Built target asm_ghidra                    
17 warnings generated.                            
[100%] Linking CXX shared library anal_ghidra.so  [100%] Built target anal_ghidra                   
/data/data/com.termux/files/usr/bin/r2pm: 18: sudo: not found

r2ghidra was able to install with previous versions, but from doing a bit of research, termux does not have sudo out of the box. Any help would be greatly appreciated and I would be happy to provide some assistance with this bug.
Thank you.

@apkunpacker
Copy link

pkg install tsu

might solve your problem

@ghost
Copy link
Author

ghost commented Sep 7, 2021

Hello, @apkunpacker
I have reinstalled termux, and installed tsu first before running the r2ghidra installation commands.
I now have the following message:

No superuser binary detected.
Are you rooted?

Previously I was able to run r2ghidra without having to root my mobile device, however given the error, it may not be possible without first rooting a device.
Thank you for your recommendation.

@trufae
Copy link
Contributor

trufae commented Sep 7, 2021

try again, should be fixed now

@ghost
Copy link
Author

ghost commented Sep 7, 2021

@trufae Thank you for your fix, it is now working on Termux.

@ghost ghost closed this as completed Sep 7, 2021
This issue was closed.
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

2 participants