# Using Julia on Android?

**URL:** https://discourse.julialang.org/t/using-julia-on-android/8086
**Category:** General Usage
**Tags:** android
**Created:** [January 1, 2018, 1:01am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086 "2018-01-01T01:01:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [January 1, 2018, 1:01am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/1 "2018-01-01T01:01:33Z")

</div>

Found this post about using R on Android. Looks like it will work for Julia as well. Now just need a better keyboard for Julia. Any recommendations?

> **[Using R on Android](https://selbydavid.com/2017/12/29/r-android/)**
>
> I just discovered a way to get R running on my smartphone, with full support for packages, graphics and R Markdown, and no need to connect to an external server. This is really handy for quickly checking R code, trying out ideas and writing blog...

---

<div class="post-metadata">

### Author: ![jamitzky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jamitzky/32/9751_2.png) [@jamitzky](https://discourse.julialang.org/u/jamitzky)
#### Post date: [January 1, 2018, 3:10pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/3 "2018-01-01T15:10:25Z")

</div>

I have been running julia on android by using termux. I used a debian image and the proot package from termux. It works nice.

---

<div class="post-metadata">

### Author: ![lyonsquark](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lyonsquark/32/4483_2.png) [@lyonsquark](https://discourse.julialang.org/u/lyonsquark)
#### Post date: [January 8, 2018, 5:20pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/4 "2018-01-08T17:20:28Z")

</div>

Hi @jamitzky, Can you provide some more information? What did you install into termux to get Julia working? Thanks! – Adam

---

<div class="post-metadata">

### Author: ![jamitzky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jamitzky/32/9751_2.png) [@jamitzky](https://discourse.julialang.org/u/jamitzky)
#### Post date: [July 19, 2018, 1:45pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/5 "2018-07-19T13:45:39Z")

</div>

I was using the fedora package which installs a fedora distribution inside termux via proot:  
[https://github.com/nmilosev/termux-fedora](https://github.com/nmilosev/termux-fedora)  
and then I downloaded the julia arm tgz file and unpacked it in the termux home directory. You can then use “startfedora” to start a chroot fedora shell and then you can start the julia binary.

---

<div class="post-metadata">

### Author: ![jamitzky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jamitzky/32/9751_2.png) [@jamitzky](https://discourse.julialang.org/u/jamitzky)
#### Post date: [July 19, 2018, 1:47pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/6 "2018-07-19T13:47:39Z")

</div>

I use hackers keyboard which works well even for control keys. you can download it via f-droid.

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [September 27, 2019, 11:48am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/7 "2019-09-27T11:48:32Z")

</div>

Complete Steps to Running Julia on your Android (tested on Huawei P30 pro as of 20190927)

# Step 1

1. Download the [termux](https://termux.com/) app on your Android (Play Store worked for me)

# Step 2

1. Install Ubuntu on termux by following [this guide](https://github.com/MFDGaming/ubuntu-in-termux). For those who are too lazy to open the page, here are the instructions from the page

### Installation steps

1. Update termux: `apt-get update && apt-get upgrade -y`
2. Install wget: `apt-get install wget -y`
3. Install proot: `apt-get install proot -y`
4. Install git: `apt-get install git -y`
5. Go to HOME folder: `cd ~`
6. Download script: `git clone https://github.com/MFDGaming/ubuntu-in-termux.git`
7. Go to script folder: `cd ubuntu-in-termux`
8. Give execution permission: `chmod +x ubuntu.sh`
9. Run script: `./ubuntu.sh`
10. Fix resolv.conf: `cp ~/ubuntu-in-termux/resolv.conf ~/ubuntu-in-termux/ubuntu-fs/etc/`
11. Now just start ubuntu: `./start.sh`

# Step 3

1. Update `apt-get` and install wget (for downloading packages) install Julia using

```bash
apt-get update 
apt-get upgrade
apt-get install wget
apt-get install julia

```

# Step 4

Run Julia

```bash
julia

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/b/8baf7f75dcfba86a79bd8d7784f7bf40c98c74ba.png)

# Step 5

Enjoy and help flesh out this guide by posting more information here for others!

# Notes

- I haven’t tried it but it seems like we can install the latest version of Julia but following [these instructions](https://julialang.org/downloads/platform.html), see the Linux section
- The best keyboard in Android is [hacker’s keyboard](https://github.com/klausw/hackerskeyboard), but I am not 100% happy with it. Better suggestion welcome!
- A few packages failed to install. I am not a Ubuntu nor Android nor termux expert by any means, so sI don’t if everything that can be installed on normal ubuntu can also be installed on termux Ubuntu. If it is then the sky’s the limit, if not then I don’t know much info further. Please post here if you have more info.

I think @lyonsquark’s instructions would have worked too.

---

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [September 27, 2019, 8:07pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/9 "2019-09-27T20:07:45Z")

</div>

Following those instructions works to get the binary and install Julia 1.2! (ARM 64-bit).

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [September 30, 2019, 12:22pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/10 "2019-09-30T12:22:45Z")

</div>

Some simpler instructions here

> [@Julia on iOS and Android](https://discourse.julialang.org/t/julia-on-ios-and-android/7346/38):
>
> Haha thanks! That’s awesome! I got it installed via those same instructions as well. slight_smile Neat fun! $ pkg install wget $ wget https://its-pointless.github.io/setup-pointless-repo.sh $ bash setup-pointless-repo.sh $ pkg install julia # julia 1.2.0 fork

```bash
$ pkg install wget
$ wget https://its-pointless.github.io/setup-pointless-repo.sh
$ bash setup-pointless-repo.sh
$ pkg install julia # julia 1.2.0 fork right now!

```

---

<div class="post-metadata">

### Author: ![robsmith11](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/robsmith11/32/29641_2.png) [@robsmith11](https://discourse.julialang.org/u/robsmith11)
#### Post date: [October 1, 2019, 1:03pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/11 "2019-10-01T13:03:02Z")

</div>

Note that installing Julia without a GNU Linux chroot will result in linking against Android’s native libc, so many Julia packages that require a pre-built library will not work as-is since they are linked with glibc.

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [October 1, 2019, 1:26pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/12 "2019-10-01T13:26:50Z")

</div>

In lay man’s terms that would mean using the Ubuntu approach is better than the above?

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [October 1, 2019, 2:23pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/13 "2019-10-01T14:23:53Z")

</div>

Multithreading works too

 ![termux](https://global.discourse-cdn.com/julialang/original/3X/a/2/a22f40ca4d9ecb6a0c7816b545d0892448372da1.jpeg)

---

<div class="post-metadata">

### Author: ![robsmith11](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/robsmith11/32/29641_2.png) [@robsmith11](https://discourse.julialang.org/u/robsmith11)
#### Post date: [October 1, 2019, 6:39pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/15 "2019-10-01T18:39:54Z")

</div>

Yes, the Ubuntu approach will allow you to use nearly all Julia packages. The minimal Termux approach will only work with base Julia and packages that don’t depend on BinaryBuilder (for example Distributions.jl will not work).

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [October 3, 2019, 8:21pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/16 "2019-10-03T20:21:13Z")

</div>

Here using UserLAnd android app, Ubuntu hosted OS and Generic Linux Binaries for ARM (64 bits) from the site:

 ![ula](https://global.discourse-cdn.com/julialang/original/3X/b/b/bbdbb336c6eab86c328c289943e26c7a68957231.png)

---

<div class="post-metadata">

### Author: ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)
#### Post date: [October 3, 2019, 8:33pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/17 "2019-10-03T20:33:54Z")

</div>

Interesting. Does this require the steps (1-5) summarised by xiaodaigh? (Sorry for asking, but this is new to me.)

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [October 4, 2019, 6:28am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/18 "2019-10-04T06:28:02Z")

</div>

Basically yes… you install the app, in the app menu you install Ubuntu, from the ubuntu prompt using apt-get you install a bit of stuff (wget, build-essential,…), you download julia binary, (optional) symlink julia to ~/bin, … and finally run Julia.

---

<div class="post-metadata">

### Author: ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)
#### Post date: [October 4, 2019, 9:55am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/19 "2019-10-04T09:55:10Z")

</div>

Thanks. It works. To summarise, I did the following:

1. install UserLAnd android app from Play Store, choose Ubuntu hosted OS

2. install wget and build-essential:

```julia
sudo apt-get update 
sudo apt-get upgrade
sudo apt-get install wget
sudo apt-get install build-essential

```

1. Download and install Julia:

```julia
wget https://julialang-s3.julialang.org/bin/linux/aarch64/1.2/julia-1.2.0-linux-aarch64.tar.gz
tar xvfa julia-1.2.0-linux-aarch64.tar.gz
sudo ls -l julia-1.2.0/bin/julia .

```

---

<div class="post-metadata">

### Author: ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)
#### Post date: [October 4, 2019, 10:57am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/20 "2019-10-04T10:57:04Z")

</div>

Hi and thanks for the very nice installation tutorial!  
Did anyone encounter this error at startup?

 ![Screenshot_UserLAnd_20191004-135306](https://global.discourse-cdn.com/julialang/original/3X/1/4/14e6b40208c1ecc98be7c14f3fd361a068536a1a.png)  
I installed the 32 bit version of julia because I have an old 32 bit custom ROM…

---

<div class="post-metadata">

### Author: ![Dexter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dexter/32/14286_2.png) [@Dexter](https://discourse.julialang.org/u/Dexter)
#### Post date: [April 23, 2020, 9:03pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/21 "2020-04-23T21:03:22Z")

</div>

I encountered an error when i initiated julia following these steps.  
ERROR:stat returned zero type for a valid path…

 ![Screenshot_20200424-050221_UserLAnd](https://global.discourse-cdn.com/julialang/original/3X/6/f/6f39629221ed0a53d1f66c9b53edf1cf2f34561b.jpeg)  
I tried ‘julia --startup-file=no --history-file=no’ but didn’t work.

---

<div class="post-metadata">

### Author: ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)
#### Post date: [April 24, 2020, 8:09am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/22 "2020-04-24T08:09:15Z")

</div>

[I have no particular expertise in this, just tried a few things.]

I get the same error message when I run  
`julia-1.4.1/bin/julia`

Rather, julia loads nicely when I instead run  
`julia-1.4.1/bin/julia --startupfile=no --history-file=no`

To replicate this, follow my instructions in the previous message but for 1.4.1, but skip the last step. That is, do

```julia
wget https://julialang-s3.julialang.org/bin/linux/aarch64/1.4/julia-1.4.1-linux-aarch64.tar.gz
tar xvfa julia-1.4.1-linux-aarch64.tar.gz

```

---

<div class="post-metadata">

### Author: ![Dexter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dexter/32/14286_2.png) [@Dexter](https://discourse.julialang.org/u/Dexter)
#### Post date: [April 24, 2020, 8:41am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/23 "2020-04-24T08:41:59Z")

</div>

appreciate！

[Next page](https://discourse.julialang.org/t/using-julia-on-android/8086.md?page=2)
