CASA toolset 2

Install Xcode 6

Accept Apple EULA

xcodebuild -license

Install Xcode command line tools

From the terminal:
xcode-select --install

Install Java

Verify that you have Java 1.5 or later installed. This is required for Casa Code to compile. Open up a terminal and type:
java -version
You should get a response like:
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
If you don't, download and install Java from here:

Download, Unpack and Install Macports

tar zxf MacPorts-2.3.3.tar.gz
cd MacPorts-2.3.3
./configure --prefix=/opt/casa/02 --with-macports-user=root --with-applications-dir=/opt/casa/02/Applications
make install

Configure Environment

Run the following commands as sudoed root. This will make the port command run with the -s flag, which will compile all of the ports from the source.

sudo su -
mkdir /var/root/bin
touch ~/.profile
chmod 700 ~/.profile
Create file /var/root/bin/port and add the following contents.
/opt/casa/02/bin/port -s $*
Make the file executable
 chmod 755 /var/root/bin/port
Add the following in the .profile
export PATH=/var/root/bin/:$PATH
Run the following commands.
. ~/.profile
type port
# This should return
# /var/root/bin/port

Fetch Port Overlay

cd /opt/casa
svn co
scp <username> /opt/casa/ports/graphics/pgplot/files

Configure MacPorts Source

echo 'file:///opt/casa/ports [nosync]' > /opt/casa/02/etc/macports/sources.conf
echo 'rsync:// [default]' >> /opt/casa/02/etc/macports/sources.conf

Verify that the sources.conf looks correct:

bash-3.2# cat /opt/casa/02/etc/macports/sources.conf
file:///opt/casa/ports [nosync]
rsync:// [default]

Update MacPorts

port selfupdate

Install Ports

port install gcc5
port install readline
port install python27
port select --set python python27
port install boost +python27
port install dbus
port install dbus-cpp
port install qt4-mac
port install qwt61 +qt4
port install pgplot +gcc5
port install cfitsio
port install wcslib +gcc5
port install gsl
port install aatm
port install rpfits +gcc5
port install fftw-3
port install fftw-3-single
port install cairo +quartz +x11
port install xercesc
port install libxslt
port install cmake
port install tk +quartz
port install py27-matplotlib +tkinter +gcc5
port install py27-ipython +parallel
port select --set ipython ipython27
port install dbus-python27
port install swig
port install swig-python
port install py27-scipy +gcc5
port install py27-pyfits
port install flex
port install libsakura
port install py27-gdbm    ### for running tests with robotframework
port install gdb # for debugging
port install wget # for documentation
port install git-lfs # for data repository

Add ports to your path

Include the following line in the .profile file in your home directory
export PATH=/opt/casa/02/bin:$PATH
-- DarrellSchiebel - 2016-11-16
Topic revision: r17 - 2017-05-23, DarrellSchiebel
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback