Difference between revisions of "FPCupDeLuxe install on Linux cheatsheet"
From Lazarus wiki
Jump to navigationJump to searchLine 26: | Line 26: | ||
After IDE restart, everything compiles nicely. | After IDE restart, everything compiles nicely. | ||
− | {{Note|This condition can also be found via {{keypress|project options}} | + | {{Note|This condition can also be found via clicking {{keypress|project options}} button, then {{keypress|Test}} button to find problematic path settings.}} |
see also: [[Unit not found - How to find units]] | see also: [[Unit not found - How to find units]] |
Revision as of 00:28, 19 October 2017
│ 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 button to find problematic path settings.
see also: Unit not found - How to find units