I am an absolute beginner with Linux.
I did install UBUNTU 10.04 = great, but every time I try to run Lazarus it raises a message:
'"/usr/share/fpcsrc/2.4.0/" does not look correct'
How to solve this ?
Thank you !

Dani AI

Generated

Short expert note (clarifies what saw and expands on ’s hint).

That Lazarus startup message means the IDE checked the configured FPC source directory and did not find the expected source tree (typical folders: rtl, compiler, packages, plus a Makefile). The IDE performs that validation on startup and will refuse the path if those elements are missing. ()

Quick diagnostics (run in a terminal):

fpc -iV
which fpc
ls -la /usr/share/fpcsrc/$(fpc -iV)   # check the folder that matches the compiler version
ls -la /usr/share/fpcsrc               # list available fpcsrc versions

The -iV option prints the FPC version; the sources are normally installed under /usr/share/fpcsrc/<version>/. Use these listings to confirm whether a matching source tree exists. (manpages.ubuntu.com)

Common fixes

  • If the folder is empty or absent, install the FPC source package so Lazarus can find it. On Debian/Ubuntu variants this is provided by an fpc-source (or a versioned fpc-source-<version>) package; use the package manager or download the matching source tarball from the Free Pascal site and place it under /usr/share/fpcsrc/<version>/. Example commands (adjust for exact package names on the target distro):
sudo apt-get update
sudo apt-get install fpc fpc-source
# or: apt-cache search fpc | grep source

Installing sources before/alongside Lazarus is the usual sequence. (wiki.linuxmuster.net)

Configure and caution

Set the IDE FPC Source Directory (Environment -> Environment Options -> Files) to the path that contains the rtl/compiler tree. If the installed source version differs only slightly from the compiler version and compatibility is known, a carefully used symlink can be a temporary workaround (for example, sudo ln -s /usr/share/fpcsrc/2.4.4 /usr/share/fpcsrc/2.4.0), but mixing incompatible versions can break builds — when in doubt install the exact matching fpc-source package or reinstall packages to resolve version conflicts. If problems persist, reinstalling matching fpc/fpc-source/lazarus packages usually clears version mismatch issues. (sources.debian.org)

Summary: inspect the source folder contents (look for rtl, compiler, packages), confirm fpc -iV, install the matching fpc-source package or copy the correct source tree into /usr/share/fpcsrc/<version>/, and point Lazarus to that directory.

Recommended Answers

All 2 Replies

This may be a result of the files being updated to the newest release, can you confirm that there are files in /usr/share/fpcsrc/2.4.0/, or can you double check what folders are in the parent directory: /usr/share/fpcsrc/

This is likely due to a dependency not being installed correctly, or in the correct location.

I did solve my problem with Lazarus under Ubuntu 10.04 Linux.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.