Author Topic: Compiling on Amazon EC2 Ubuntu  (Read 3687 times)


  • Newbie
  • Posts: 4
Compiling on Amazon EC2 Ubuntu
« on: April 18, 2016, 11:41:07 am »
Hi guys.

Hope someone can help. I'm having trouble compiling an application on Ubuntu that works on Windows. I've scoured the web, but with no joy.

I've got a server application written using FPC 2.6.4 on Windows. All works well.
I've created a free micro instance (ubuntu-trusty-14.04-amd64-server) on Amazon EC2.
I typed fpc at the shell prompt to see if any compiler was there. It wasn't  but I was told to do: sudo apt-get install fpc-2.6.2 (or something like that)  It seemed to install, but when I went to compile my application, it compained that unit IniFiles could not be found.  Likewise, the same with Contnrs. 
I found these units online and just copied them into my project folder, but still cannot compile. Any idea why these units, and possibly others were missing from the installation in the first plce, and how do I fix the issue.



  • Hero Member
  • *****
  • Posts: 8222
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Compiling on Amazon EC2 Ubuntu
« Reply #1 on: April 18, 2016, 12:39:25 pm »
Read the warning carefully if you intend to install the precompiled binaries (implies understanding how to create and modify one).


  • Hero Member
  • *****
  • Posts: 1294
Re: Compiling on Amazon EC2 Ubuntu
« Reply #2 on: April 18, 2016, 01:23:48 pm »
I used fpc(laz) up to install FPC (and Lazarus) on an Amazon instance.

I am the maintainer of the above installer.
And therefor biased ...  ;)


  • Hero Member
  • *****
  • Posts: 2750
Re: Compiling on Amazon EC2 Ubuntu
« Reply #3 on: April 18, 2016, 08:31:30 pm »
I've found that the Laz FPC .deb generally installs fine on AWS, as described here:

I've also found that converting the FPC .rpm to .deb with alien also works, eg,

      sudo apt-get install alien
      sudo alien -d --scripts fpc-3.0.0-1.x86_64.rpm
      sudo dpkg -i fpc_3.0.0-2_amd64.deb




  • Newbie
  • Posts: 4
Re: Compiling on Amazon EC2 Ubuntu
« Reply #4 on: April 19, 2016, 01:23:01 am »

Thanks for your comments.

I was actually able to get it going in the meantime by doing:

sudo apt-get update   (didn't do this before)
sudo apt-get install fpc-2.6.2



TinyPortal © 2005-2018