Thanks for replying - sorry about not posting in the right forum, will next time.
There is allegro for raspberry pi - it just needed an apt-get allegro. Your -FU option didn't work, but you were right about the write permissions issue - I just needed to compile with sudo fpc test.pas