[ LSD on a MAc ]
[ LSD on a MAc ]
With Mac OS X 10.5, users have two options to run LSD:
Either compile LSD as a native application or compile LSD as a UNIX application. The first option is recommended to the users with little experience with UNIX systems. To use and install LSD as a UNIX application, follow the instructions for MAC OS X 10.6
INSTALLING LSD AS A NATIVE APPLICATION:
Prior to the installation of LSD make sure you gather the following elements:
(1)A Mac running Mac OS X 10.5 (either PPC or Intel Processor)
(2)Apple’s XCode : To be found on Mac OS X installation CD/DVD
(3)The ActiveState distribution of Tcl/Tk Libraries : click here
(4)The Latest distribution of LSD : click here
install XCode :
(a)Insert the intallation CD/DVD.
(b)Launch the installation of the package “XCode Tools.mpkg” in the “XCode Tool” folder
install ActiveState’s tcl/tk :
(a)Open the downloaded disk image.
(b)Launch the installation of the package.
install LSD :
(a)Unpack the LSD distribution on your preferred location. (NB: Prefer your own user directory)
(b)Open a Terminal and reach the LSD folder.
(c)Compile LSD using the Mac OS X makefile file: type: make -f Makefile-OSX
(d)After the compilation launch the LMM with the command ./lmm or click the LMM icon from the finder.
Tutorial for :
1. Mac OS X 10.6: A step-by-step tutorial to install and run LSD with X11.
2.Mac OS X 10.5: Completes the information available in the Read-me file to make them accessible to common Mac users.
3.Mac OS X 10.4 / 10.3: A step-by-step tutorial for the users with little experience with Unix systems, to install and run LSD with X11.
4.Mac OS X 10.2 /10.1: Please follow the LINK
5.Additional informations can be found on the LSD forum
2. LsD with Mac Os x 10.5 (Leopard)
Requirements :
Prior to the installation of LSD make sure you gather the following elements:
(1)A Mac running Mac OS X 10.4 or 10.3 (either PPC or Intel Processor)
(2)Apple’s X11 : To be found on Mac OS X Installation CD/DVD
(3)Apple’s XCode : To be found on Mac OS X installation CD/DVD
(4)Tcl/Tk Libraries : click here (Note : You need to download both tcl and tk files)
(5)Unix distribution of LSD : click here
(6)Mac OS intallation script : Makefile-OSX.zip

(a)Insert the installation CD/DVD.
(b)Launch the installation of the package “Optional Install”.
(c)Within the “Application” menu, select “X11” and click “up-date”.

(a)Insert the intallation CD/DVD.
(b)Launch the installation of the package “XCode Tools.mpkg” in the “XCode Tool” folder
(c)Make sure the “X11 SDK” option is selected. Check it using “Personalised Installation”.
once X11 and Xcode are installed, restart your computer.
install the tcl/TK libraries :

(b)Uncompress the files.
(c)Open X11
(d)With the xterm terminal, get to the unix folder of the Tcl folder.
(e)Configure the installer of the Tcl Libraries: type ./configure


(h)You are now asked your administrator password)
install the tk libraries :
(a)Use the same procedure to install the Tk Libraries.
(b)Type : cd /Desktop/tk8.4.1unix/
(c)Type : ./configue
(d)Type : make
(e)Type : sudo make install

(a)Unzip the LSD file and move the folder to your home directory.
(b)Unzip Make-file-OSX.zip
(c)Drag the Makefile-OSX file into the Lsd5.6 folder
(d)Open X11
(e)Using xterm, go into the LSD folder : type cd Lsd5.6
(f)Compile LSD using the installation script : type make -f Makefile-OSX
(g)Once the process ended type ./lmm If LMM launches, the installation went well

