Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-01

fpcres not found with custom FPC 2.6.4 installation on Ubuntu

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krzysztof

Hi,

I have fresh and clean Ubuntu OS (actually KDE Neon) and want to install Lazarus and FPC not with .deb packages as I used to do from many years, but in custom home dir (nothing in /bin or /usr/bin) because I want to have FPC 2.6.4 and FPC 3.0.4 living together separated + Lazarus 1.8 compiled and using right FPC version. So I downloaded FPC binaries + source and Lazarus 1.8 source. At first started with FPC 2.6.4. Extracted everything into:

/home/<username>/programowanie/fpc2/fpc <-- binaries /home/<username>/programowanie/fpc2/fpc-src <-- FPC source /home/<username>/programowanie/Lazarus_1_8_FPC2 <-- Lazarus source

The "/home/<username>/programowanie/fpc2/fpc" dir is a result of "install.sh" from fpc-2.6.4.x86_64-linux.tar. I ran it without "sudo" so I'm sure that nothing is put in "/usr/bin" or "/bin" because it require root permission. File /home/<username>/.fpc.cfg is created correctly with all paths pointing to
"/home/<username>/programowanie/fpc2/fpc". Everything looks fine. Now I have "mylazbuild.sh" build script in "Lazarus_1_8_FPC2" dir with content:

#!/usr/bin/env bash
make clean
make all PP=/home/<username>/programowanie/fpc2/fpc/lib/fpc/2.6.4/ppcx64 LCL_PLATFORM=qt

When run it (without sudo of course), it is compiling for a long while (promises good config), but at the end getting:

lazbuild.lpr(1872,1) Error: (9021) resource compiler "fpcres" not
found, switching to external mode

Any idea what is wrong? Do I have specify something in "export PATH=...."? Tried even make symlink to the ".../fpc2/fpc/bin/fpcres" in "/usr/locale/bin" or "/usr/bin" or "/bin" but it didn't help

Regards

Reply by email

Krzysztof
to Krzysztof

Note that I'm using stable releases both for FPC and Lazarus. Even tried same "mylazbuild.sh" script on Lazarus 1.6.2 source (which should be more compatible with FPC 2.6.4) and still getting same fpcres error

Reply by email

Mattias Gaertner
to Krzysztof: I have fresh and clean Ubuntu OS (actually KDE Neon) and want to install Lazarus and FPC…
Show quoted text 5 lines
[...] /home/<username>/programowanie/fpc2/fpc <-- binaries /home/<username>/programowanie/fpc2/fpc-src <-- FPC source /home/<username>/programowanie/Lazarus_1_8_FPC2 <-- Lazarus source [...]

#!/usr/bin/env bash

PATH="/home/<username>/programowanie/fpc2/fpc/lib/fpc/2.6.4/:$PATH" make clean
make all PP=/home/<username>/programowanie/fpc2/fpc/lib/fpc/2.6.4/ppcx64 LCL_PLATFORM=qt

You must start Lazarus with such a PATH too.

Mattias

Reply by email

Krzysztof
to Mattias Gaertner

2018-01-30 6:35 GMT+01:00 Mattias Gaertner via Lazarus :

Show quoted text 8 lines
#!/usr/bin/env bash PATH="/home/<username>/programowanie/fpc2/fpc/lib/fpc/2.6.4/:$PATH" make clean make all PP=/home/<username>/programowanie/fpc2/fpc/lib/fpc/2.6.4/ppcx64 LCL_PLATFORM=qt You must start Lazarus with such a PATH too.

Thanks a lot! Works now (but correct path must be: PATH="/home/<username>/programowanie/fpc2/fpc/bin/:$PATH" )

You can install both fpc 2 and 3, if you use the tool: fpcupdeluxe.

Interesting tool but already solved it with :$PATH and works perfect. Thanks anyway

Reply by email