Intel Mac

Installing and running BoA on an Intel Mac computer is possible. However, various packages have to be installed in a specific way, compared to the installation on Linux systems. A complete installation was successful on an Intel Mac laptop (MacBook Pro 2 GHz) running OS X 10.4.6. Note: you will need a root password for some steps in the installation. Usually, the first user created had admin rights, and his password is ok when using sudo.

Prerequisites

The version of the OS used for this test installation was 10.4.6. The development tools (XCode) were also installed. This includes:

In addition, the Debian-like toolkit fink (including apt-get and other commands) was installed (see the Fink project page). Other ways exist to install the same libraries, but apt-get is one of the easiest ways to do it - as long as the programs/libraries have been compiled for Intel Mac.

Packages installed with apt-get

The following programs/libraries were installed using  sudo apt-get install :

Name

Version

Install destination

swig

1.3.20

/sw/bin/swig

numeric-py23

23.1

/sw/lib/python2.3/site-packages/Numeric/

readline

/sw/lib/python2.3/lib-dynload/*readline.so

libpng3

Make sure to add numeric to your PYTHONPATH, e.g. in bash with: export PYTHONPATH=/sw/lib/python2.3/site-packages/Numeric/

Programs installed from the Web

No fortran compiler is provided by default with the development tools. Installation was successful when using gfortran (installed in /usr/local/bin/gfortran) version i386-apple-darwin8.7.1 gcc-4.2-20060805. You can get it from HPC.

Some programs (e.g. the Makefile of pgplot) explicitely look for g77 and ifort. Therefore it is necessary to do:

 /usr/local/bin> sudo ln -s gfortran g77  and  /usr/local/bin> sudo ln -s gfortran ifort 

Packages installed using boa-install/install.sh

The following packages have been successfully installed running the install.sh script provided in boa-install

The latest version of BoA was also installed from CVS, as proposed by the install.sh script.

Workarounds for non-working packages

Installing the other packages required specific steps, detailed below. It is useful to define your $BOA_HOME variable.

numarray

pgplot5.2

make: g77: Command not found

unless you have linked g77 to gfortran (see above)

make: syntax errors in file /.../tmp/pgplot/drivers/gidriv.f

To solve this, modify drivers.list: keep only NULL, PNG, TPNG, PSDRIV and XWDRIV. In the pgplot installation directory (openboa/tmp/pgplot), run ./makemake . linux g77_gcc_aout (the _aout is important: this prevents make from building shared libraries, which are not supported on Darwin), then make. You will get this error:

- /usr/bin/ld: Undefined symbols: _ _ _dso_handle collect2: ld returned 1 exit status make: *** [grfont.dat] Error 1

... but the file libpgplot.a is there, which means that you can use pgplot. The same error appears when doing make cpg, but the file libcpgplot.a is there.

PGPLOT needs to have the png include files in its own directory, so add the following symbolic links in the openboa/tmp/pgplot/ directory:

ln -s /usr/include/zlib.h .

ln -s /usr/include/zconf.h .

ln -s /sw/include/png.h .

ln -s /sw/include/pngconf.h .

ppgplot1.3

TO DO: clean the text below!

/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/

LD_LIBRARY_PATH. Then: /usr/bin/ld: can't locate file for: -lg2c collect2: ld returned 1 exit status

libraries.append("g2c")

library_dirs.append("/sw/lib")

PGPLOT /xw: Couldn't find program "pgxwin_server" in the directory named PGPLOT /xw: in your PGPLOT_DIR environment variable, or in any directory PGPLOT /xw: listed in your PATH environment variable.

ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-590.36.dmg Then in /usr/local/pgplot (or $BOA_HOME/lib/pgplot/ if you installed pgplot as part of BoA): --> sudo make grfont.dat ...OK

--> sudo make pgxwin_server ...OK

pySLALIB-0.4

The slalib module should compile fine with the install script. For the pySLALIB, again you need a Mac-specific compilation:

p_CFITSIO

produces some warnings but compile ok

dchelper

After unpacking the tar.gz and patching the Makefile (done by the install script), you need again a specific compilation:

Then copy the file _dchelper.so to $BOA_HOME/lib/python2.3/site-packages/

fitswriter

BoA fortran modules

BoA startup files

BoA should now work!

boawiki: Boa/Installation/IntelMac (last edited 2009-12-17 15:40:31 by localhost)