Difference between revisions of "FPCupDeLuxe install on Linux cheatsheet"
From Lazarus wiki
Jump to navigationJump to search (nothing compiles due to unit not found errors) |
|||
Line 16: | Line 16: | ||
ls -l /usr/bin/fpc-3.0.0 ## mv /xx | ls -l /usr/bin/fpc-3.0.0 ## mv /xx | ||
− | ls -l /usr/local/bin/fpc ## <--- which | + | ls -l /usr/local/bin/fpc ## <--- which fpc -- must remain ! |
Move /usr/bin/fpc* out of the path e.g. | Move /usr/bin/fpc* out of the path e.g. |
Revision as of 11:36, 18 October 2017
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 . Do ls to verify in case that nothing 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
This condition can also be found via "project options" button ; "Test" button to find problematic pathn settings.