The C/C++ compiler must be configured for command-line compilation. To test this, open a console window and type this command:
> cl /?
If the command shows help for the MSVC compiler, it has been configured correctly. Otherwise follow these instructions:
Note that Visual Studio 2005 (including the Express Edition) is not currently supported.
The OpenAMQ libraries and executables are installed into the directory defined by the environment variable IBASE (the common base for all iMatix products).
Define IBASE using a command following this example:
> set IBASE=c:\ibase
You can add this command to your server environment so that you do not need to retype it in each shell window.
To correctly access the OpenAMQ executables, you must place the IBASE\bin directory on your path. Do this using this command:
> set PATH=%IBASE%\bin;%PATH%
You can add this command to your server environment so that you do not need to retype it in each shell window.
From the same OpenAMQ source kit you can build many variations of the software:
The default build is mt,release. To choose a different build, set the BOOM_MODEL environment variable following this example:
> set BOOM_MODEL=mt,debug
You can add this command to your server environment so that you do not need to retype it in each shell window.
After downloading the OpenAMQ source kit, move it to a working directory with sufficient disk space and then unpack the source code using these commands:
> unzip \path\to\OpenAMQ-1.2c4.zip > cd \path\to\OpenAMQ-1.2c4
After setting IBASE, your PATH, and BOOM_MODEL, build the software using this command, in the OpenAMQ-1.2c4 directory:
> build
After a successful build, start the server as follows:
> amq_server OpenAMQ/1.2c4 Production release Copyright (c) 2007 iMatix Corporation This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 2006-05-09 10:12:41: W: security warning - console login uses default password 2006-05-09 10:12:42: I: server ready for incoming AMQ connections
And in a second window, start the test client as follows:
> amq_client
The client will create a temporary queue on the server, send a single message to its own queue, and read the message back off its queue. To stop the server, press Ctrl-C.
More information: Running Your Server