Skip to content

Termux compatibility? #805

Closed
Closed

Description

@AdrianM269

I tried to install it on Termux but I keep getting errors, is it compatible with termux or did I miss something?

Activity

  1. alexcu2718 commented on Jul 30, 2026

    @alexcu2718

    I thought I'd add this here as an example of why it fails to improve this issue request.

    curl -sSfL https://github.com/HalFrgrd/flyline/releases/latest/download/install.sh | sh
    ==> Detected target: aarch64-unknown-linux-gnu
    ==> Fetching latest release information...
    ==> Latest version: v1.4.0
    ==> Downloading libflyline-v1.4.0-aarch64-unknown-linux-gnu.tar.gz from
        https://github.com/HalFrgrd/flyline/releases/download/v1.4.0/libflyline-v1.4.0-aarch64-unknown-linux-gnu.tar.gz...
    ==> Downloading checksum from https://github.com/HalFrgrd/flyline/releases/download/v1.4.0/libflyline-v1.4.0-aarch64-unknown-linux-gnu.tar.gz.sha256...
    ==> Verifying checksum...
    libflyline-v1.4.0-aarch64-unknown-linux-gnu.tar.gz: OK
    ==> Creating symlink libflyline.so -> libflyline.so.1.4.0...
    ==> Installed: /data/data/com.termux/files/home/.local/lib/libflyline.so
    ==> Added flyline to /data/data/com.termux/files/home/.bashrc
    ==>
    ==> Installation complete!
    ==>     To activate in the current shell:
    ==>         enable -f /data/data/com.termux/files/home/.local/lib/libflyline.so flyline
    ==>     Or open a new terminal and run the tutorial:
    ==>         flyline run-tutorial
    ~ $  enable -f /data/data/com.termux/files/h^C
    ~ $ bash
    bash: enable: cannot open shared object /data/data/com.termux/files/home/.local/lib/libflyline.so: dlopen failed: library "libgcc_s.so.1" not found: needed by /data/data/com.termux/files/home/.local/lib/libflyline.so.1.4.0 in namespace (default)
    ~ $ pkg install gcc
    Hit:1 https://termux.net stable InRelease
    All packages are up to date.
    Package gcc is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      libllvm
    
    
    Error: Package 'gcc' has no installation candidate
    ~ $ enable -f /data/data/com.termux/files/home/.local/lib/libflyline.so flyline
    bash: enable: cannot open shared object /data/data/com.termux/files/home/.local/lib/libflyline.so: dlopen failed: library "libgcc_s.so.1" not found: needed by /data/data/com.termux/files/home/.local/lib/libflyline.so.1.4.0 in namespace (default)
    ~ $ gcc --version
    clang version 21.1.8
    Target: aarch64-unknown-linux-android30
    Thread model: posix
    InstalledDir: /data/data/com.termux/files/usr/bin

    It seems to hardcode a gcc versioned reliance. Surely it can work with clang too?

    (I don't use termux much and this isn't a big issue for me, I just wanted to try it out! )

    One final suggestion, termux usage is fairly rare anyway, I would perhaps fix the installation to only edit the .bashrc if the shared libraries it requires are found.

    NB: I was surprised gcc aliases to clang in termux. Shows how much I use it....

  2. HalFrgrd commented on Jul 30, 2026

    @HalFrgrd
    Owner

    Thanks for the extra info! I think the problem is that the aarch64-unknown-linux-gnu version is being used when it should use an android specific one. Ill add the android target in the next release.

  3. linked a pull request that will close this issueAndroid support #859on Jul 30, 2026
  4. HalFrgrd commented on Jul 30, 2026

    @HalFrgrd
    Owner

    Ive merged support and tested flyline loads in termux docker. Ill create a new release soon and test it on android.

  5. HalFrgrd commented on Aug 3, 2026

    @HalFrgrd
    Owner

    I managed to get the new flyline release working on Termux! It works surprisingly well. There will likely be some new bugs for this new platform, so if you do find any, please let me know!

  6. alexcu2718 commented on Aug 4, 2026

    @alexcu2718

    I managed to get the new flyline release working on Termux! It works surprisingly well. There will likely be some new bugs for this new platform, so if you do find any, please let me know!

    Found one already. Sorry to be a pain!

    The suggestions on android shouldn't show filepaths in option completions.

    I believe this behaviour is not ideal.

    (On the linux screenshot I had to truncate the --version to show the behaviour as I was doing on a small laptop screen quickly, I believe there's enough debugging info to go off there!)

    Image Image

    EDIT: showing android bashrc (You can tell I don't use bash on android, only zsh, which if I can switch to bash fully (such as my intent on looking at the development of this!), would be great)

    Image

    Secondary edit: I noticed in the section indicating 'shell' , it's showing the '$SHELL' variable, aka the default shell for the user, this may not be a bug and may be intended behaviour, I think more intuitively it should be showing the path of the bash executable.

    Image

    (If not a bug, I would suggest editing the text to be 'default shell')

    Once more, not trying to be nitty, I barely use bash on android but figured a bug report is helpful since it seems you're likely emulating it via docker etc.

    Appreciate the work!

  7. HalFrgrd commented on Aug 4, 2026

    @HalFrgrd
    Owner

    No worries, I can recreate this issue. It isn't with flyline but with lack of auto completion setup.

    Flyline only ships with autocompletions for the flyline command. And bash doesn't have any autocompletions by default.

    After settling up bash-completions:

    pkg update && pkg install bash-completion -y && \
    echo 'if [ -f $PREFIX/etc/bash_completion ]; then . $PREFIX/etc/bash_completion; fi' >> ~/.bashrc && \

    and relaunching bash, ls option completions work for me:
    Screenshot_20260804-091006.png

    The benefit of flyline not shipping with a default set of autocompletions is so that flyline reuses any tab completion scripts for any program the user has set up. And users can fall back on using the flycomp integration. But this doesn't always do the right thing so it's best to use a tailored tab completion script when it exists.

  8. HalFrgrd commented on Aug 4, 2026

    @HalFrgrd
    Owner

    I agree the version information could be improved. It often doesn't have a value for the terminal emulator. There is some escape code to help determine the term emulator, just need to hook it up!

  9. alexcu2718 commented on Aug 4, 2026

    @alexcu2718

    No worries, I can recreate this issue. It isn't with flyline but with lack of auto completion setup.

    Flyline only ships with autocompletions for the flyline command. And bash doesn't have any autocompletions by default.

    After settling up bash-completions:

    pkg update && pkg install bash-completion -y &&
    echo 'if [ -f $PREFIX/etc/bash_completion ]; then . $PREFIX/etc/bash_completion; fi' >> ~/.bashrc && \

    and relaunching bash, ls option completions work for me: Screenshot_20260804-091006.png

    The benefit of flyline not shipping with a default set of autocompletions is so that flyline reuses any tab completion scripts for any program the user has set up. And users can fall back on using the flycomp integration. But this doesn't always do the right thing so it's best to use a tailored tab completion script when it exists.

    Oh sick. Thank you!

    Guess you can close!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions