Note: We recommend you to use *pthr flavor. Some features don't work with non-*pthr flavor.
Download the Ninf-G package from the download Web page
( http://ninf.apgrid.org/packages/welcome.html).It is recommended to create a "ninf" user on the installation system.
It is also possible, however, to install Ninf-G in a location where the user has read and write privileges under general user privileges (that user's home directory, for example).
|
Move the files of the downloaded package to the directory in which the source files are to be expanded and then use the following command to expand the Ninf-G package files. (The 2.x.x in the command is the version number.)
% gunzip -c ng-2.x.x.tgz | tar xvf -
Executing the above command will create a "ng-2.x.x" directory and expand the Ninf-G source files in that directory.
Note: Ninf-G package is created by GNU tar, so it requires you to use GNU tar to expand package.
(move to the directory in which the source files are expanded)
% cd ng-2.x.x
% ./configure
Executing the above command, the host software environment is examined, and the execution environment for the tools used by compile is prepared (create Makefile, etc.).
Parameters such as for specifying a particular Ninf-G installation directory can be included as shown below.
% ./configure --prefix=/usr/local/ng --with-globusFlavor=gcc32dbgpthr
In this example, the following parameters are specified.
Other options are described in section 2.4. The options that can be used with the configure command can be viewed with the following command.
% ./configure --help
Execute the following command in the directory for expanding the source files.
% make
Executing make generates the libraries needed by Ninf-G as well as an executable binary file.
In Ninf-G, the Makefile is created by using the GNU autoconf configure script. If there is code in the Makefile written with the POSIX make program that cannot be executed, try using the GNU make program.
To configure either the server environment only or the client environment only, run the following make.
The following command can be used to configure the server environment only.
% make server
The following command can be used to configure the client environment only.
% make client
With owner privileges for the directory in which the files are to be installed (specified by the --prefix at the time of configure; the default is "/usr/local"), execute the following command from the directory in which the source files were expanded.
If you want to specify a number of CPUs for MPI for LocalLDIF(*.ngdef), you have to modify < package_dir > /etc/server.conf and change variable of MPIRUN_NO_OF_CPUS.
% make install
Executing the above command copies the libraries and executable binaries created by executing the make command and the commands needed to run Ninf-G to the specified directory.
To install either the server environment only or the client environment only, execute the make command as described below.
It is possible to install only the server environment by executing the following command.
% make install_server
It is possible to install only the client environment by executing the following command.
% make install_client
(The following are executed only on the server machine
(where Ninf-G Executable is run).
If MDS is not being used, the following tasks are not necessary.
In that case, owner user privileges for $GLOBUS_LOCATION are
also not needed.)
This is required only on gatekeeper nodes.
Execute the following command with owner user privileges
for $GLOBUS_LOCATION ("globus", for example).
If you want to specify a number of CPUs for MPI, you have to edit
server_install and change variable of MPIRUN_NO_OF_CPUS.
% cd ng-2.x.x/utility/script
% ./server_install
This is required only on gatekeeper nodes.
"include ${GLOBUS_LOCATION}/etc/grid-info-resource.schema"
Below that line, add the following line.
"include ${GLOBUS_LOCATION}/etc/grpc.schema"
% ${GLOBUS_LOCATION}/sbin/globus-mds stop
% ${GLOBUS_LOCATION}/sbin/globus-mds start
The available options can be displayed with the following command.
% ./configure --help
The options than can be used with the configure script are described below.
The general configure options have no effect on the Ninf-G functions.
option | description |
---|---|
--cache-file=FILE | cache test results in FILE |
--help | print help message |
--no-create | do not create output files |
--quiet, --silent | do not print `checking...' messages |
--version | print the version of autoconf that created configure |
Specify the location for installing Ninf-G.
Specify the installation path for the targets listed below.
The default values are shown.
option | default | description |
---|---|---|
--prefix=PREFIX | /usr/local | install architecture-independent files in PREFIX |
--exec-prefix=EPREFIX | same as prefix | install architecture-dependent files in EPREFIX |
--bindir=DIR | EPREFIX/bin | user executables in DIR |
--sbindir=DIR | EPREFIX/sbin | system admin executables in DIR |
--libexecdir=DIR | EPREFIX/libexec | program executables in DIR |
--datadir=DIR | EPREFIX/share | read-only architecture-independent data in DIR |
--sysconfdir=DIR | EPREFIX/etc | read-only single-machine data in DIR |
--sharedstatedir=DIR | EPREFIX/com | modifiable architecture-independent data in DIR |
--localstate=DIR | EPREFIX/var | modifiable single-machine data in DIR |
--lib-dir=DIR | EPREFIX/lib | object code libraries in DIR |
--includedir=DIR | EPREFIX/include | C header files in DIR |
--oldincludedir=DIR | /usr/include | C header files for non-gcc in DIR |
--infodir=DIR | EPREFIX/info | info documentation in DIR |
--mandir=DIR | EPREFIX/man | man documentation in DIR |
--srcdir | configure dir or ... | find the sources in DIR |
--program-prefix=PREFIX | prepend PREFIX to installed program names | |
--program-suffix=SUFFIX | append SUFFIX to installed program names | |
--program-transform-name=PROGRAM | run sed PROGRAM on installed program names |
option | default | description |
---|---|---|
--disable-FEATURE | do not include FEATURE (same as --enable-FEATURE=no) | |
--enable-FEATURE[=ARG] | ARG=yes | include FEATURE |
--with-PACKAGE[=ARG] | ARG=yes | use PACKAGE |
--without-PACKAGE | do not use PACKAGE (same as --with-PACKAGE=no) | |
--with-globusFlavor=FLAVOR | gcc32dbg | specify Globus runtime library flavor |
--with-mds | yes | include functions for getting information of servers and functions from MDS |
--with-zlib | yes if available | use zlib for compression |
--with-largefile | yes | support largefile |
--with-cc=CC | cc | specify C compiler to use |
--with-opt=OPT | specify C compiler options for optimization | |
--with-debug=OPT | specify C compiler options for debuggable executable file creation | |
--with-cppflag=OPT | specify C preprocessor options | |
--enable-gcc | allow use of gcc if available | |
--enable-debug | no | enable generate executable with debug symbol |