Forum > General

Installing FPC 3.2.0 and Lazarus 2.0.8 step by step on Ubuntu

(1/2) > >>

process_1:
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: ---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

--- End code ---

4. Extract it in by this script:

fpc_3.2.0_extract.sh

--- Code: ---cd dl
tar -xvf fpc-3.2.0-x86_64-linux.tar
tar -xvf fpc-3.2.0.source.tar.gz -C $HOME

--- End code ---

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

fpc_3.2.0_install.sh

--- Code: ---cd dl/fpc-3.2.0-x86_64-linux
./install.sh

--- End code ---

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: ---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

--- End code ---

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.

process_1:
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.




Zvoni:
1) Why are you posting in "General", and not in "Linux"?
2) Use fpcupdeluxe and be done with it......

marcov:
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:

--- Quote from: Zvoni on June 23, 2020, 12:18:15 pm ---2) Use fpcupdeluxe and be done with it......

--- End quote ---
Works only if you've a desktop environment ;)

To update your path for the current session:

--- Code: ---export PATH="$HOME/fpc-3.2.0/bin:$PATH"
--- End code ---
Or permanently:

--- Code: ---nano ~/.bashrc
--- End code ---
and append

--- Code: ---export PATH="$HOME/fpc-3.2.0/bin:$PATH"
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version