* * *

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

jabbersocky

  • 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.

Cheers!
Jabbersocky

Leledumbo

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

DonAlfredo

  • Hero Member
  • *****
  • Posts: 795
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.
https://github.com/LongDirtyAnimAlf/Reiniero-fpcup

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

Phil

  • Hero Member
  • *****
  • Posts: 2316
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:

https://dl.dropboxusercontent.com/u/28343282/MacXPlatform/PascalDynLibs_4.html

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

Thanks.

-Phil

jabbersocky

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

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

Cheers.
Jabbersocky.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus