Mac OS X (note: this platform required to set FLIBS='-L/sw/lib -lfrtbegin -lg2c -lSystem' before the./configure completed successfully.) If you have compiled LAPACK on another platform successfully, then the maintainer would be glad to hear about that. Newer versions of macOS, including 10.11, ship with an implementation of LAPACK included in vecLib, which is included in macOS. So if your software is vecLib-aware, you may not need to install LAPACK at all. If you need to install a separate LAPACK, it's now available as a Homebrew formula in Homebrew core. So brew install lapack will work now.
Rather than downloading and installing this software, you might want toconsider using the Virtual Machine for this class, which already contains everything you need.Or, you can do your computing on the cloud by following the instructions inthe section Amazon Web Services EC2 AMI.
It is assumed that you are on a Unix-like machine (e.g Linux or Mac OSX). For some flavors of Unix it is easy to download and install someof the required packages using apt-get (see Software available through apt-get),or your system’s packagemanager. Many Python packages can also be installed usingeasy_install (see Software available through easy_install).
If you must use a Windows PC, then you shoulddownload and install [VirtualBox] for Windows and thenrun the Virtual Machine for this class to provide a Linux environment. Alternatively you can usea linux machine in the cloud via Amazon Web Services EC2 AMI.
If you are using a Mac and want to install the necessary software, you alsoneed to install Xcode developertools, which includes necessary compilers and make, for example.
Some of this software may already be available on your machine. The whichcommand in Unix will tell you if a command is found on your search path,e.g.:
tells me that when I type the python command it runs the program located inthe file listed. Often executables are stored in directories named bin,which is short for binary, since they are often binary machine code files.
If which doesn’t print anything, or says something like:
then the command cannot be found on the search path. So either thesoftware is not installed or it has been installed in a directory that isn’tsearched by the shell program (see Shells) when it tries to interpretyour command. See PATH and other search paths for more information.
Mac Os X El Capitan
Versions¶
Often there is more than one version of software packages in use. Newerversions may have more features than older versions and perhaps even behavedifferently with respect to common features. For some of what we do it willbe important to have a version that is sufficiently current.
For example, Python has changed dramatically in recent years. Everything weneed (I think!) for this class can be found inVersion 2.X.Y for any (X geq 4).
Major changes were made to Python in going to Python 3.0, which has not beenbroadly adopted by the community yet (because much code would have to berewritten). In this class we are not using Python 3.X. (See[Python-3.0-tutorial] for more information.)
To determine what version of softwareyou have installed, often the command can be issued with the --versionflag, e.g.:
Individual packages¶
Python¶
If the version of Python on your computer is older than 2.7.0 (see above),you should upgrade.
See http://www.python.org/download/ or consider the Enthought PythonDistribution (EPD) or Anaconda CE described below.
SciPy Superpack¶
On Mac OSX, you can often install gfortran and all the Python packages we’llneed using the SciPy Superpack.
Enthought Python Distribution (EPD)¶
You might consider installingEPD free
This includes a recent version of Python 2.X as well as many of the otherPython packages listed below (IPython, NumPy, SciPy, matplotlib, mayavi).
EPD works well on Windows machines too.
Anaconda CE¶
Anacondais a new collection of Python tools distributed byContinuum AnalyticsThe “community edition” Anaconda CE is free and contains most of the toolswe’ll be using, including IPython, NumPy, SciPy, matplotlib,and many others. The full Anaconda is also free for academic users.
IPython¶
The IPython shell is much nicer to use than the standard Python shell (seeShells and ipython).(Included in EPD, Anaconda, and the SciPy Superpack.)
See http://ipython.scipy.org/moin/
NumPy and SciPy¶
Used for numerical computing in Python (see Numerics in Python).(Included in EPD, Anaconda, and the SciPy Superpack.)
See http://www.scipy.org/Installing_SciPy
Matplotlib¶
Matlab-like plotting package for 1d and 2d plots in Python.(Included in EPD, Anaconda, and the SciPy Superpack.)
See http://matplotlib.sourceforge.net/
Git¶
Version control system (see Git).
See downloads.
Sphinx¶
Documentation system used to create these class notes pages (seeSphinx documentation).
See http://sphinx.pocoo.org/
Mac Os X Update
gfortran¶
GNU fortran compiler (see Fortran).
You may already have this installed, try:
See http://gcc.gnu.org/wiki/GFortran
OpenMP¶
Included with gfortran (see OpenMP).
Open MPI¶
Installing Lapack On Mac Os X 10 12 Download
Message Passing Interface software for parallel computing (see MPI).
See http://www.open-mpi.org/
Some instructions for installing from source on a Mac can be found athere.
LAPack¶
Linear Algebra Package, a standard library of highly optimized linearalgebra subroutines. LAPack depends on the BLAS (Basic Linear AlgebraSubroutines); it is distributed with a reference BLAS implementation,but more highly optimized BLAS are available for most systems.
See http://www.netlib.org/lapack/
Software available through apt-get¶
On a recent Debian or Ubuntu Linux system, most of the software forthis class can be installed through apt-get. To install, type thecommand:
where the appropriate PACKAGE to install comes from the list below.
NOTE: You will only be able to do this on your own machine, the VM describedat Virtual Machine for this class, or a computer on which you have super user privileges toinstall software in the sytsem files. (See sudo)
You can also installthese packages using a graphical package manager such as Synapticinstead of apt-get. If you are able to install all of thesepackages, you do not need to install the Enthought PythonDistribution.
Software | Package |
---|---|
Python | python |
IPython | ipython |
NumPy | python-numpy |
SciPy | python-scipy |
Matplotlib | python-matplotlib |
Python development files | python-dev |
Git | git |
Sphinx | python-sphinx |
gfortran | gfortran |
OpenMPI libraries | libopenmpi-dev |
OpenMPI executables | openmpi-bin |
LAPack | liblapack-dev |
Many of these packages depend on other packages; answer “yes” whenapt-get asks you if you want to download them. Some of them, suchas Python, are probably already installed on your system, in whichcase apt-get will tell you that they are already installed and donothing.
The script below was used to install software on the Ubuntu VM:
Software available through easy_install¶
easy_install is a Python utility that can automatically download andinstall many Python packages. It is part of the Python setuptoolspackage, available from http://pypi.python.org/pypi/setuptools,and requires Python to already be installed on your system. Once thispackage is installed, you can install Python packages on a Unix systemby typing:
where the PACKAGE to install comes from the list below. Note thatthese packages are redundant with the ones available from apt-get;use apt-get if it’s available.
Software | Package |
---|---|
IPython | IPython[kernel,security] |
NumPy | numpy |
SciPy | scipy |
Matplotlib | matplotlib |
Mayavi | mayavi |
Git | git |
Sphinx | sphinx |
If these packages fail to build, you may need to install the Pythonheaders.