mumumusuc / termux-flutter

Run Flutter on Termux !
GNU General Public License v3.0
68 stars 9 forks source link

bad interpreter: /usr/bin/env: no such file or directory #29

Open rsanjuan87 opened 1 month ago

rsanjuan87 commented 1 month ago

Error: /data/data/com.termux/files/usr/bin/flutter: bad interpreter: /usr/bin/env: no such file or directory

after install the package everithing works fine on "termux app terminal" (apk), even build and launch with xquartz x11 server, not well but runs.

but on termux-x11 + a xfce4-terminal says /data/data/com.termux/files/usr/bin/flutter: bad interpreter: /usr/bin/env: no such file or directory

I tried to run something alike termux-exec to avoid to "do" fixes to sdk, not nothing works for me

finally my fix termux-fix-shebang /data/data/com.termux/files/usr/opt/flutter/bin/flutter

imagen flutter run -d linux

mumumusuc commented 1 month ago

I updated termux to latest by apt update & apt upgrade and installed xfce4 then run flutter doctor, it works, and flutter run as well. So I'm not sure what went wrong, sorry. Screenshot_20240713_125754_com termux x11

rsanjuan87 commented 1 month ago

this is the error what I was getting when I try to build

/data/data/com.termux/files/usr/bin/flutter: bad interpreter: /usr/bin/env: no such file or directory

i3 wm