How to install different FPC versions on Linux lazarus / 1-Linux ---------------------------------------------------------------------- TurboRascal · 2012-01-07 00:04 I was wondering how to do it for having both stable and current Lazarus versions, since they need different compiler versions. Installing different lazarus versions is not hard, they just need two different install directories. However, contrary to windows installations where each different Lazarus directory has its own fpc subdir, in Linux FPC is installed system-wide, so normally there shouldn't be but one instance installed, and if a different version is installed, for example under /usr/local, they would clash. I wonder if the right approach would be similar to windows installs, having different fpc versions under some arbitrary subdirectories? Even then, I still need a system-wide fpc installation, so I wonder if it will collide with another fpc used by one of lazarus versions which needs it, so that lazarus instance might have problems? ---------------------------------------------------------------------- marcov · 2012-01-07 01:13 Quote from: TurboRascal on January 07, 2012, 01:04:24 amI was wondering how to do it for having both stable and current Lazarus versions, since they need different compiler versions. Installing different lazarus versions is not hard, they just need two different install directories. However, contrary to windows installations where each different Lazarus directory has its own fpc subdir, in Linux FPC is installed system-wide, so normally there shouldn't be but one instance installed, and if a different version is installed, for example under /usr/local, they would clash. I wonder if the right approach would be similar to windows installs, having different fpc versions under some arbitrary subdirectories? Even then, I still need a system-wide fpc installation, so I wonder if it will collide with another fpc used by one of lazarus versions which needs it, so that lazarus instance might have problems? (untested, just a direction that you could look into) You could use add a fpc -V parameter to one. Snince fpc -V2.4.4    will execute (assuming x86) ppc386-2.4.4 directory (e.g. 0.9.30) and a symlink namde default pointing to id. If you had several versions, they would be under version named directories, and your program would just switch which of those directories the symlink points to. @BigChimp: I guess I'll try something like that. I've installed both 0.9.30.2 and a 0.9.31 in the /usr/local tree, and they're both using fpc 2.4.4. I guess I'll just install the 2.6.0. under the testing version Lazarus dir, exactly as it is in windows, and point Lazarus to it and see what happens. I'd like it more to have 2.6.0 systemwide and install 2.4.4 for Lazarus 0.9.30.2 only, but there is no fpc 0.6.0 for amd64 architecture deb available yet... ---------------------------------------------------------------------- CaptBill · 2012-01-17 03:48 This is where a custom repository would be nice. Put all the versions into extensions: fpc2-4-2.ext,fpc2-6.ext, laz-x-x.ext, etc etc. Even components could reside in the local repo... Or anything else, for that matter. A middle-tier between the file system and OS. Then you "mount" the system you need, when you need it. Group extensions into "packages", which equal a full "install" with fpc version, Lazarus version, and components of your choice. ---------------------------------------------------------------------- Zoran · 2012-01-17 06:45 On my Kubuntu 11.10 I removed FPC 2.4.4, installed 2.6.0, recompiled both versions of Lazarus I have (0.9.30.3 - fixes and 0.9.31 - trunk). I have no problem, both these versions of Lazarus work well with FPC 2.6.0. I have 32 bit installation of Kubuntu, so I haven't tried this with 64 bit FPC, but... why would it make any problem when there is no problems in 32 bit? You should try! ---------------------------------------------------------------------- TurboRascal · 2012-01-17 20:31 There is no problem in 64-bit, but there are no fpc 2.6.0 debs yet in the repo And I prefer installing fpc "the debian way" because it saves me headaches... My two lazarus installs are done manually as I find no problems there (I actually like that way better than installing it from the repo). They both work fine with 2.4.4, but I thought I might install fpc 2.6.0 just for lazarus 0.9.31 - if it works, great, if not, it already works fine this way I'd prefer if the stable version could work with 2.6.0, but it seems it doesn't, so I'll leave it that way. I might add a third install for the fixes branch ---------------------------------------------------------------------- BigChimp · 2012-02-12 14:15 Ludob & I just finished a new version of fpcup. It should allow side by side installs of SVN fpc+Lazarus, even though systemwide fpc/Lazarus is present... Very useful to install/update an SVN Lazarus/FPC version for a user Maybe this will help you... If it doesn't work, just remove the created directories and you're done Comments/reactions welcome in my FPCup thread... ---------------------------------------------------------------------- TurboRascal · 2012-02-12 20:05 Great, you've been very busy with this It seeems it's time for me to use it ---------------------------------------------------------------------- Martin_fr · 2012-02-12 22:01 At first: Lazarus release and trunk both work with fpc 2.4.4. Not sure about 2.6 but they might... As for the installation: you can install fpc in any directory. IIRC 2 possible issues: - fpc loads ppcXXX anb might get the global one. If you do not cross compile, just configure lazarus with the ppcXXX instead of fpc - fpc.cfg there is a global one in /etc/ Make sure your ppcXXX finds another one first, and stops after that ppcXXX -va uint1.pas | grep fpc.cfg