######### FOR WINDOWS ################# ####dependencies - Microsoft VC++ version 6.0 (Microsoft Visual Studio .Net or VC7 won't work) (Essential) - JAVA JRE version 1.2 or higher (For Visualization Tool) - JAVA SDK version 1.2 or higher (For Visualization Tool) ##### 1. download GloMoSim & Parsec compiler from http://pcl.cs.ucla.edu/projects/glomosim/academic/topsecret_download.html this is a tar.gz package containing both. 2. extract to c:\glomosim_2_03 after this step, you should have "c:\glomosim_2_03\glomosim" and "c:\glomosim_2_03\parsec" ready. **NOTICE** here the name of the root directory for glomosim and parsec has to be without any special characters, o/w environment variables couldn't recognize the directory 3. copy EVERYTHING in "glomosim_2_03\parsec\windowsnt-4.0-vc6" to "c:\glomosim_2_03\parsec", and delete all other directories 4. Set pcc environmental variables (For Parsec) (1) My Computer -> Properties -> Advanced -> Environmental Variables (2) New "PCC_DIRECTORY", value = "C:\glomosim_2_03\parsec" (3) Set path "C:\glomosim_2_03\parsec\bin" 5. Set VC6.0 environmental variables (if default, go to step 5) 1) Set include: "C:\Program Files\Microsoft Visual Studio\VC98\MFC\Include; C:\Program Files\Microsoft Visual Studio\VC98\Include" 2) Set lib: "C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib; C:\Program Files\Microsoft Visual Studio\VC98\Lib" 3) Set path: "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin" 6. Check pcc environment by "pcc -env" in cmd prompt 7. upon successful installation of parsec compiler, go to next step 8. go to c:\glomosim_2_03\glomosim\main\ run makent.bat 9. glomosim.exe is generated in c:\glomosim_2_03\glomosim\bin 10. TEST glomosim (1) run "glomosim config.in" (2) glomosim.stat is generated in current directory (3) compare glomosim.stat with glomosim.stat.sample 11. Build GloMoSim Visualisation Tool (VT) (1) setup java environment variables (2) go to C:\glomosim_2_03\glomosim\java_gui (3) run "javac *.java" to compile the visualization tool 12. GloMoSim is now ready to use 13. run GloMoSim Visualization Tool (1) go to C:\glomosim_2_03\glomosim\java_gui (2) run java GlomoMain 14. DONE! try simulating something ######### FOR SOLARIS ################# 1. download .tar.gz file 2. extract 3. cp parsec/solaris-gcc3.0.3/ folder to a certain directory. (by default, parsec dir is /usr/local/parsec, but you cant access /usr/local on solaris machines. You have to choose another one in your own home directory e.g. my dir is /home/taojin/courses/wireless/glomosim_2_03/parsec/ 4. run setenv PCC_DIRECTORY "your parsec dir" 5. add parsecdir/bin to your PATH env variable setenv PATH "parsecdir"/bin:$PATH 6. test pcc by typing pcc in any directory if you see the following output $pcc no input file that means your pcc has been successfully installed 7. change to dir /glomosim_2_03/glomosim/main/ 8. make 9. an executable file "glomosim" should have been generated in /glomosim_2_03/glomosim/bin 10.test the glomosim in the same way as step 10 for installation guide on windows 1. open .tcshrc in your home directory of your unix account 2. add the following lines to this file setenv PCC_DIRECOTRY "parsecdir" setenv PATH "parsecdir"/bin:$PATH 3. save this file and relogin your account