FPCupDeLuxe install on Linux cheatsheet: Difference between revisions
From Lazarus wiki
Jump to navigationJump to search
No edit summary |
m (Arent moved page install on Linux cheatsheet to FPCupDeLuxe install on Linux cheatsheet) |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar}}<includeonly>{{CategoriesBySuffixForPage|FPC|Lazarus}}</includeonly> | |||
__TOC__ | |||
long story short: | long story short: | ||
* install Lazarus via '''apt''' or some other package-manager | * install Lazarus via '''apt''' or some other package-manager | ||
* compile [[fpcupdeluxe]] | * download, unzip and compile [[fpcupdeluxe]] - or use fpcupdeluxe-binary and omit steps 1 and 3 | ||
* purge the above Lazarus | * purge the above Lazarus | ||
* now use [[fpcupdeluxe]] to install an isolated Laz. ''' | * now use [[fpcupdeluxe]] to install an isolated Laz: choose '''trunk''', '''x86_64''', '''linux''', '''trunk''' and click the '''green thumbs-up button'''. | ||
*'''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. | |||
* Use the provided launcher in ~ or home/YOU/Desktop (.desktop file) to run "'''startlazarus'''" employing a '''--[[pcp]]''' directive to keep multiple Lazaruses apart. | |||
* This method may or may not succeed. It can be made to work though. | |||
== Likely problems to occur == | |||
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 : | |||
<syntaxhighlight lang="bash"> | |||
ls -l /usr/bin/fpc-3.0.0 ## mv /xx | |||
ls -l /usr/local/bin/fpc ## <--- which fpc -- must remain ! | |||
</syntaxhighlight> | |||
Move /usr/bin/fpc* out of the path e.g. | |||
sudo mv -f /usr/bin/fpc* /xxbroken | |||
After IDE restart, everything compiles nicely. | |||
{{Note|This condition can also be found via clicking {{keypress|project options}} button, then {{keypress|Test}} [[IDE_Window:_Project_Options#Test|Test-button]] to find problematic path settings.}} | |||
See also: | |||
* [[Unit not found - How to find units]] | |||
[[category:Install]] | |||
[[category:Troubleshooting]] |
Latest revision as of 14:56, 29 June 2020
│ English (en) │
long story short:
- install Lazarus via apt or some other package-manager
- download, unzip and compile fpcupdeluxe - or use fpcupdeluxe-binary and omit steps 1 and 3
- purge the above Lazarus
- now use fpcupdeluxe to install an isolated Laz: choose trunk, x86_64, linux, trunk and click the green thumbs-up button.
- 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.
- Use the provided launcher in ~ or home/YOU/Desktop (.desktop file) to run "startlazarus" employing a --pcp directive to keep multiple Lazaruses apart.
- This method may or may not succeed. It can be made to work though.
Likely problems to occur
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 :
ls -l /usr/bin/fpc-3.0.0 ## mv /xx
ls -l /usr/local/bin/fpc ## <--- which fpc -- must remain !
Move /usr/bin/fpc* out of the path e.g.
sudo mv -f /usr/bin/fpc* /xxbroken
After IDE restart, everything compiles nicely.
Note: This condition can also be found via clicking project options button, then Test Test-button to find problematic path settings.
See also: