Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Try Delphi on Amazon Linux.

Author: h.mohri

I tried Delphi on Amazon Linux.

Amazon Linux is Linux that exists only in the instance of EC2(AWS).

“Free tier eligible” can be used.

 

[Create an instance.]

Select Amazon Linux from EC 2 and create a new instance.

It is possible to connect with SSH in the initial state.

 

[Environment building]

http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Linux_Application_Development

Install the SDK referring to the above URL.

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/compile-software.html

[crayon-6768a21943bda932171774/]

It will be OK if “Complete!” Is displayed.

 

[Setting up PAServer]

PAServer exists in the 10.2 Tokyo directory.

[crayon-6768a21943be0663636541/]

This using the SFTP and put in EC2(Amazon Linux).

Unzip LinuxPAServer19.0.tar.gz.

[crayon-6768a21943be2816922468/]

Allow 64211 port on EC2 security management screen.

[crayon-6768a21943be3846959118/]

Connect test to start paserver.

Work on the RAD Studio side. [Tools]→[Options]→[Connection Profile Manager]

 

Enter the IP address,

Confirm that you succeeded by clicking the “Test Connection” button.

[Options]→[SDK Manager]→[Add New SDK]

Select the “Amazon Linux AMI 2017.03”.

Start SDK import.

After Completed, it runs in a new project.

I get an error.

[crayon-6768a21943be4407536386/]

Install some missing libraries.

[crayon-6768a21943be5457034057/]

Import the SDK again.

Since an error occurs, change the name of so file on Windows side.

libgcc_s.so.1 → libgcc_s.so

libcurl.so.4 → libcurl.so

 

[Execute this code.]

It is a simple http connection program code using TNetHTTPClient.

[crayon-6768a21943be6326858889/]

 

[result]

I was able to run Delphi on Amazon Linux(EC2).

 

Do you want to try Delphi on Linux?  Try the IDE Software,  which can help you create apps in Delphi or C++ environments.

Exit mobile version