Erlang for the Android platform
- Now for the Android plattform
I have completed my port of Erlang (both R14 and R13B03) for the Android platform. In order to use EShell the phone needs to be rooted.
News:
1 Dec – epmd now works.
22 Nov – I am working on a solution so that the device does not need to be rooted in order to get access to EShell
17 Nov – You can now find the Android package on Erlang Solutions package page: http://www.erlang-solutions.com/section/72/packages
Install Erlang:
- Download the Erlang installer for the Android OS (Dowload it here: Erlang R14 for Android (1267))
- Go to market with your phone and install ”Fast Installer”
- Put the Erlang installer on your SD-card
- Open ”Fast installer” and choose to install the Erlang-package (Note: you need to disconnect your phone from the computer for this)
- After step 4 is done, open ”Erlang installer”
- Choose the R14-package and press the ”Install”-button (This will take about 3-10 minutes)
- Wait for the install-button to switch to ”Already installed”
- Erlang is now installed.
Starting Erlang:
Open a terminal program on your android device and type:
$ cd /data/data/org.burbas.erlang/arm_erlang_R14B_rel/bin $ su # chmod 777 erl # /system/bin/sh erl Eshell V5.8.1 (abort with ^G) 1>
Erlang have been tested on the following devices:
If you tested Erlang on another device, please contact me and I will add it here.
Erlang/Android in Media
http://www.version2.dk/artikel/17388-svensk-tilbud-koer-erlang-programmer-paa-din-android-mobil (Danish)
Resources







I may have to abandon the iPhone/iPad jail for an Android device now. Erlang on a handheld has some pretty cool potential.
How about Nexus S?
I have not tested Erlang on the Nexus S-phone so can’t really say if it works or not.
Do me a favour, read the manpage of chmod for once and then explain to me why any shellscript or binary would need or benefit from 777 as permissions.
Hint: tom dick and harry don’t need to write it.
In the initial state I tried to test out different things and this is one result of that. I’m working on a new installer where things like this is removed.
Do us a favor: learn how to give criticism without sounding like a douchebag.
Hint: you could have just said, ”I suggest you take a look at the permissions you set.”
+1
Friedel, do us all a favor, read the man page of nice for once.
Niclas, great work, you make me want an Android phone!
I think Damien Katz and Aron Miller got Erlang to work on iOS. Take a look at this tweet: http://twitter.com/#!/damienkatz/status/20417276648
Niclas, this is brilliant, I am so glad I have an Android phone.
Thanks :-).
[...] Burbas.se » Erlang for the Android platform Erlang for the Android platform (via @gr0kk3d) http://ff.im/-vwhh0 (tags: via:packrati.us) [...]
This is awesome to see working by itself!
I’ve looked at your work, and your solution with the xcomp-file is a little more elegant than mine :P. I’m using a shell-script to cross-compile Erlang. How is your iOS port going?
Tested successfully on Samsung Galaxy s (I9000) android v2.1 + upgrade
Updated the ‘tested’-section. Thanks :)
Great work!
I wanna android phone now :-)
Great, thanks. I have successfully run it on my Sony Ericsson Xperia X8. There were two errors during start-up. But I yet haven’t yet noticed their influence.
What kind of errors whas this?
Would you be able to make your build instructions for compiling Erlang source for the Android platform available?
Yes. But before I do that I’ll have to clean up my build-scripts a little :-).
My intention is also to write a small tutorial on how to write an Erlang/Android application.
Hi, this is great, but it takes up a load of space, could you change it so that it installs on the sd card and phone internal memory?
That should have been ”and not phone internal memory” :D
Hi Richard,
I’m working on a new version of the installer-program that enables you to install Erlang on the SD-card instead. Another feature with the new version is that you does not need a rooted phone in order to get access to EShell.
im trying to install it on an archos 5. It runs android 1.6 so I don’t know if this is an issie. The installer runs but I don’t see the button changing to already installed. I see a notification saying installation complete. What is the size of the installation? When I run the installer again I see the option run distribution enabled. But when I click on it nothing happens.
I could su on this device, so maybe that is the problem. If so, I’m really looking forward for the update you mentioned.
Hi Alex,
It’s not a problem that your device runs 1.6. The installation is about 36mb and it takes
a couple of minutes before it’s installed. The ”Run distribution”-button does not work yet. I am still working on some of the features, but the basic erlang distribution is working.
Follow the instructions posted on the top of this page and you should be fine :). Otherwise feel free to contact me by mail (niclas at burbas dot se)
Hi Niclas!
Awesome! I have R14B up and running on my Xperia Arc now! Yet another platform to add to the collection – worked straight away according to your instructions!
Very very cool! Thanks for your work!
/JK
Thanks Johan.
Will add the Xperia Arc to the list!
Hello,
It runs on a X10 Mini Pro as well, but then no more space ;-)
need to move it to the SD card.
What about application/usage for the Port is there any ideas?
Cheers
Wonder when the unrooted version of Erlang for Android will be possible to run.
It runs on HTC Tattoo, but I get some error on startup:
localhost bin # /system/bin/sh erl
{error_logger,{{2011,10,18},{16,38,56}},”~s~n”,["Error in process with exit value: {epipe,[{erlang,port_command,[#Port,[<>,\"localhost\",0]]},{inet_gethost_native,run_once,0}]}\n”]}
=ERROR REPORT==== 18-Oct-2011::16:38:56 ===
Error in process with exit value: {epipe,[{erlang,port_command,[#Port,[<>,"localhost",0]]},{inet_gethost_native,run_once,0}]}
Eshell V5.8.1 (abort with ^G)
1>