Open dhuux opened 11 months ago
from the guide i found out that i can modify the distro detection with the config.yaml
file. but how do i tell it to fetch the Linux aarch64 tarball instead of the x86_64 one?
platform-override:
arch: A_ARM64
platform:
contents: Ubuntu
tag: Linux
version: '18.04'
@hasufell thanks. it worked!
Omg, ghcup is amazing!
@hasufell of course it's 🥰
hi @hasufell there is a new problem. Ghcup installs Stack and Cabal fine. but when Ghc is downloaded and installed, it tries to run Ghc-pkg check
or something (before i point the binaries to the right rpath
and linker
) and deletes the whole thing when it can't run it because it marks the elf files as corrupted or maybe that is not what is happening. i don't know. i'm new to programmimg. i'm just tying to get used to the terminal and setting up tools before i start learning programming.
some screenshots
The log is truncated. Pastebin the contents of ~/.ghcup/logs/ghc-make.log
after running the failed command.
The log is truncated. Pastebin the contents of
~/.ghcup/logs/ghc-make.log
after running the failed command.
sorry! i messed with ghcup. the log files are gone. i will try to download it again though my internet (Somalia) is slow during the days. but wait! are there any hardcoded paths into the ghcup binary? what does that line mean?
i'm not running in proot /bin/sh
doesn't exist in termux. i'm running these tools natively on termux.
or maybe it exists. i didn't know that android's /bin/sh
can be used. lol
I need the full logs
i don't know what Pastebin is but i googled and past it there
i don't know if this is the right place.
Looks like a dynamic library is missing
/bin/sh: /data/data/com.termux/files/home/.ghcup/tmp/ghcup-a03ca67b8436bf86/data/data/com.termux/files/home/.ghcup/ghc/9.4.7/lib/ghc-9.4.7/bin/ghc-pkg: No such file or directory
Did you install the pre-requisites?
Looks like a dynamic library is missing
/bin/sh: /data/data/com.termux/files/home/.ghcup/tmp/ghcup-a03ca67b8436bf86/data/data/com.termux/files/home/.ghcup/ghc/9.4.7/lib/ghc-9.4.7/bin/ghc-pkg: No such file or directory
Did you install the pre-requisites?
i think yes. because i already tested the linux aarch64 prebuilt binaries from here. i just didn't wanna do it manually.
look at my fist screenshot. it wouldn't work if its depencies were not satisfied. but the problem here is before the binaries work, i need to link them against the right dynamic linker/loader. and i think this: /bin/ghc-pkg: No such file or directory
is an elf binary pointing to the wrong dynamic loader. ghcup tries to test it and when it fails it regards it as non-existent and deletes the whole thing. or what lib do you think is missing here?
@bgamari ideas on how to make installation work?
now with help of
glibc for termux
project we can run most of linuxAArch64 binaries
on Termux. no need for them to be linked against thebionic libc
to work on Termux. i hope you to support termux as a distribution. i can still setup these tools manually but i would like to useghcup
for that.thanks.