How To Get MB-System
The source code for MB-System is available as a compressed tar
archive
by anonymous ftp to the Lamont-Doherty Earth Observatory of Columbia
University.
This archive file is about 1.2 megabytes in size and, depending on the
speed of your internet connection, may take a few minutes to transfer.
Click
here to ftp the current compressed MB-System tar archive.
Click here to
get point-and-click ftp access to all of the MB-System related
files
available from Lamont (these may include data examples and beta
distributions
of MB-System ).
If access through the above links fails, try running ftp from a
terminal shell.
The following commands represent a typical anonymous ftp session (note
that
your@email.address literally means to enter your email address).
% ftp ftp.ldeo.columbia.edu
Name: anonymous
Password: your@email.address
> cd pub/MB-System
> binary
> get MB-System.tar.gz
> quit
If anonymous ftp fails with an error message like: "Sorry no DNS entry"
after the email address is entered as the anonymous password, this
means that the internet address (also called IP address) of the
computer in use is
not known to the Lamont network to be legitimate. As a security
measure,
illegitimate IP addresses are not allowed to connect to the Lamont
network.
The Lamont ftp server attempts to look up or resolve IP addresses using
the primary Domain Name Service (DNS) servers associated with the
internet as a whole. So, this problem arises when computers use IP
addresses are not properly registered with the global DNS servers. This
situation sometimes
exists for computers connecting through improperly configured firewalls
or Network Address Translation (NAT) devices. Users facing this issue
can often
succeed by running ftp from a "better connected" server in their
organization. Otherwise, they will need to contact their internet
service
provider or their network/computing support staff.
Other Required
and
Suggested Software and Data
MB-System requires a number of other software packages and databases
to be fully functional. These are:
- GMT version 4.1.4 or later: MB-System makes use of the
Generic
Mapping Tools (GMT) libraries and programs for much of its graphics.
GMT
also includes a detailed global coastline database. GMT has been
developed
by Professor Paul Wessel of SOEST (School of Ocean and Earth Science
and
Technology at the Univeristy of Hawaii) and Dr. Walter H. F. Smith of
NOAA.
The GMT source code is available from the GMT
web page. Use of GMT version 4.1.4 or later is required.
- NetCDF version 3.5.1 or later: Both GMT and MB-System
require
the NCAR
netCDF
library.
- Perl version 5.0 or later: Perl is a fast, well
documented
scripting language used widely in the Unix world. MB-System contains a
number of perl scripts used both for installation and to ease common
tasks. Most of the current Unix operating systems include perl. If
you need to obtain the perl source code, first check with your local
system administrator - you will probably find perl already available
locally. The perl source code can be obtained from the
GNU
software archives of the Free
Software Foundation.
- Motif: The interactive graphical utilities in MB-System (e.g.
data editors) use the Motif 2 widget set, and Motif-compatible libraries
or equivalent are required for these utilities to be built and to run.
Most current Unix/Linux operating systems include the required Motif
libraries. If you do not have these libraries, there are options.
The libraries can be purchased from one of several vendors.
The Motif 2 source is now being developed as (sort of) open source,
and compiled versions are now available through
Motifzone for most Unix platforms.
An alternative open source Motif-compatible
distribution called LessTif has
been available for some time, and works well with MB-System.
- Levitus Database: The MB-System program mblevitus depends
on
a 16 MByte data file that is not included in the MB-System tarfile.
Click
here
to ftp this file. Be sure to uncompress the file and to set the
"LEVITUS"
flag in the install_makefiles appropriately, as described below in the
installation section.
MB-System produces Postscript based graphics. Most current Unix
operating
systems provide a program which serves as a screen-based Postscript
viewer.
If you do not have a Postscript viewer, one option is to obtain one of
several Ghostscript-based
packages from the Free Software Foundation.
- gv: Open source screen Postscript viewer. This
package is a bit more sophisticated than ghostview and can handle
poster-sized plots. The
source code can be obtained from the GNU
software archives of the Free
Software
Foundation.
Users of MacOs X should note that many of the above packages can be
painlessly installed using the fink package available from the
Fink Project.
How to Install MB-System
The MB-System source code is extracted by first uncompressing the
tar
file and then running tar:
% gunzip MB-System.tar.gz
% tar xvf MB-System.tar
This will create a directory called (for the 5.0.1 distribution):
mbsystem-5.0.1
In order to
configure your installation, you must edit the shellscript
mbsystem-5.0.1/install_makefiles.
This is perl script will read template makefiles in the MB-System
source
directories and create makefiles with the correct attributes. This
enables
users to install MB-System without having to edit the makefiles.
Instead
of editing the makefiles directly, the installer should edit this
script
so that the locations of important libraries and include files are
accurate
and so that the compile and link flags are correct.
The important parameters to be set in install_makefiles are:
- MBSYSTEM_HOME - Absolute path to the directory containing this
file.
- OS Operating system - (e.g. SUN, IRIX, HPUX, LINUX, LYNX).
- BYTESWAPPED - If set to "YES" will enable byte swapping of
input and output binary data. Otherwise byte swapping is disabled. Byte
swapping needs to be enabled when installing on "little endian"
machines such as PCs or VAXs.
- CC - C compiler to be used (optional).
- GRAPHICAL - If set to "YES" will enable the installation
of the Motif based graphical utilities mbedit, mbnavedit, and
mbvelocitytool.
If Motif is not available but the nongraphical utilities are desired
then
disable with "NO" (optional, default is "YES").
- MOTIFINCDIR - Location of Motif include files.
- MOTIFLIBS - X and Motif libraries required for graphical tools.
- GMTVERSION - GMT version used. GMT version 3.2 is used by
default;
this parameter must be set to "3.0" or "3.1" to successfully
link with libraries from either of those versions.
- GMTLIBDIR - Location of GMT libraries libgmt.a and libpsl.a
- GMTINCDIR - Location of GMT include files gmt.h, grd.h, and
pslib.h
- NETCDFDIR - Location of NetCDF library libnetcdf.a
- LEVITUS - Path for Levitus data file annual.
- CFLAGS - Compile flags for C source files.
- LFLAGS - Load flags for all object files.
Examples of appropriate values for several different installations
(e.g.
Sun, SGI, PC) are included in the comments in install_makefiles. To
execute
install_makefiles, do the following:
% cd mbsystem-5.0.1
% install_makefiles
Because install_makefiles is a perl script, the executable perl must
be available in the installer's path. Once install_makefiles has been
correctly
configured and run, give the command "make all" to generate the
executable programs:
% make all
The make command will descend recursively down through the directory
structure, compiling source files, linking object files, and copying
executables
and manual pages to the appropriate directories. The executables will
be
placed in mbsystem-5.0.1/bin, the libraries in mbsystem-5.0.1/lib, and
the manual pages
in mbsystem-5.0.1/man/man1.
Naturally, in order for users to use the MB-System utilities, the
directory
containing the executables must be included in their path (usually this
is done by editing the .cshrc file in the user's home directory). The
executable
perl must also be available in the user's path for most of the macros
to
work.
Most users will also wish to specify which program they generally
use
to view Postscript plots on their screen. This parameter can be set
either
with the mbdefaults program or using the PS_VIEWER environment variable
- the former is recommended (see the mbdefaults manual page for
details).
On Sun workstations pageview is a popular Postscript viewer; on Silicon
Graphics machines xpsview is commonly used. Popular open source
alternatives
to these platform specific programs include ghostview and gv.
Last Updated: $Date: 2006/11/26 09:38:13 $ $Revision: 5.16 $
Back
to MB-System Home Page...