GMSEC Linux Installation Instructions
Here are the GMSEC installation instructions for installing on a linux machine.
1. Download GMSEC API and upzip the folder
2. Download JDK version 1.5 from http://java.sun.com/j2se/1.5.0/download.jsp website *
3. GMSEC supports only Redhat Enterprize Linux 3, in the FFTB we are using Fedora Core 3 which is not officially supported by GMSEC. If you have a different version than Redhat Linux 3 you need the gcc-3.2.3 library folder. You can download gcc-3.2.3 from either of the following sites: http://gcc.gnu.org http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-3.2.3/gcc-3.2.3.tar.bz2
4. If you have Linux version 3 skip to step 11
5. Unzip the gcc3.2.3 folder by typing: tar -xzvf gcc_3.2.3.tar.gz
6. Once unzipped cd into gcc-3.2.3 folder and type: ./configure --prefix=/opt/gcc-3.2.3 --enable-languages=c,c++
7. Type: make (this will build everything in the library)
8. For this next step you must be logged into your computer as root
9. Then type: make
10. Then type: install (this compiles the gcc library)
11. You now need to open you .bash profile to edit the necessary paths under your user name
12. Type: gedit .bashrc
13. Inside the .bash file type:
export PATH=$PATH:/''location''/java/j2sdk1.5_06/bin
export PATH=$PATH:/opt/gcc-3.2.3/bin
export PATH=$PATH:/''location''/GMSEC/release/GMSECAPI/bin/linux
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gcc-3.2.3/lib
export CLASSPATH=$CLASSPATH:/''locaton''/GMSEC/release/GMSECAPI/bin/linux
14. Save the .bash profile and type: source ~/.bashrc (this will refresh the command shell after editing the .bash profile)
15. Now check to make sure the gcc version is correctly set by typing: which gcc If you correctly set the path you should see /opt/gcc-3.2.3/bin/gcc
16. cd to GMSEC/release/GMSECAPI/examples/java
17. You need to change the name of one of the files in the directory because it failed to compile for some reason and so we are renaming it to avoid having to compile it. Type: mv gmreq_cb.java gmreq_cb_0
17. Type: javac *.java (this will compile all the java files in the directory)
18. Type: dir (You should see .class files for each .java file)
19. Open a new command shell and type: MBServer
20. Then open another shell cd to GMSEC/release/GMSECAPI/examples/java and type: java gmsub connectionType=gmsec_mb
21. Then open another shell cd to GMSEC/release/GMSECAPI/examples/java and type: java gmpub connectionType=gmsec_mb
22. If all of your paths are correctly set you should see the information pass from the gmpub command shell to the gmsub command shell
23. If you want to send messages from one computer to another you will need to include the Server location in step 21 (ie: java gmpub connectionType=gmsec_mb Server=Subscriber Computer IP Address)
[GmsecDocuments] - click here to return to GMSEC Documents page