User Tools

Site Tools


skycat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
skycat [2009/05/11 03:10] pkubanekskycat [2010/03/25 23:41] – Ubuntu 9.10 expansion jstrobl
Line 3: Line 3:
 This document is ment as a simple howto for installing [[http://archive.eso.org/cms/tools-documentation/skycat|ESO SkyCat Tool]] on Debian and Ubuntu systems. It surely is not comprehensive nor authoritative, it's rather the simple description of "how we did it". But it still may come in handy ;-). This document is ment as a simple howto for installing [[http://archive.eso.org/cms/tools-documentation/skycat|ESO SkyCat Tool]] on Debian and Ubuntu systems. It surely is not comprehensive nor authoritative, it's rather the simple description of "how we did it". But it still may come in handy ;-).
  
-The original version from Petr Kubanek was only for Ubuntu 08.10, now it's extended to Debian 4.0 Etch and Ubuntu 09.04.+The original version from Petr Kubanek was only for Ubuntu 08.10, now it's extended to Debian 4.0 Etch, Debian 5.0 Lenny and Ubuntu 09.04 and 9.10.
  
 ====== Downloads ====== ====== Downloads ======
Line 14: Line 14:
 <code bash> <code bash>
 user@host:~$ wget http://archive.eso.org/cms/tools-documentation/skycat-download/skycat-3.0.2.src.tar.gz user@host:~$ wget http://archive.eso.org/cms/tools-documentation/skycat-download/skycat-3.0.2.src.tar.gz
-user@host:~$ sudo apt-get install tcl8.4-dev tk8.4-dev blt-dev itcl3.1-dev itk3-dev tclx8.4+user@host:~$ sudo apt-get install tcl8.4-dev tk8.4-dev blt-dev itcl3.1-dev itk3.1-dev tclx8.4
 </code> </code>
  
-  * Ubuntu 09.04:+  * Ubuntu 09.04 & 9.10:
 <code bash> <code bash>
 user@host:~$ wget http://archive.eso.org/cms/tools-documentation/skycat-download/skycat-3.0.2.src.tar.gz user@host:~$ wget http://archive.eso.org/cms/tools-documentation/skycat-download/skycat-3.0.2.src.tar.gz
Line 25: Line 25:
 <code bash> <code bash>
 user@host:~$ wget http://archive.eso.org/cms/tools-documentation/skycat-download/skycat-3.0.2.src.tar.gz user@host:~$ wget http://archive.eso.org/cms/tools-documentation/skycat-download/skycat-3.0.2.src.tar.gz
-user@host:~$ sudo apt-get install tcl8.4-dev tk8.4-dev blt-dev itcl3-dev itk3-dev tclx8.4 iwidgets4+user@host:~$ sudo apt-get install tcl8.4-dev tk8.4-dev blt-dev itcl3-dev itk3-dev tclx8.4 iwidgets4 x11proto-xext-dev libxext-dev
 </code> </code>
  
Line 65: Line 65:
 </code> </code>
  
-  * Seems as case only for Ubuntu+  * Seems as case only for Ubuntu and Debian 5.0 Lenny
  
 You need to edit //cat/generic/AstroQuery.h// and put //#include <string.h>// to it, right after //#include <cstdio>// You need to edit //cat/generic/AstroQuery.h// and put //#include <string.h>// to it, right after //#include <cstdio>//
Line 117: Line 117:
  
   * Debian (seems to be not a problem in ubuntu?):   * Debian (seems to be not a problem in ubuntu?):
-There is one more problem, you have to edit these files:+There is one more problem in these files:
   ./cat/configure   ./cat/configure
   ./rtd/configure   ./rtd/configure
Line 124: Line 124:
   ./astrotcl/configure   ./astrotcl/configure
  
-There is an error in those files, you have to change the line+It is the redundant single quote mark ('in the end of the line:
   system=MP-RAS-`awk '{print }' /etc/.relid'`   system=MP-RAS-`awk '{print }' /etc/.relid'`
-to 
-  system=MP-RAS-`awk '{print }' /etc/.relid` 
-(redundant single quote mark). 
  
 +You can use this simple pipeline to repair it all:
 +<code bash>
 +for i in ./cat/configure ./rtd/configure ./tclutil/configure ./skycat/configure ./astrotcl/configure; do cp $i ${i}.orig; cat ${i}.orig | sed "s/\/etc\/\.relid'/\/etc\/.relid/" > $i; done
 +</code>
 +
 +  * Ubuntu 9.10:
 +You need to change the type in tclutil/generic/HTTP.C file, row 1111:
 +
 +<code c++>
 +char *hostdomain = strchr(host, '.');
 +</code>
 +
 +becomes
 +
 +<code c++>
 +char *hostdomain = strchr((char *)host, '.');
 +</code>
  
 ====== Make ====== ====== Make ======
Line 140: Line 154:
 </code> </code>
  
-  * Ubuntu 09.04:+  * Ubuntu 09.04 & 9.10:
 <code bash> <code bash>
 user@host:~$ ./configure --with-tcl=/usr/lib/tcl8.5/ --with-tk=/usr/lib/tk8.5 --with-tkinclude=/usr/include/tcl8.5 --with-blt=/usr/lib user@host:~$ ./configure --with-tcl=/usr/lib/tcl8.5/ --with-tk=/usr/lib/tk8.5 --with-tkinclude=/usr/include/tcl8.5 --with-blt=/usr/lib
skycat.txt · Last modified: 2010/03/26 00:00 (external edit)