I'm trying to run curl on android 5.1,but this error doesn't help :

root@manta:/root/home/curl/data/local/bin # ./curl
error: only position independent executables (PIE) are supported.

I've got the curl executable from here :


how can I fix this error ? thanks.


1 Answer 1


Curl is an open source project, so the straightforward answer is that you compile it yourself and enable position independent code (pic) for the compilation. This is very inconvenient, I admit, but I strongly discourage using solutions that disable security features. There are good reasons to only allow PIEs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .