NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Knowledge > BuildingMCAgainstAipsPlusPlus
   Readme | Changes | Index | Search | Go

Problem

How do I rebuild M&C against a new version of Aips++?

Solution

The following instructions show how to rebuild and reinstall those portions of the GBT Monitor and Control system dependent on AIPS++.

1. Specify the path to the targeted AIPS++ version, e.g, on Linux going from stable2 to stable1.

$ pwd
/home/gbt2/monctrl/3.4
$ cd ygor/utilities/makefiles/
/home/gbt2/monctrl/3.4/ygor/utilities/makefiles
$ ed arch.mk
3263
/GLISH
GLISHSUNROOT=/home/aips++/release

GLISHLINUXROOT=/home/aips++/stable2
s/stable2/stable1/p
GLISHLINUXROOT=/home/aips++/stable1
w
3263
q
$

2. Check that the build environment is correct.

$ id
uid=22(monctrl) gid=22(monctrl)
$ env | grep YGOR
YGOR_ROOT=/home/gbt2/monctrl/3.4/ygor
YGOR_INSTALL=/home/gbtversions/3.4.3
$ env | grep ROOT
YGOR_ROOT=/home/gbt2/monctrl/3.4/ygor
GB_ROOT=/home/gbt2/monctrl/3.4/gb
$

3. Update the makefile includes (*.mk).

$ make install
make[1]: Entering directory `/home/gbt2/monctrl/3.4/ygor/utilities/makefiles'
All environment variables set. Ready to install.
Running install.sh
install -m 444 CommonRules.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 Antenna.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 CommonRules.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 Console.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 DebugMonitor.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 FitsIO.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 Glish.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 Mcb.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 Monitor.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 Registry.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 Sampler.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 arch.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 i386-linux.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 i386-linuxC++exe.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 i386-winnt.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 i386-winntexe.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 mv147-vxworks.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 mv167-vxworks.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 sparc-solaris.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 sparc-solarisC++exe.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 sparc-solarisCexe.mk /home/gbt2/monctrl/3.4/ygor/include
install -m 555 vxWorksC++exe.mk /home/gbt2/monctrl/3.4/ygor/include
make[1]: Leaving directory `/home/gbt2/monctrl/3.4/ygor/utilities/makefiles'
$ cd ../../..
$ 

4. Fully and cleanly rebuild and reinstall the source directories: ygor/GServer and ygor/user and gbt/user for example:

$ pwd
/home/gbt2/monctrl/3.4/ygor/user
$ make clobber
output ...
$ make depend
output ...
$ make 
output ...
$ make install
output ...
Inspect the output of the builds to guarantee the code is clean and complete.

5. Users must close down all Ygor Glish clients and re-run source /home/gbt/gbt.bash.

-- AmyShelton - 31 Jul 2003

WebForm
TopicClassification: NoDisclosure
OperatingSystem:
OsVersion:

Topic BuildingMCAgainstAipsPlusPlus . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More }
Revision r1.1 - 31 Jul 2003 - 13:00 GMT - AmyShelton Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.