Ubuntu – Lazarus: Missing FPC Sources/Directory

14.04lazarussoftware installation

I'm trying to install Lazarus for Ubuntu 14.04 and it's telling me that it cannot find a directory.

So I think some library or something is missing, but I don't know where to find it (searching online shows nothing unless you know what to search for) and don't know how to "install" it.

enter image description here

How can I install this thing? How do I get the FPC sources it's asking for?

Best Answer

I will show you how to install lazarus per the official wiki.

First, remove the current installed lazarus, like so:

sudo apt-get remove lazarus*

Clean up packages that the old lazarus installation might have left lying around, that might conflict whit the packages from the lazarus repository.

sudo apt-get autoremove

Download the lazarus key:

gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F

Add the lazarus key:

gpg --export 6A11800F | sudo apt-key add -

Add the lazarus repo to a lazarus.list file:

echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" > lazarus.list

Move it to your sources.list

sudo mv -v lazarus.list  /etc/apt/sources.list.d/lazarus.list

update your sources list:

sudo apt-get update

install lazarus:

sudo apt-get install -t lazarus-stable lazarus

If you get a missing FPS/Sources, the documentation had this to say:

WOW! You get a message: "Free Pascal sources not found". Just follow the instructions and indicate your Free Pascal Compiler source directory in the panel: "Environment->Options->Files". As explained earlier, on my computer this should point to "/usr/local/src/fpc-2.4.2". Note that when you change this folder, you should click on "Environment / Rescan_FPC_source_directory". - Installing Lazarus - Free Pascal wiki


Reference:

Related Question