Recent

Author Topic: Simple install  (Read 463 times)

HomerJ

  • New Member
  • *
  • Posts: 13
Simple install
« on: July 27, 2019, 09:24:31 pm »
I'm a long time Delphi programmer, but an extreme newcomer to Lazarus, FPC, and Linux. I would like to port a Delphi app to Lazarus/FPC so it can be run on a Linux server (CentOS). I did enough "porting" with a Windows install of Lazarus/FPC to know it can be done, so created a Linux VM (the latest Kubuntu). That worked well, however, I can't figure out how to install Lazarus/FPC. With Windows, there is one setup file that just installs everything I needed to start programming - out of the box.  I feel like a mechanic who is asked to build his own toolbox and then make the tools to put into it. Can someone help a newbie get started. I would be happy to switch to a different Linux distro if that is required.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1455
Re: Simple install
« Reply #1 on: July 27, 2019, 09:45:13 pm »

You can try  the tool "fpcupdeluxe"  to install Laz/FPC


https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.6.2x
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

HomerJ

  • New Member
  • *
  • Posts: 13
Re: Simple install
« Reply #2 on: July 27, 2019, 09:54:47 pm »
Thanks for the tip. I visited that site, but there were no instructions, nor was there a description of what the various downloads do. Sorry to be such a very new newbie.

af0815

  • Sr. Member
  • ****
  • Posts: 346
Re: Simple install
« Reply #3 on: July 27, 2019, 10:18:48 pm »
Download the correct binary, make it executable and start it. But you can test it with windows too. It is the same prog for all plattforms AND you can build easy a crosscompiler for a target. Eg. Win to arm-linux foe RasPi.
regards
Andreas

HomerJ

  • New Member
  • *
  • Posts: 13
Re: Simple install
« Reply #4 on: July 27, 2019, 10:31:44 pm »
Thanks, Andreas, but I am a newbie. I don't know how to "make it executable".  Perhaps this environment is just not for me.

af0815

  • Sr. Member
  • ****
  • Posts: 346
Re: Simple install
« Reply #5 on: July 27, 2019, 10:32:58 pm »
Sorry , but some basics you have to learn (with google).

Try fpcupdeluxe under windows first. So you see how it works and can create a second install. It is absolutly the same under other OS. Same code compiled under different OS :-)
If you want to deploy your app under other OS you have to know (most of) the differents.

https://medium.com/@peey/how-to-make-a-file-executable-in-linux-99f2070306b5
https://askubuntu.com/questions/156392/what-is-the-equivalent-of-an-exe-file
« Last Edit: July 27, 2019, 10:38:56 pm by af0815 »
regards
Andreas

HomerJ

  • New Member
  • *
  • Posts: 13
Re: Simple install
« Reply #6 on: July 27, 2019, 10:47:19 pm »
The app I'm working on will not be deployed. It is only for my use. The Windows version accesses a database on a CentOS cloud server but runs locally. Naturally, connecting is slow. I thought I might run a Linux version on the server to avoid wasting time waiting for the connection. Now I can see that I will spend more time struggling with learning Linux than I will waste with connection delays. I really appreciate the help you and others have offered, but I guess I'm just a Windows guy.

Flight714

  • New Member
  • *
  • Posts: 12
Re: Simple install
« Reply #7 on: July 28, 2019, 12:05:22 am »
It sounds like you might just be a couple steps away...

Code: Bash  [Select]
  1. chmod +x ./InstallerFile

That ought to make it executable (change the name of the file accordingly; the ./ just means to look in the current folder for the file) then you can run it...

Code: Bash  [Select]
  1. ./InstallerFile

I work with Linux a lot, feel free to pm (I just don't know Delphi)

julkas

  • Sr. Member
  • ****
  • Posts: 382
  • KISS principle / Lazarus 2.0.0 / FPC 3.0.4
Re: Simple install
« Reply #8 on: July 28, 2019, 09:14:29 am »
@HomerJ For beginner I suggest Lazarus/FPC installation from rpm packages. I installed Lazarus 2.0.2 on Centos7 VM this way.
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/Lazarus%202.0.2/
« Last Edit: July 28, 2019, 10:13:30 am by julkas »
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

HomerJ

  • New Member
  • *
  • Posts: 13
Re: Simple install
« Reply #9 on: July 29, 2019, 08:06:34 pm »
I will be unavailable for about a week, so I'll take a look at your kind suggestions next week. Thanks again.