Tried with a ubuntu virutal machine.
Found a template for building an micropython firmare, added the esplua repository and compiled.
This worked at the first attempt.
I found the template here:
https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266/build-firmware