Differences between revisions 17 and 18
Deletions are marked like this. Additions are marked like this.
Line 77: Line 77:
Or if you didn't set up the properties file:
{{{
  ant -Dstar.dir=${STARLINK_DIR}/starjava install
}}}
Line 87: Line 91:
Or if you didn't set up the properties file:
{{{
  ant -Dstardev=${STARLINK_DIR} -Dstar.dir=${STARLINK_DIR}/starjava install
}}}

Linux

 source ~/hawaiki-build
 cd /export/data/star
 git clone git://github.com/Starlink/starlink.git starlink-hawaiki
 cd starlink-hawaiki
 ./bootstrap
 make configure-deps
 ./configure -C
 make world

OS X

 source ~/hawaiki-build
 export DYLD_LIBRARY_PATH=/star/lib
 cd development
 git clone git://github.com/Starlink/starlink.git starlink-hawaiki
 cd starlink-hawaiki
 ./bootstrap
 make configure-deps
 ./configure -C
 make world

STARPERL

The Perl modules installer can be found in the perlmods subdirectory. Change into the directory and for more information, see the instructions in the README.

 cd thirdparty/perlsys/perlmods/
 ./build-modules.sh

STARJAVA

LINUX

Download JDK (both 1.5 and 1.6) from Sun. Download JAI from java.net: http://download.java.net/media/jai/builds/release/1_1_3/

Run the binary installer for the JDK, which will create jdk-<whatever> directories. (The preceding three steps have been done as the starlink user on both scubadev and acsis, and the directories are in the /export/data/star directory. -- 22 January 2010) Change into the created jdk- directory, then run the binary installer for JAI, which will install JAI into the JDK directory. Then cp -r * $STARCONF_DEFAULT_PREFIX/java1.[56] to copy the files into the distribution.

 cd $STARCONF_DEFAULT_PREFIX
 ln -s java1.5 java
 setenv STAR_JAVA $STARCONF_DEFAULT_PREFIX/java/bin/java

OS X

 export STAR_JAVA=/usr/bin/java

Both platforms

Make sure that the ~/.stardev.properties file has:

 star.dir=/star-hawaiki/starjava
 stardev=/star-hawaiki

(Not sure if this can take environment variables, which is why it doesn't use $STARCONF_DEFAULT_PREFIX)

 git clone git://github.com/Starlink/starjava.git starjava-hawaiki
 cd starjava-hawaiki/ant
 setenv PATH `pwd`/bin:${PATH}

Make sure that the Starlink 'ant' command is first in your path by doing:

 ant -projecthelp

If you see references for Starlink in there, you've done it right. Then do:

 ant install
 ant clean

Or if you didn't set up the properties file:

  ant -Dstar.dir=${STARLINK_DIR}/starjava install

Start using the new ant:

 setenv PATH $STARCONF_DEFAULT_PREFIX/starjava/bin:${PATH}

And build starjava:

 cd ..
 ant build
 ant install

Or if you didn't set up the properties file:

  ant -Dstardev=${STARLINK_DIR} -Dstar.dir=${STARLINK_DIR}/starjava install

ORAC-DR

 cd $STARCONF_DEFAULT_PREFIX/bin
 git clone git://github.com/Starlink/ORAC-DR.git oracdr
 cd oracdr/src/docs
 make install

Starlink: StarlinkRelease (last edited 2023-11-29 20:35:06 by GrahamBell)