Difference between revisions of "User experience"
Line 5: | Line 5: | ||
== University of Colorado Group == | == University of Colorado Group == | ||
− | Spacial thanks to Dan Parshall; | + | |
+ | Spacial thanks to '''Dan Parshall'''; dan_DOT_parshall_AT_colorado_DOT_edu, who shared his experience with us. | ||
Line 41: | Line 42: | ||
chown -R <username> * | chown -R <username> * | ||
chmod -R 777 * | chmod -R 777 * | ||
− | |||
== Jülich Centre for Neutron Science == | == Jülich Centre for Neutron Science == |
Revision as of 09:28, 19 September 2011
ISIS LET control machine
The PC came prepared for Libisis and Horace. NeXus, Matlab and Intel Fortran compilers are installed.
University of Colorado Group
Spacial thanks to Dan Parshall; dan_DOT_parshall_AT_colorado_DOT_edu, who shared his experience with us.
This took a while to get back to, but eventually we got this sorted out.
It was a combination of legacy files, compilers, permissions issues, and
typos. I'm posting the solution here in order to help future Ubuntu
users.
1) >>> get legacy file mwdebug.c in place <<<
The file mwdebug.c (which one can get from Alex or Freddie) must be
placed into matlabroot/extern/src/ (one needs to make the src directory). Do the standard: chown -R root matlabroot/* chmod -R 755 matlabroot/*
2) >>> set up IFORT <<<
A 30-day trial is free, academic licenses fairly cheap (I've mucked
about a bit, and gfortran seems to also be functional, but as a rule it's 20% slower).
In order to invoke IFORT on the command line, one has to use the
"source" command and link to the "compilervars.sh" script. Because one can't use "source" in combination with "sudo", one must change to the root account, then complete the remaining steps:
cd /path/to/libisis sudo su source /path/to/ifort/compilervars.sh intel64
3) >>> run autogen.sh / configure / make (as root) <<< One must set matlabroot directly- simlinks aren't followed properly
bash autogen.sh ./configure --with-f77=ifort --with-f90=ifort --with-matlabroot=/path make
4) >>> set ownership and permissions of files made during compilation <<
chown -R <username> * chmod -R 777 *
Jülich Centre for Neutron Science
Special thanks to Johannes Reim, j_DOT_reim_AT_fz-juelich_DOT_de; who shared his experience with us;
And afterwards I have to say, actually it is not that complex, if you
know a bit about matlab, linux and how horace and libisis works but
well, neither of that applied to me *g*.
Okay what did I do for the installation:
1. Installation of libisis, I actually did not do that myself, but the IT did it, because it should be installed for all users within our institute, but I sent them the instructions found on the subversion server of Libisis: http://svn.libisis.org/viewvc/LIBISISCode/trunk/Linux/README.linux?revision=1577
I will call the libisis directory $1 (think of $1as the variable for the full path to the directory)
2. check if there is a matlab folder within the libisis folder (we will need that later on)
3. download the up-to-date version of horace (not the one which is specified for linux)
4. Just extract it to your directory of choice, I will call the directory $2 (like $1)
5. download the homer-standalone from: http://download.libisis.org/kits/homer_standalone.zip
6. create a folder called InstrumentFiles, my suggestion would be creating it next to the Horace directory.
7. extract the content of the instrument_setup folder within into the created directory, I will call the directory $3 (like $1)
8. if not existing, create a lib directory within your home directory, and into that a matlab directory, access the matlab directory
9. link the Horace installation to the current directory: "ln -s $2 ."
10. go to the parent folder (should be "lib")
11. link the InstrumentFiles folder to this directory: "ln -s $3 ."
12. create a file called startup.m within this directory
13. edit it and insert the following: try
libisis_off
catch end addpath('$1/matlab') %if there is a matlabfolder within the libsis directory use that, if all the matlab routines are directly within the libisis folder, then omit the "/matlab" libisis_init try
horace_off
catch end addpath('$2') horace_init
14. Now you can start matlab, go to the lib folder and run the startup routine -> Libisis and Horace should be initialised.