Building and Installing

GridFTP is built and installed as part of a default GT 4.1.3 installation. For basic installation instructions, see Installing GT 4.1.3. No extra installation steps are required for this component.

1. Building only GridFTP and Utilities

If you wish to install GridFTP without installing the rest of the Globus Toolkit, refer to the Installing GT 4.1.3 section of the System Administrator's Guide. Perform steps 1-3, as written (Note that you do not need Ant, a JDK, or a JDBC database to build only GridFTP). However, instead of running "make" as directed in step 4,

Run:

globus$ make gridftp

If you wish to have a log file of the build, use tee:

globus$ make gridftp 2>&1 | tee build.log

The syntax above assumes a Bourne shell. If you are using another shell, redirect stderr to stdout and then pipe it to tee.

2. Building only the GridFTP server

If you wish to install only the GridFTP server, refer to the the Installing GT 4.1.3 section of the System Administrator's Guide. Follow steps 1-3 as written. However, instead of running "make" as directed in step 4,

Run:

globus$ make gpt globus_gridftp_server

If you wish to have a log file of the build, use tee:

globus$ make gpt globus_gridftp_server 2>&1 | tee build.log

The syntax above assumes a Bourne shell. If you are using another shell, redirect stderr to stdout and then pipe it to tee.

3. Building only the GridFTP client

If you wish to install only the GridFTP client, refer to the the Installing GT 4.1.3 section of the System Administrator's Guide. Follow steps 1-3 as written. However, instead of running "make" as directed in step 4,

Run:

globus$ make globus-data-management-client

If you wish to have a log file of the build, use tee:

globus$ make globus-data-management-client 2>&1 | tee build.log

The syntax above assumes a Bourne shell. If you are using another shell, redirect stderr to stdout and then pipe it to tee.

4. Building only the GridFTP SDK

If you wish to install only the GridFTP SDK, refer to the the Installing GT 4.1.3 section of the System Administrator's Guide. Follow steps 1-3 as written. However, instead of running "make" as directed in step 4,

Run:

globus$ make globus-data-management-sdk

If you wish to have a log file of the build, use tee:

globus$ make globus-data-management-sdk 2>&1 | tee build.log

The syntax above assumes a Bourne shell. If you are using another shell, redirect stderr to stdout and then pipe it to tee.

5. Building a combination of GridFTP elements

If you wish to build a combination of GridFTP elements, refer to the the Installing GT 4.1.3 section of the System Administrator's Guide. Follow steps 1-3 as written. However, instead of running "make" as directed in step 4,

Run:

globus$ make [any combination of the above commands, each separated by a space]

For example, if you just want to install the GridFTP server and client, the command would be:

globus$ make gpt globus_gridftp_server globus-data-management-client

If you wish to have a log file of the build, use tee:

globus$ make [any combination of the above commands, each separated by a space] 2>&1 | tee build.log

The syntax above assumes a Bourne shell. If you are using another shell, redirect stderr to stdout and then pipe it to tee.

6. Building and Installing a static GridFTP server

If you wish to build and install a statically linked set of GridFTP binaries, refer to the Installing GT 4.1.3 section of the System Administrator's Guide. Follow steps 1-2 as written. In step 3, however, you should

Run:

globus$ export GLOBUS_LOCATION=/usr/local/globus-4.0.0
          globus$ ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="--static" 
globus$ make gpt globus_gridftp_server

If you wish to have a log file of the build, use tee:

globus$ make gpt globus_gridftp_server 2>&1 | tee build.log

The syntax above assumes a Bourne shell. If you are using another shell, redirect stderr to stdout and then pipe it to tee.

7. Building threaded flavors of GridFTP

Threaded flavors of GridFTP are required for certain capabilities, such as using the UDT protocol or an HPSS driver. To build a threaded flavor of the client, server, or SDK, you need to:

  • use a source installer (not a binary installer).

  • add -thr to the make targets.

[Note]Note

-thr is not relevant for the gpt target.

For example, to build only the threaded GridFTP server, run:

 globus$ make gpt globus_gridftp_server-thr

Both threaded and non-threaded flavors can be built at the same time. To do this, include both of the targets in the make command.

For example, to build the GridFTP server in both threaded and non-threaded flavors, run:

globus$ make gpt globus_gridftp_server globus_gridftp_server-thr

The flavor specified at the end would be the default. So, in the case above, the default GridFTP server is threaded.

Target gridftp, builds both the threaded and non-threaded flavors of globus-data-management-sdk, but only the non-threaded flavor of the server.

In order to build the threaded flavor of the server as part of the package, run:

globus$ make gridftp globus_gridftp_server-thr