Difference between revisions of "FPCupDeLuxe install on Linux cheatsheet"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
{{LanguageBar}}<includeonly>{{CategoriesBySuffixForPage|FPC|Lazarus}}</includeonly>
 
{{LanguageBar}}<includeonly>{{CategoriesBySuffixForPage|FPC|Lazarus}}</includeonly>
 
__TOC__
 
__TOC__
[[category:Install]]
 
[[category:Troubleshooting]]
 
  
 
long story short:
 
long story short:
 
 
* install Lazarus via '''apt''' or some other package-manager
 
* install Lazarus via '''apt''' or some other package-manager
 
* download, unzip and compile [[fpcupdeluxe]] - or use fpcupdeluxe-binary and omit steps 1 and 3
 
* 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: choose '''trunk''' , '''x86_64''' , '''linux''' ,  '''trunk''' and click the '''green thumbs-up button'''.   
+
* 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.
+
*'''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.
 
* 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.
 
* This method may or may not succeed. It can be made to work though.
  
----
+
== Likely problems to occur ==
= 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 :
 
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">
 
<syntaxhighlight lang="bash">
Line 27: Line 23:
 
After IDE restart, everything compiles nicely.  
 
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.}}
 
{{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]]
+
 
 +
See also:  
 +
* [[Unit not found - How to find units]]
 +
 
 +
[[category:Install]]
 +
[[category:Troubleshooting]]

Revision as of 14:52, 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.

Light bulb  Note: This condition can also be found via clicking project options button, then Test Test-button to find problematic path settings.

See also: