Versions -- May 15, 2000
You have issued the newrel command to generate directories for the standard SunOS5 version
of the code. Suppose you would like to run part of the time against the debug version of the code.
You can realize this as follows:
-
Reissue the
srtpath command for the appropriate version:
> srtpath 8.6.2d-physics-1
set BFCURRENT to 8.6.2d-physics-1
Select/enter BFARCH (CR=1):
1) SunOS5
2) SunOS5-noOptimize-Debug
2
set BFARCH to SunOS5-noOptimize-Debug
removing other SRT bin directories from PATH
adding ./bin/SunOS5-noOptimize-Debug and $BFDIST/releases/8.6.2d-physics-1/bin/SunOS5-noOptimize-Debug to PATH.
- Make sure you're in the release directory:
> cd mybabar/Beta_tt
and issue the command:
Beta_tt> gmake installdirs
Build OPTIONS = SunOS5-Debug-native-Objy-Fastbuild-Static-Lstatic
-> installdirs:
You can check that this worked:
Beta_tt> ls bin
SunOS5/ SunOS5-noOptimize-Debug/
You now have a directory structure which will accomodate two versions of the code.
You can compile and link executables for each version, by issuing the appropriate srtpath
command before making each executable.
If you want to be able to run on a Linux system as well, you can logon to a Linux machine and repeat the steps above:
> srtpath 8.6.2d-physics-1
set BFCURRENT to 8.6.2d-physics-1
Select/enter BFARCH (CR=1):
1) Linux2
2) Linux2-noOptimize-Debug
1
set BFARCH to Linux2
removing other SRT bin directories from PATH
adding ./bin/Linux2 and $BFDIST/releases/8.6.2d-physics-1/bin/Linux2 to PATH.
Beta_tt> gmake installdirs
Build OPTIONS = Linux2-Debug-native-Objy-Optimize-Fastbuild-Static-Lstatic
-> installdirs:
Beta_tt> ls bin
Linux2/ SunOS5/ SunOS5-noOptimize-Debug/
and then continue to make a Linux executable.