Location of Compiler on Ubuntu lazarus / 1-Linux ---------------------------------------------------------------------- cov · 2014-11-21 13:45 I tried to run Lazarus for the first time in a long time and the IDE couldn't find the fcp compiler. Code: [Select]dave@Threepwood:~$ ls /usr/bin/fp fp-2.6.0            fpcmake-2.6.0       fpdoc-2.6.2 fp-2.6.2            fpcmake-2.6.2       fppkg fpc-2.6.2           fpcmkcfg-2.6.2      fppkg-2.6.0 fpc-depends         fpcres-2.6.2        fppkg-2.6.2 fpc-depends-2.6.2   fpcsubst            fprcp fpclasschart        fpcsubst-2.6.0      fprcp-2.6.0 fpclasschart-2.6.0  fpcsubst-2.6.2      fprcp-2.6.2 fpclasschart-2.6.2  fpdoc              fpcmake             fpdoc-2.6.0        I'm not sure which one to use. I'm getting an error message that says:QuoteCompiler "/usr/bin/fpc-2.6.2" does not support target x86_64-linux ---------------------------------------------------------------------- Leledumbo · 2014-11-22 13:56 Looks like Ubuntu does a mess with its fpc package. The real compiler is ppc[ross]XXX where XXX being the target architecture and ross infix being an indicator of a cross compiler, fpc itself is just a "driver" that selects the correct ppc[ross]XXX based on -P parameter (defaults to architecture where fpc itself is compiled for). It should be a symlink in the /usr/bin to the same ppc[ross]XXX binary in fpc directory, which normally installs as /usr/lib/fpc/$fpcversion. Please check that. Check also your fpc.cfg to ensure the paths are valid. ---------------------------------------------------------------------- cov · 2014-11-24 09:54 My installation seems to be full of broken links. I have a lnked file in /usr/bin/ppcx64 -> /etc/alternatives/ppcx64,  /etc/alternatives/ppcx64 -> /usr/lib/fpc/2.6.2/ppcx64,  but /usr/lib/fpc/2.6.2/ppcx64 doesn't exist. ---------------------------------------------------------------------- marcov · 2014-11-24 10:04 Maybe you installed the 32-bit instead of the 64-bit version? ---------------------------------------------------------------------- Leledumbo · 2014-11-24 10:47 Quote from: cov on November 24, 2014, 10:54:17 amMy installation seems to be full of broken links. I have a lnked file in /usr/bin/ppcx64 -> /etc/alternatives/ppcx64,  /etc/alternatives/ppcx64 -> /usr/lib/fpc/2.6.2/ppcx64,  but /usr/lib/fpc/2.6.2/ppcx64 doesn't exist. Using your current package manager (probably synaptics), you should be able to list installed files from a package. In ubuntu, the compiler package is fp-compiler if I'm not mistaken. If it's installed but the file is missing, try reinstalling. Ohterwise, you can use distro neutral version here. ---------------------------------------------------------------------- cov · 2014-11-25 14:39 Synaptic tells me that the compiler is here: /usr/lib/fpc/2.6.2/ppcx64 which it's not: ~$ ls -l /usr/lib/fpc/2.6.2/ total 24 -rw-r--r-- 1 root root   71 Aug 19 15:50 fpc-cross.cfg drwxr-xr-x 3 root root 4096 Aug 19 15:03 ide drwxr-xr-x 2 root root 4096 Aug 19 15:50 lexyacc drwxr-xr-x 2 root root 4096 Aug 19 15:04 msg -rwxr-xr-x 1 root root 2785 Jan 22  2014 samplecfg drwxr-xr-x 3 root root 4096 Mar 20  2014 units ---------------------------------------------------------------------- marcov · 2014-11-25 14:47 Remove and reinstall. If then still missing, I think it is time for a bugreport to the Linux distribution's bug tracker.