Recent

Author Topic: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu  (Read 937 times)

process_1

  • Guest
Since there is no more .deb files, I have some problem to install both, FPC and Lazarus:

1. Step one is to remove old FPC and Lazarus

2. Further create a temp directory and make it active in konzole

3. Download FPC by this script:

fpc_3.2.0_dl.sh
Code: [Select]
mkdir dl
cd dl

wget -c https://master.dl.sourceforge.net/project/freepascal/Linux/3.2.0/fpc-3.2.0-x86_64-linux.tar
wget -c https://master.dl.sourceforge.net/project/freepascal/Source/3.2.0/fpc-3.2.0.source.tar.gz

4. Extract it in by this script:

fpc_3.2.0_extract.sh
Code: [Select]
cd dl
tar -xvf fpc-3.2.0-x86_64-linux.tar
tar -xvf fpc-3.2.0.source.tar.gz -C $HOME

5. Install it by this script  keeping all path by default:

fpc_3.2.0_install.sh
Code: [Select]
cd dl/fpc-3.2.0-x86_64-linux
./install.sh

Now it should be updated $PATH by $PATH=$PATH:$HOME/fpc-3.2.0/bin, however calling fpc have no effect.

I have also tryed symbolic linking:
cd /usr/bin
sudo ln -s $HOME/fpc-3.2.0/bin fpc_bin

But calling fpc as well have no effect.

6. Lazarus 2.0.8 is download and should be installed by this script:

laz_2_0_8_install.sh

Code: [Select]
mkdir -p $HOME/Lazarus
cd $HOME/Lazarus
svn checkout https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_8
cd lazarus_2_0_8
make clean
make bigide

But since fpc cannot be found this step cannot make Lazarus at all.

I'm not quite skilled in Linux and I would need a bit of help how to make this to work.
« Last Edit: June 23, 2020, 07:00:21 am by process_1 »

process_1

  • Guest
Re: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu
« Reply #1 on: June 23, 2020, 07:13:37 am »
BTW, I can confirm that following command works fine:

$HOME/fpc-3.2.0/bin/fpc

All files seems to be where they should be, but simply calling plain fpc doesn't work.




« Last Edit: June 23, 2020, 07:18:13 am by process_1 »

Zvoni

  • Sr. Member
  • ****
  • Posts: 423
Re: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu
« Reply #2 on: June 23, 2020, 12:18:15 pm »
1) Why are you posting in "General", and not in "Linux"?
2) Use fpcupdeluxe and be done with it......
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircraft

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8902
  • FPC developer.
Re: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu
« Reply #3 on: June 23, 2020, 12:36:41 pm »
That's normal for any home dir installs. With most *nix package systems you also need to create symlinks or add dirs to your PATH to get it to work.

Bi0T1N

  • Jr. Member
  • **
  • Posts: 50
Re: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu
« Reply #4 on: June 23, 2020, 02:06:09 pm »
2) Use fpcupdeluxe and be done with it......
Works only if you've a desktop environment ;)

To update your path for the current session:
Code: [Select]
export PATH="$HOME/fpc-3.2.0/bin:$PATH"Or permanently:
Code: [Select]
nano ~/.bashrcand append
Code: [Select]
export PATH="$HOME/fpc-3.2.0/bin:$PATH"

process_1

  • Guest
Re: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu
« Reply #5 on: June 23, 2020, 02:12:19 pm »
Thanks a lot, Bi0T1N, that fixed all issues here.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1364
Re: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu
« Reply #6 on: June 23, 2020, 02:19:54 pm »
For command line installs, you could use fpcup.
It was/is the starting-base of fpcupdeluxe.
https://github.com/LongDirtyAnimAlf/Reiniero-fpcup

Zvoni

  • Sr. Member
  • ****
  • Posts: 423
Re: Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu
« Reply #7 on: June 23, 2020, 03:12:29 pm »
2) Use fpcupdeluxe and be done with it......
Works only if you've a desktop environment ;)
Errrrr?????
The title says: ...... and Lazarus.......
I‘d like to see a Lazarus-Installation on a non-DE-Linux......
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircraft

 

TinyPortal © 2005-2018