#2132 Is it possible to run Fantom on a Raspberry Pi?

ortizgiraldo Tue 9 Apr 2013

I am wondering if anyone has successfully run Fantom on Raspberry Pi. I'm trying to install it without success. TBH it is my first attempt to run Fantom on Linux so the issues that I'm having could be completely unrelated to the RPi platform.

andy Tue 9 Apr 2013

You'll need Java - is there a JVM available for Raspberry Pi?

ortizgiraldo Tue 9 Apr 2013

I have Java installed...

java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.6) (7u3-2.1.6-1)
OpenJDK Zero VM (build 22.0-b10, mixed mode)

Now working as super user...

sudo -i

I downloaded Fantom...

cd /apps
wget http://fan.googlecode.com/files/fantom-1.0.64.zip

Then unzipped it and removed the zip...

unzip fantom-1.0.64.zip
rm ./fantom-1.0.64.zip

Then created a symlink...

ln -s fantom-1.0.64 fantom

These were the steps that I was missing..., Thanks Andy

chmod 0755 fantom/bin/*
echo "export PATH=$PATH:/apps/fantom/bin/" >> /etc/profile

And it works...

fan -version
Fantom Launcher
Copyright (c) 2006-2012, Brian Frank and Andy Frank
Licensed under the Academic Free License version 3.0

Java Runtime:
  java.version:    1.7.0_03
  java.vm.name:    OpenJDK Zero VM
  java.vm.vendor:  Oracle Corporation
  java.vm.version: 22.0-b10
  java.home:       /usr/lib/jvm/java-7-openjdk-armel/jre
  fan.platform:    linux-arm
  fan.version:     1.0.64
  fan.env:         sys::BootEnv
  fan.home:        /apps/fantom-1.0.64

ortizgiraldo Tue 9 Apr 2013

Now the problem is that if I try to install Tales...

sudo fanr install -r http://repo.talesframework.org:9000 tales

I get...

sudo: fanr: command not found

andy Wed 10 Apr 2013

Sounds like a path problem - check to make sure fanr is in your fantom/bin directory. You can also force it:

sudo <path>/fantom/bin/fanr ...

ortizgiraldo Wed 10 Apr 2013

Thank you for replying. It seems that it was files/folder ownership/permission problem. I ran the command without using sudo and it ran but failed with permission errors when tried to install the pods. I changed the ownership of fantom folders and files to the default user and group (pi:pi) so that I don't have to use sudo for this anymore, and everything started working now. I've created my first Tales project in Raspbian. Sorry guys for posting these silly questions here but I'm new to Linux and I still struggle with it.

andy Wed 10 Apr 2013

Sorry guys for posting these silly questions here but I'm new to Linux

If you had a problem - several other people probably did too, but didn't post. So its good to have this information here so its available. Every little bit increases the knowledge base for Fantom. So please don't ever hesitate to ask questions if you're having trouble! :)

P.S. - thats awesome we have Fantom running on the Pi - now I really need to get one ;)

ortizgiraldo Fri 12 Apr 2013

P.S. - thats awesome we have Fantom running on the Pi - now I really need to get one ;)

The RPi is a nice toy but very limited in resources. Make sure you get one of the latest models (model B) with 512 MB RAM. Mine is one of those but I noticed that compiling the simplest Tales project takes few seconds whereas in the laptop it does it almost instantly. I haven't done proper benchmarking though.

Login or Signup to reply.