CADP Installation on Legacy MacOS
          CADP (CONSTRUCTION AND ANALYSIS OF DISTRIBUTED PROCESSES)
                            LEGACY MACOS INSTALLATION


This document is intended to every person planning to use CADP on a computer running Apple macOS. If you do not plan to use CADP in an Apple macOS environment, you can avoid reading this document.


SECTION 1. SCOPE

This page contains legacy information for installing CADP on obsolete versions of macOS:

For more details about supported architectures, please refer to

       http://cadp.inria.fr/status.html

To install CADP on macOS, it is not necessary to be an administrator: a normal user can install CADP in his/her home directory. However, before installing CADP, the preliminary steps described in this document must be performed from an administrator account, in particular, because one will need to invoke the "sudo" command.


SECTION 2. INSTALLING X11 FOR MACOS

This depends on your version of macOS:

Normally, X11 is installed by default. If not, you can find X11 in the install DVD (e.g., in Mac OS X 10.5, the "X11user.pkg" package is located in directory "System/Installation/Packages").

Apply the instructions in Section 2 of the non-legacy page.


SECTION 3. INSTALLING DEVELOPMENT TOOLS FOR MACOS

For using CADP, you will need a C compiler, as well as companion tools, such as "make".

If you already have these tools installed on your machine (i.e., you know that /usr/bin/gcc, /usr/bin/make, etc. work normally), we recommend that you keep them unchanged and skip the remainder of this section.

Otherwise, the standard way of getting these tools is to install Apple's Xcode software. The installation of Xcode depends on your version of macOS:

On the installation CD for Snow Leopard, there is a directory named "Optional Installs". Open this directory and click on the Xcode icon.

During the installation you should select the "UNIX Dev Support" option so that development tools install themselves in /usr as usual. If the "UNIX Dev Support" option is absent (which indicates an old version of Xcode), you should modify the location where Xcode will be installed by changing this from "/Developer" to "/".

Apply the instructions in Section 3 of the non-legacy page.


SECTION 4. INSTALLING A POSTSCRIPT VIEWER FOR MACOS

The BCG_DRAW tool requires a PostScript interpreter and a PostScript viewer in order to display the BCG graphs. The installation of such an interpreter and viewer depends on your version of macOS:

Apply the instructions in Section 4 of the non-legacy page.


SECTION 5. INSTALLING GNUPLOT FOR MACOS

The Gnuplot plotting utility is required to run the full demo examples 30, 31 and 39 (it is used to visualize measurements produced by the CADP tools for performance evaluation).

Apply the instructions in Section 5 of the non-legacy page.


SECTION 6. INSTALLING GNUTAR ON MACOS

There are different versions of the Unix "tar" command, especially the BSD tar and the GNU tar, the latter being used by CADP. For long, both versions have been present on macOS. However, the GNU tar has been removed from Mac OS X 10.9 "Mavericks".

Apply the instructions in Section 6 of the non-legacy page.


SECTION 7. INSTALLING WGET ON MACOS

Install the "wget" command:

          sudo port install wget


SECTION 8. ASSIGNING A STATIC HOSTNAME TO YOUR MACHINE

By default, macOS does not give your machine a static hostname, so that the name of the machine is dynamically assigned by the router and may change depending on the network to which the machine is connected. When the machine is disconnected from the network, its name changes to get a ".local" extension.

Setting a static hostname in macOS does not alter its behaviour. All other operating systems (Solaris, Linux, Windows, etc.) are using static hostnames by default, and this is required for using CADP seamlessly.

Apply the instructions in Section 8 of the non-legacy page.


SECTION 9. CHECK YOUR INSTALLATION

Apply the instructions in Section 9 of the non-legacy page.


ANNEX A. INSTALLING X11 FOR MAC OS X 10.4 AND 10.5

This depends on your version of macOS:

Before installing CADP on your macOS system, you have to install a X11 server.

If you already have an installed X11 server (like XDarwin or X11 for Max OS X), you can skip reading the present section of this file.

X11 for macOS is an implementation of the X Window System that makes it possible to run X11-based applications under macOS. To install X11 for macOS on your system, follow the instructions below:

