Install Xcode 6
https://developer.apple.com/xcode/downloads/
Accept Apple EULA
xcodebuild -license
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:
https://www.java.com/en/download/mac_download.jsp
Download, Unpack and Install Macports
https://distfiles.macports.org/MacPorts/MacPorts-2.3.3.tar.gz
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
make install
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.
bash-3.2
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 https://svn.cv.nrao.edu/svn/macports/trunk/ports/
scp <username>@ssh.cv.nrao.edu:~dschieb/patch-531 /opt/casa/ports/graphics/pgplot/files
echo 'file:///opt/casa/ports [nosync]' > /opt/casa/02/etc/macports/sources.conf
echo 'rsync://rsync.macports.org/release/ports [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://rsync.macports.org/release/ports [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