ViewVC logotype

Contents of /trunk/doc/install/binlinux.tex

Parent Directory Parent Directory | Revision Log Revision Log

Revision 6651 - (show annotations)
Wed Feb 7 02:12:08 2018 UTC (2 years, 7 months ago) by jfenwick
File MIME type: application/x-tex
File size: 4701 byte(s)
Make everyone sad by touching all the files

Copyright dates update

1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % Copyright (c) 2003-2018 by The University of Queensland
3 % http://www.uq.edu.au
4 %
5 % Primary Business: Queensland, Australia
6 % Licensed under the Apache License, version 2.0
7 % http://www.apache.org/licenses/LICENSE-2.0
8 %
9 % Development until 2012 by Earth Systems Science Computational Center (ESSCC)
10 % Development 2012-2013 by School of Earth Sciences
11 % Development from 2014 by Centre for Geoscience Computing (GeoComp)
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 \section{Linux binary installation}
16 \label{sec:binlinux}
18 \esfinley can be installed as a stand-alone bundle, containing all the required dependencies.
19 Alternatively, if we have a package for your distribution you can use the standard tools to install.
22 For more information on using the \file{run-escript} command please see the User's Guide.
24 If you are using Debian~6.0(``Squeeze''), Ubuntu~10.4(``Lucid Lynx'') or greater, then see Section~\ref{sec:debian}.
25 For other linux distributions refer to Section~\ref{sec:standalonelinux}.
27 \subsection{Debian and Ubuntu}\label{sec:debian}
29 We produce \texttt{.deb}s for the i386 and amd64 architectures for Debian stable(``squeeze'') and the
30 following Ubuntu releases:
31 \begin{itemize}
32 \item $11.10$ --- \emph{Oneiric} Ocelot
33 \item $12.04$ --- \emph{Precise} Pangolin (LTS)
34 \item $12.10$ --- \emph{Quantal} Queztal
35 \end{itemize}
37 The package file will be named \file{escript-X-D_A.deb} where \texttt{X} is the version, \texttt{D}
38 is the distribution codename (eg ``\texttt{squeeze}'' or ``\texttt{oneric}'') and \texttt{A} is the architecture.
39 For example, \file{escript-3.4-1-squeeze_amd64.deb} would be the file for squeeze for 64bit processors.
40 To install \esfinley download the appropriate \file{.deb} file and execute the following
41 commands as root (you need to be in the directory containing the file):
43 \begin{verse}
44 \textbf{(For Ubuntu users)}\\
45 You will need to either install \texttt{aptitude}\footnote{Unless you are short on disk space \texttt{aptitude} is recommended} or substitute \texttt{apt-get} where this guide uses \texttt{aptitude}.
46 \begin{shellCode}
47 sudo apt-get install aptitude
48 \end{shellCode}
49 \end{verse}
51 \begin{shellCode}
52 dpkg --unpack escript*.deb
53 aptitude install escript
54 \end{shellCode}
56 Installing escript should not remove any packages from your system.
57 If aptitude suggests removing escript, then choose 'N'.
58 It should then suggest installing some dependencies choose 'Y' here.
59 If it suggests removing \texttt{escript-noalias} then agree.
61 If you use sudo (for example on Ubuntu) enter the following instead:
62 \begin{shellCode}
63 sudo dpkg --unpack escript*.deb
64 sudo aptitude install escript
65 \end{shellCode}
67 This should install \esfinley and its dependencies on your system.
68 Please notify the development team if something goes wrong.
70 \subsection{Stand-alone bundle}\label{sec:standalonelinux}
72 If there is no package available for your distribution, you may be able to use one of our stand alone bundles.
73 You will need three pieces:
74 \begin{enumerate}
75 \item escript itself (\file{escript_3.4_i386.tar.bz2})\footnotemark\ from launchpad.net.\addtocounter{footnote}{-1}
76 \item the support bundle (\file{escript-support_3.0_i386.tar.bz2})\footnote{For $64$-bit Intel and Amd processors substitute \texttt{amd64} for \texttt{i386}.} from launchpad.net.
77 [This is the same support bundle as in previous releases. So you can reuse it if you have it already.]
78 \item sympy from \url{http://sympy.org} --- This is a new dependency and is not in the support bundle.
79 \end{enumerate}
81 Change directory to where you would like to install escript (We assume the three files are in this directory).
83 \begin{shellCode}
84 tar -xjf escript-support_3.0_i386.tar.bz2
85 tar -xjf escript_3.4_i386.tar.bz2
87 \end{shellCode}
88 This will produce a directory called \file{stand} which contains a stand-alone version of \esfinley and its dependencies.
90 \noindent To install SymPy(replace 0.7.1 with the version of sympy you have) enter the following:
91 \begin{shellCode}
92 eval `stand/escript.d/bin/run-escript -e`
93 tar -xzf sympy-0.7.1.tar.gz
94 cd sympy-0.7.1
95 python setup.py install --prefix ../stand/pkg/
96 \end{shellCode}
98 You can test your installation by running:
99 \begin{shellCode}
100 stand/escript.d/bin/run-escript
101 \end{shellCode}
102 This should give you a normal python shell.
103 If you wish to save on typing you can add \file{x/stand/escript.d/bin}\footnote{or whatever you renamed \texttt{stand} to.} to your \texttt{PATH} variable (where x is the absolute path to your install).
105 You may now remove the tar files and the sympy directory from your starting directory.

  ViewVC Help
Powered by ViewVC 1.1.26