You can install X11 for macOS directly from the installation DVD called "Mac OS X Install Disc 1" included in your system distribution.

Insert the "Mac OS X Install Disc 1" DVD in your DVD-ROM drive. Go to the /System/Installation/Packages directory and install the "X11User.pkg" package.

Normally, X11 is installed by default. If not, you can find X11 in the install DVD (e.g., in Mac OS X 10.5, the "X11user.pkg" package is located in directory "System/Installation/Packages").


ANNEX B. INSTALLING DEVELOPMENT TOOLS FOR MAC OS X 10.4 AND 10.5

You can download Xcode from

       http://developer.apple.com/xcode/

You have to download version 3.1.4 of Xcode. Version 3.2 and later can not be installed on these versions of macOS.

If you do not have an Apple ID, you can create a free account from

       http://developer.apple.com/programs/register/


ANNEX C. INSTALLING A POSTSCRIPT VIEWER FOR MAC OS X 10.4 AND 10.5

We recommend using the Ghostscript interpreter and Ghostview viewer.

If you already have a working version of Ghostscript/Ghostview installed on your machine, we recommend that you keep it unchanged.

Otherwise you have to install the macOS version of the Ghostscript and Ghostview tools. Please note that Ghostview requires X11 to display PostScript files. Thus it is mandatory to have X11 properly installed (see above the instructions about installing X11 for macOS).

To install Ghostscript/Ghostview, you have two options: using Fink or using Macports.

Once Fink is installed, you can use it to get Ghostscript/Ghostscript:

          sudo fink install ghostscript
          sudo fink install gv

These commands install ghostscript and gv in the directory /sw/bin. You must add this directory to your $PATH variable; this can be done by invoking specific script-shells provided by Fink, namely:

          /sw/bin/init.sh      # for sh, bash, etc.
          /sw/bin/init.csh     # for csh, tcsh, etc.

Then, modify your $PATH variable by adding the two directories:

          /opt/local/bin and /opt/local/sbin

and your $MANPATH variable by adding the directory:

          /opt/local/share/man

Finally, you can install Ghostscript/Ghostscript as follows:

          sudo port install ghostscript
          sudo port install gv


ANNEX D. INSTALLING GNUPLOT FOR MAC OS X 10.4 AND 10.5

Once Fink is installed (see above how to download and install Fink), you can use it to get Gnuplot:

          sudo fink install gnuplot

This command installs gnuplot in the directory /sw/bin. You must add this directory to your $PATH variable.

Note: As of March 2010, we do recommend the use of Fink for MacOS X versions greater than 10.5, because the binary packages for Fink itself and other packages such as Ghostscript are not available, so that extensive recompilations must take place, in the course of which the users will be prompted with many questions interactively.

Once Macports is installed (see above how to download and install Macports), you can use it to get Gnuplot:

          sudo port install gnuplot


ANNEX E. ASSIGNING A STATIC HOSTNAME ON MAC OS X 10.4 AND 10.5

Consult the contents of the file /etc/hostconfig and search for a line starting with "HOSTNAME=".

If there is a line of the form "HOSTNAME=xxx", where xxx denotes an alphanumeric string possibly containing dots (for instance, "jupiter" or "jupiter.univ.edu"), then your machine has already been assigned the static hostname xxx. You can skip to the next section of this document.

If there is a line of the form "HOSTNAME=-AUTOMATIC-", then edit (with super-user privilege) the file /etc/hostconfig, and replace this line with "HOSTNAME=xxx", where xxx denotes the hostname that you want to give to your machine.

If there is no such line starting with "HOSTNAME=", then edit (with super-user privilege) the file /etc/hostconfig, and insert a new line of the form "HOSTNAME=xxx", where xxx denotes the hostname that you want to give to your machine.

After modifying /etc/hostconfig, renew the DHCP lease by executing the following command:

          sudo ipconfig set en0 DHCP

Alternately, you can reboot the machine.


Written by Hubert Garavel. Last updated on 2018/07/20 14:28:09