Sign in Join
Wiki copytemporary

FPCupDeLuxe install on Linux cheatsheet: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: FPCupDeLuxe install on Linux cheatsheet

OldNewLine
1+long story short:
2+
3+- install Lazarus via **apt** or some other package-manager
4+- download, unzip and compile [[fpcupdeluxe]] - or use fpcupdeluxe-binary and omit steps 1 and 3
5+- purge the above Lazarus
6+- now use [[fpcupdeluxe]] to install an isolated Laz: choose **trunk**, **x86_64**, **linux**, **trunk** and click the **green thumbs-up button**.
7+- **fpc**, the actual Pascal compiler, will not be in the searchpath, hence **make** will require extra parameters; a mere **make all** won't work now.
8+- Use the provided launcher in ~ or home/YOU/Desktop (.desktop file) to run "**startlazarus**" employing a **--[[pcp]]** directive to keep multiple Lazaruses apart.
9+- This method may or may not succeed. It can be made to work though.
10+
11+## Likely problems to occur
12+
13+Since the Mint / Ubuntu Laz package and f.deluxe do not harmonize, you will very likely end up with 2 compilers in \$PATH if you mix **f-deluxe**, **make** from sources and **apt** methods. Do **ls** to verify in case that nothing ever compiles due to "**unit not found**" errors :
14+
15+``` bash
16+ ls -l /usr/bin/fpc-3.0.0 ## mv /xx
17+ ls -l /usr/local/bin/fpc ## <--- which fpc -- must remain !
18+```
19+
20+Move /usr/bin/fpc* out of the path e.g.
21+
22+`sudo mv -f /usr/bin/fpc* /xxbroken`
23+
24+After IDE restart, everything compiles nicely.
25+
26+> **Note:** This condition can also be found via clicking <span class="kbd">project options</span> button, then <span class="kbd">Test</span> [[IDE Window: Project Options|Test-button]] to find problematic path settings.
27+
28+See also:
29+
30+- [[Unit not found - How to find units]]
31+
32+---
33+*From the Free Pascal wiki, page "FPCupDeLuxe install on Linux cheatsheet", as it stood on 2020-06-29 after a change by Arent, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
34+Category: Install
35+Category: Troubleshooting

Back to history