Erlang for the Android platform

Av , 07 november 2010 15:53

- 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:

  1. Download the Erlang installer for the Android OS (Dowload it here: Erlang R14 for Android (1267))
  2. Go to market with your phone and install ”Fast Installer”
  3. Put the Erlang installer on your SD-card
  4. Open ”Fast installer” and choose to install the Erlang-package (Note: you need to disconnect your phone from the computer for this)
  5. After step 4 is done, open ”Erlang installer”
  6. Choose the R14-package and press the ”Install”-button (This will take about 3-10 minutes)
  7. Wait for the install-button to switch to ”Already installed”
  8. 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:

Acer beTouch E400

Acer beTouch E400

(Thanks to Fabian S)

SonyEricsson Xperia Arc

SonyEricsson Xperia Arc

(Thanks to Johan)

Samsung Galaxy Tab

Samsung Galaxy Tab

(Thanks to Robin T)

HTC Desire

HTC Desire

HTC Supersonic

HTC Supersonic (Evo)

(Thanks to Garret S)

Motorola Droid

Motorola Droid

(Thanks to Chris J)

Samsung I9000

Samsung Galaxy I9000

(Thanks to neurofen)

Samsung I9000

HTC Desire HD

(Thanks to Mikkel M)

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

Erlang R14 for Android (1267)

31 svar på “Erlang for the Android platform”

  1. Alain O'Dea skriver:

    I may have to abandon the iPhone/iPad jail for an Android device now. Erlang on a handheld has some pretty cool potential.

  2. neduma skriver:

    How about Nexus S?

  3. Friedel skriver:

    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.

  4. m skriver:

    Friedel, do us all a favor, read the man page of nice for once.

    Niclas, great work, you make me want an Android phone!

  5. Martin J. Logan skriver:

    Niclas, this is brilliant, I am so glad I have an Android phone.

  6. [...] Burbas.se » Erlang for the Android platform Erlang for the Android platform (via @gr0kk3d) http://ff.im/-vwhh0 (tags: via:packrati.us) [...]

  7. Aaron Miller skriver:

    This is awesome to see working by itself!

    • Niclas skriver:

      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?

  8. neurofen skriver:

    Tested successfully on Samsung Galaxy s (I9000) android v2.1 + upgrade

  9. garry skriver:

    Great work!
    I wanna android phone now :-)

  10. Ignat Tolchanov skriver:

    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.

  11. Matt skriver:

    Would you be able to make your build instructions for compiling Erlang source for the Android platform available?

    • Niclas skriver:

      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.

  12. Richard skriver:

    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?

  13. Richard skriver:

    That should have been ”and not phone internal memory” :D

    • Niclas skriver:

      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.

  14. alex skriver:

    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.

    • Niclas skriver:

      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)

  15. Johan skriver:

    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

  16. Sergio skriver:

    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

  17. sorner skriver:

    Wonder when the unrooted version of Erlang for Android will be possible to run.

  18. sir_sigurd skriver:

    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>

Lämna ett svar

Panorama Theme by Themocracy