LoginSignup
5
5

More than 5 years have passed since last update.

how to install GHC for Android [termux]

Posted at

はじめに

pkgapt でインストールできなくて、
ソースからコンパイルとかも試しても結局できなくて苦戦したので
備忘録を残しときます。

結局はubuntuを入れて、そこでaptするだけのお話です。

手順

* androidアプリ「termux」で実行します。
* デバイスは「Galaxy S8」で行いました。

#pythonのインストール
pkg update
pkg install python
pkg install python2
#gitからLazymuxを手に入れる
apt-get install git
git clone https://github.com/Gameye98/Lazymux.git
#lazymuxからubuntuをインストール
cd Lazymux
python2 lazymux.py
#インストールできるものの一覧が表示されるのでubuntuを選択
#記載の時点では[39]がubuntu
#ubuntuを起動する
cd termux-ubuntu
./start.sh
#以下,起動したubuntuで実行
#gccとghcをインストール
apt update
apt install clang
apt install gcc
apt install ghc
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5