FPCupDeLuxe install on Linux cheatsheet: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | long story short: | |
| 2 | 2 | ||
| 3 | 3 | - install Lazarus via **apt** or some other package-manager | |
| 4 | 4 | - download, unzip and compile [[fpcupdeluxe]] - or use fpcupdeluxe-binary and omit steps 1 and 3 | |
| 5 | 5 | - purge the above Lazarus | |
| 6 | 6 | - now use [[fpcupdeluxe]] to install an isolated Laz: choose **trunk**, **x86_64**, **linux**, **trunk** and click the **green thumbs-up button**. | |
| 7 | 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 | 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 | 9 | - This method may or may not succeed. It can be made to work though. | |
| 10 | 10 | ||
| 11 | 11 | ## Likely problems to occur | |
| 12 | 12 | ||
| 13 | 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 | 14 | ||
| 15 | 15 | ``` bash | |
| 16 | 16 | ls -l /usr/bin/fpc-3.0.0 ## mv /xx | |
| 17 | 17 | ls -l /usr/local/bin/fpc ## <--- which fpc -- must remain ! | |
| 18 | 18 | ``` | |
| 19 | 19 | ||
| 20 | 20 | Move /usr/bin/fpc* out of the path e.g. | |
| 21 | 21 | ||
| 22 | - | ||
| 22 | + | ```text | |
| 23 | + | sudo mv -f /usr/bin/fpc* /xxbroken | |
| 24 | + | ``` | |
| 23 | 25 | ||
| 24 | 26 | After IDE restart, everything compiles nicely. | |
| 25 | 27 | ||
| 26 | 28 | > **Note:** This condition can also be found via clicking `project options` button, then `Test` [[IDE Window: Project Options|Test-button]] to find problematic path settings. | |
| 27 | 29 | ||
| 28 | 30 | See also: | |
| 29 | 31 | ||
| 30 | 32 | - [[Unit not found - How to find units]] | |
| 31 | 33 | ||
| 32 | 34 | --- | |
| 33 | 35 | *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 | 36 | Category: Install | |
| 35 | 37 | Category: Troubleshooting |
