JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARDEV Archives


STARDEV Archives

STARDEV Archives


STARDEV@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARDEV Home

STARDEV Home

STARDEV  January 2011

STARDEV January 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: STARJAVA branch (Re: double Gaussian fit in Splat)x

From:

"Peter W. Draper" <[log in to unmask]>

Reply-To:

Starlink development <[log in to unmask]>

Date:

Tue, 11 Jan 2011 10:21:36 +0000

Content-Type:

MULTIPART/MIXED

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (38 lines) , README (1 lines)

On Mon, 10 Jan 2011, Luca Rizzi wrote:

>>> If Luca is going to do what Brad did and update these for the JAC 
>>> platforms then that's fine and I'm finished and we should branch 
>>> (assumes Luca has and is following Brad's instructions). If not then 
>>> we could hold off while I build the JNI libraries (which I intend to 
>>> do using the oldest OSes I can get to easily so we have the most 
>>> backwards compatibility, I'll do this anyway and commit these to the 
>>> main trunk).
>>> 
>>> Luca?
>> 
>
> Hello
>
> all the instructions I have from Brad are listed in the page that he 
> prepared on how to prepare a new release, and you can read them here:
>
> http://starlink.jach.hawaii.edu/starlink/StarlinkRelease
>
> There is no mention of how to update the libraries, I think... Sorry, I 
> haven't had time to look into starjava because just updating the perl 
> modules is proving to be a demanding task.

Hi Luca,

OK, no worries. I've attached a README I created for building the whole 
distribution at Durham (it assumes you have a checkout tree ready to go).
Feel free to make use of it, it describes how to update the JNI libraries, 
so that stage should be recorded somewhere for posterity.

Cheers,

Peter.

(PS, I'll press on updating JNI libraries for the moment, although 
progress will have to slow as I need to do some other work).


Durham Starlink Build --------------------- This README and directory tree are used to build the full Starlink release from source code. The source code is currently all held on servers at the JAC Hawaii. The recipe described here is generally not automatic and may need some intervention (which is why a single wrapper build system hasn't been developed). Help with build issues can be obtained from the Starlink users and developers mailing lists at [log in to unmask] and [log in to unmask], or from knowledgeable users at Durham (me). The various source code elements required are: Starlink classic - the starlink applications and libraries STARJAVA - the starlink Java applications and libraries Perlmods - perl modules used by ORAC-DR ORAC-DR - the JAC pipeline software These should be built in the given order, but with a Java system installed after the classic build. Pre-build actions ----------------- 1) Inspect and source the "setup" script in this directory. That defines PATHs, compilers etc., and the installation directory. The installation directory should be "/star-<release-name>", so that this may be used together with previous builds (the current release being a "/star" softlink to this directory). Note that if the platform changes then the compilers will also need to be changed. Starlink will build using g77, g95 and gfortran and the associated versions of gcc and g++. In general prefer gfortran if using GCC 4.3 or later, g95 for GCC 4.0 through 4.2 and g77 when using GCC 3. 2) Update all the sources, if needed. Currently I use my account at JAC to get all these using "ssh" access, but in principle these can also be accessed using readonly HTTP(s) equivalents. XXX when this is all stable switch to that. An issue is which sources to use, generally there are two options, the current development state, or the state associated with a specific release. See below in wanting to build for a specific release. To update the "starlink_git/starlink", "perl-modules_git/perl-modules" and "oracdr_git/oracdr" git sources you just need to cd into the those directories and issue the command: % git pull To check if there are any local modifications (shouldn't be) do: % git status To return the source trees to their just checked out state (removing all built files) do: % git clean -fdx and in the starlink classic sources: % ./clean-modules To update the STARJAVA sources in "starjava_svn/source", the equivalent commands are: % svn update % svn status There is no equivalent command to clean, but there is a generally available script "svn-clean" that will do this. Naturally all this assumes you have the "git", "svn" and "svn-clean" commands available, if not you can update the repositories from another machine that has these commands (a recent Linux), as this stage does not have to be done on the build machine. For reference the URLs to browse the sources and the initialising checkout commands are: Starlink classic: http://starlink.jach.hawaii.edu/git/?p=starlink.git % git clone http://starlink.jach.hawaii.edu/starlink.git STARJAVA: http://starjava.jach.hawaii.edu/viewvc/trunk/ % svn checkout https://starjava.jach.hawaii.edu/svn/trunk source Perl-modules: http://starlink.jach.hawaii.edu/git/?p=perl-modules.git % git clone http://starlink.jach.hawaii.edu/perl-modules.git ORAC-DR: http://starlink.jach.hawaii.edu/git/?p=oracdr.git % git clone http://starlink.jach.hawaii.edu/oracdr.git The checkout command should be run from the source parent directories ("starlink_git" for classic etc.). Specific releases ----------------- Some of the repositories have specific release "branches" that should be used when building (and maintaining patches) for a specific release. In the STARJAVA checkout these are individual directories, for instance: % svn checkout https://starjava.jach.hawaii.edu/svn/branches/hawaiki hawaiki was used to get the Hawaiki branch. For the git repositories, mainly just starlink_git, releases are on branches which are part of the main repository itself. So switch to the Hawaiki branch the following should be used: % git pull % git branch origin/hawaiki % git checkout hawaiki The main branch is called "master" and can also be checked out. Remember to clean out all the built files when moving between branches with non-trivial changes (when you can build the component rather than the whole tree). In principle ORAC-DR and Perl-modules could have release branches, but not at the Hawaiki build. Starlink classic build ---------------------- 1) From the starlink_git" directory issue the following commands: % cd starlink % ./do_build 2) To test this initialise the Starlink environment and run some examples in an empty directory: % source $STARCONF_DEFAULT_PREFIX/etc/login % source $STARCONF_DEFAULT_PREFIX/etc/cshrc % gaia - open demo item in Image-Analysis menu and run % pisa % pisa_demo Java installation ----------------- 1) Copy the contents of "java" to the $STARCONF_DEFAULT_PREFIX directory: % cd java % cp -ax * $STARCONF_DEFAULT_PREFIX % rehash That should give a softlink "java" to the release. Note if you update this a JAI is also required. STARJAVA build -------------- 1) From the "starjava_svn" directory do the following commands ("cd source" could be "cd hawaiki" to build the release branch): % cd source % cd ant % ./bin/ant build % ./bin/ant install % rehash % cd .. % ant build % ant install 1a) Extra step - build the JNI libraries for this platform: % cd jniast % ant build-native % ant install % ant test repeat this recipe for jnihds and splat directories. Note this may not be necessary try the "ant test" target first, if that works in these directories you're probably OK and can skip this stage. 2) Test by running up TOPCAT and SPLAT and loading their example datasets (set the TOPCAT open dialog and the SPLAT "Options" menu) % source $STARCONF_DEFAULT_PREFIX/etc/login % source $STARCONF_DEFAULT_PREFIX/etc/cshrc % splat % topcat Perl-modules build ------------------ 1) Following the instructions in the perlmods_git README, we needed to do from "perl-modules_git": % cd perl-modules % starperl bin/shipwright-builder --install-base /tmp/starlink-perl -skip-test % cd /tmp/starlink-perl/lib/perl5 % cp -r * $STARCONF_DEFAULT_PREFIX/Perl/lib/perl5/site_perl/5.10.1 % cd ../../bin-wrapped % cp * $STARCONF_DEFAULT_PREFIX/Perl/bin % cd ../man % cp -r * $STARCONF_DEFAULT_PREFIX/Perl/man % cd $STARCONF_DEFAULT_PREFIX/bin % ln -s ../Perl/bin/starversion . Some Perl-Tk tests fail unreasonably, so use -skip-test. If you have other problems look in the README for how to diagnose these. Note the "5.10.1" will change when the Perl build has been updated. A problem in cpan-tk-zinc stops compilation under SL/4.5. Need to edit the Makefile.PL to change "/usr/X11R6/lib" to "/usr/X11R6/lib64" must be a better way to do that. ORAC-DR build ------------- 1) From the top-level source directory "oracdr_git": % cd oracdr % setenv ORAC_ROOT $STARCONF_DEFAULT_PREFIX/bin/oracdr % mkdir $ORAC_ROOT % cp -r * $ORAC_ROOT This should copy the whole tree into place. If this concerns you copy the whole tree to some staging directory and make the following modifications there and then do the above. 2) Fix up in place. % cd $ORAC_ROOT % sh src/version.sh > oracdr.version % setenv ORAC_DIR $ORAC_ROOT/src % setenv ORAC_PERL5LIB $ORAC_DIR/lib/perl5 % cd src/docs/sun230 % setenv ORAC_INSTRUMENT UFTI2 % starperl sun230.pl % star2html sun230 % cp -r *.tex *.ps *.eps *.htx $STARCONF_DEFAULT_PREFIX/docs % cd .. % cd sun233 % ./mkinclude.csh % star2html sun233 % cp -r *.tex *.ps *.eps *.htx $STARCONF_DEFAULT_PREFIX/docs % cd ../.. % rm -rf docs/ t/ uml/ % ./admin/nongeneric_imaging.csh % rm -rf admin/ Peter W. Draper 21th January 2010.

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
January 2023
December 2022
July 2022
June 2022
April 2022
March 2022
December 2021
October 2021
July 2021
April 2021
January 2021
October 2020
September 2020
August 2020
May 2020
November 2019
October 2019
July 2019
June 2019
February 2019
January 2019
December 2018
November 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
December 2017
October 2017
August 2017
July 2017
May 2017
April 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
October 2015
September 2015
August 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
2004
April 2003
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager