The easy install procedure from source files is as follow. Note this example uses "bash" instead of "csh" or "tcsh".
$ ./configure $ make
Then, you become the root.
$ su - # make install
As a result, the OmniRPC software is installed on the default directory ("/usr/local/omrpc"). If you want to change the install directory, you can specify another install directory.
$ ./configure --prefix /path/to/install
After installation, add "/path/to/install/bin" to the PATH environmental value.
$ export PATH=$PATH:/path/to/install/bin
% setenv PATH "$PATH:/path/to/install/bin"
To compile OmniRPC with Globus Toolkit, the globus-makefile-header program,
which is attached to Globus Toolkit, is needed. And, OmniRPC requires
a library which supports pthread (such as gcc32dbgpthr,
gcc32pthr).
Input the following to build OmniRPC with the Globus Toolkit library.
$ ./configure --enable-globus
At this time, the Globus Toolkit path is set to the value of ${GLOBUS_LOCATION}, and the path to Grid Packaging Toolkit(GPT) is set to the value of ${GPT_LOCATION}.
If you want to specify a path to Globus Toolkit or to GPT, you should add some options.
$ ./configure --enable-globus --with-globusDir=/path/to/globus --with-gtpDir=/path/to/gpt
To test the installation, proceed as follows. Before testing, you should move "OmniRPC/test" directory. And, in each test, you should move the directories s which are written by number. To obtain more detailed information of the test program, especially if you encounter trouble with program testing, add the command option "--debug", if some trouble on program testing.
% makeTo test the stub program
% local-exec-test
Next, we should register the stub information. In registration, we have to create the directory (${HOME}/.omrpc_registry).
% mkdir ~/.omrpc_registry % make reg_stub
% makeTo test the OmniRpcExecRemote API, <stub_directory> is a stub directory on which we compile procedure 1. We must describe <stub_directory> as an absolute path.
% remote_exec_test1 <host> <stub_directory>In a similar manner, test OmniRpcExecCall API.
% remote_exec_test2 <host> <stub_directory>
~/.omrpc_registry/hosts.xml <OmniRpcConfig> <Host name="localhost"/> </OmniRpcConfig>Check OmniRpcCall API.
% rcp-call-test1Check OmniRpcCallByHandle API.
% rpc-call-test2 <host>Check OmniRpcModuleInit, OmniRpcCall API.
% rpc-call-test3Check OmniRpcAsync, OmniRpcWaitAll API.
% rpc-async-test1The install test is finished.