Talk:Multiple Lazarus

From Lazarus wiki
Jump to navigationJump to search

at the moment it is very difficult to even set up all paths correctly just for the primary /home/you/development install, with everything pointing to ~/development... and nothing to some /usr/... stuff

it's clearly not enough to use --pcp

--Mai 17:05, 19 February 2015 (CET)

I made the following bash script and saved it as /usr/bin/lazarus-alt

 #!/bin/bash
 LAZ_DIR=$HOME/.lazarus
 NEW_DIR=$HOME/.lazarus-alt
 #  force creation of the new dir
 if [ ! -d $NEW_DIR ] 
 then
    echo "Initializing Lazarus Alternative directory..."
    mkdir $NEW_DIR
    cp $LAZ_DIR/*  $NEW_DIR/
    if [ -d $LAZ_DIR/onlinepackager ]
    then
      ln -s $LAZ_DIR/onlinepackager $NEW_DIR
    fi  
 fi
 lazarus --primary-config-path=$NEW_DIR --skip-last-project

--AndrewH 20:53, 19 December 2019 (CET)


afaik "~/development" is not used by the official installer ( https://sourceforge.net/projects/lazarus/files/ ) IIRC this is used by the getlazarus distribution? If so, then you need to ask them what changes they made. In *addition* to using --pcp you can run [start]lazarus --setup which brings up a dialog helping to set up all important paths for a given pcp. Also you will get more replies when discussing this on the forum or maillist. --User:Martin

"Newer installers support installing Lazarus multiple times." - yeah ? I don't think so but perhaps the author of that line was thinking of some specific 'installer' ? Some clarification is needed IMHO. dbannon, Nov 2023