[Lazarus] Dual installation of FPC
patspiper
patspiper at yahoo.com
Mon Oct 25 11:02:35 CEST 2010
On 10/25/2010 12:42 AM, Thierry B. wrote:
> Argl, you are right to insist. After each freepascal build from source,
> , you have to link fpcres as I did AND link
> /fpc/X.X.X/lib/fpc/X.X.X/ppcXXX to /fpc/X.X.X/bin/ppcXXX (although I did
> only once for fpcres).
>
> As I use a script to build FPC and Lazarus (inspired from various
> sources here), I forgotten this step. Here is an excerpt
>
>
> ake clean all $COMMONOPTS PP=$FPCSTART> ${LOGDIR}/build_fpc_log.txt 2>&1
> if [ ! $? = 0 ] ; then
> echo Grrr, failed again
> else
> make install $COMMONOPTS INSTALL_PREFIX=$INSTALLDIR
> PP=$SRCDIR/compiler/$PPCNAME> ${LOGDIR}/install_fpc_log.txt 2>&1
> if [ ! $? = 0 ] ; then
> echo INSTALL failed | tee -a ${LOGDIR}/outcome.txt
> else
> ln --symbolic $INSTALLDIR/lib/fpc/$FPCNEWVERSION/$PPCNAME
> $INSTALLDIR/bin/$PPCNAME<---------------------------------------------
> echo Everything _should_ be fine.| tee -a ${LOGDIR}/outcome.txt
> fi
> fi
>
> Thierry B.
>
It's a relief for me to see that I am on the right track.
Your script seems quite interesting and well thought. What I have done
is create a script for each FPC version that sets $PATH and launches
Lazarus.
Thanks!
More information about the Lazarus
mailing list