(a)Select the lmm file from the Lsd5.6 folder and press “ i” to get the information menu
(b)Modify the Open with menu choosing X11 from the Applications/Utilities folder
(c)From now on you can simply launch LSD by double clicking the lmm file
(d)Launch LSD
(e)Choose a model from the list
(f)Select System Compilation Option from the Model menu
(g)Set the options as follows :
3. LSD with Mac OS X 10.4 (tiger) & 10.3 (panther)
Mac OS X 10.6 is a 64 bits system. Unfortunately, the tcl/tk libraries proposed by ActiveState for Mac OS X stick with the 32 bits architecture. We then need to use the 64 bits Unix libraries and run LSD as a X11 application.
INSTALLING LSD AS A UNIX APPLICATION:
Prior to the installation of LSD make sure you gather the following elements:
(1)A Mac running Mac OS X 10.6
(2)Apple’s X11 : To be found on Mac OS X Installation CD/DVD
(3)Apple’s XCode : To be found on Mac OS X installation CD/DVD
(4)Tcl/Tk Libraries : click here (Note : You need to download both tcl and tk files)
(5)Unix distribution of LSD : click here
(6)Mac OS installation script : Makefile-OSX-SnowLeopard.zip
(7)Gnuplot : http://www.gnuplot.info
Install X11 :
(a)Insert the installation CD/DVD.
(b)In the “Optional Install” folder, launch the installation of the package “Optional Installs.mpkg”.
(c)Within the “Application” menu, select “X11” and click “up-date”.
install XCode :
(a)Insert the installation CD/DVD.
(b)In the “Optional Install” folder, launch the installation of the package “Xcode.mpkg”.
install tcl/tk Libraries :
(a)Make sure the Tcl and Tk libraries are located on your Desktop.
(b)Uncompress the files.
(c)Open X11
(d)With the xterm terminal, get to the unix folder of the Tcl folder.
(e)Configure the installer of the Tcl Libraries with the following options: type ./configure --disable-share
(f)Compile the Tcl Libraries: type make
(g)Install the Libraries. You need to be logged as administrator: type sudo make install
(h)You are now asked your administrator password)
(i)With the xterm terminal, get to the unix folder of the Tk folder:
(j)Configure the installer of the Tk Libraries with the options: type ./configure --disable-share --with-tcl=/usr/local/lib
(k)Compile the Tcl Libraries: type make
(l)Install the Libraries. You need to be logged as administrator: type sudo make install
(m)You are now asked your administrator password)
install LSD :
(a)Unpack the LSD distribution on your preferred location. (NB: Prefer your own user directory)
(b)Open a Terminal and reach the LSD folder.
(c)Compile LSD using the Mac OS X makefile file: type: make -f Makefile-OSX
(d)After the compilation launch the LMM with the command ./lmm or click the LMM icon from the finder.
Setting UP LMM :
(a)Launch LSD by double-click on the lmm file.
(b)Choose a model from the list
(c)Select System Compilation Option from the Model menu
(d)Click on “Default UNIX” and modify the options accordingly:
LSDROOT=/Users/Your User Name/LSD (Do not modify this)
TCL_VERSION=8.5
TK_VERSION=8.5
DUMMY=
PATH_TCL_LIB=.
PATH_TK_LIB=.
PATH_TK_HEADER=/usr/include/
PATH_TCL_HEADER=/usr/include
PATH_LIB=/usr/local/lib/
INCLUDE_LIB=-I/usr/local/include/ -I/usr/X11R6/include/
CC=g++
SRC=src
EXTRA_PAR=
SSWITCH_CC=-O2
EXT=
NB: When running models compiled on previous versions of Mac OS X, you might encounter an error message warning you that you are using the wrong architecture. You just need to re-open the model, save it, and recompile, to make sure an updated lsd_gnu file has been created.
install gnuplot :
(a)Unpack the gnuplot files.
(b)Open a Terminal and reach the gnuplot folder (NB: the installation fails if you use xterm).
(c)Configure the installer with the following options: type ./configure --with-readline=bsd --x-include=/usr/include/X11 --x-libraries=/usr/X11/lib
(d)Compile the gnuplot: type make
(e)Install gnuplot. You need to be logged as administrator: type sudo make install
(f)You are now asked your administrator password)
1. LsD with Mac Os x 10.6 (Snow Leopard)
Forewords
LSD stands for Laboratory for Simulation Development. No proper distribution of LSD is available for Mac. Depending on the version of Mac OS X, various installation and utilisation options are available. This page aims to report the various step-by-step installation procedures for each of these cases: