1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>2.4.�Installing Sourcery CodeBench Lite</title><link rel="stylesheet" type="text/css" href="cs.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.0"><link rel="home" href="index.html" title="Sourcery CodeBench Lite"><link rel="up" href="chap-installation.html" title="Chapter�2.�Installation and Configuration"><link rel="prev" href="ch02s03.html" title="2.3.�Downloading an Installer"><link rel="next" href="sec-updating.html" title="2.5.�Installing Sourcery CodeBench Lite Updates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.4.�Installing Sourcery CodeBench Lite</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a>�</td><th width="60%" align="center">Chapter�2.�Installation and Configuration</th><td width="20%" align="right">�<a accesskey="n" href="sec-updating.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec-installing"></a>2.4.�Installing Sourcery CodeBench Lite</h2></div></div></div><p> 2 The method used to install Sourcery CodeBench Lite depends on 3 <span class="phrase">your host system and</span> 4 the kind of installation package you have downloaded. 5 </p><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="idm46915333990336"></a>2.4.1.�Using the Sourcery CodeBench Lite Installer on Microsoft Windows</h3></div></div></div><p> 6 If you have received Sourcery CodeBench Lite on CD, insert the CD in your computer. 7 On most computers, the installer then starts automatically. If 8 your computer has been configured not to automatically run CDs, 9 open <code class="guilabel">My Computer</code>, and double click on the CD. 10 If you downloaded Sourcery CodeBench Lite, double-click on the installer. 11 </p><p> 12 After the installer starts, follow the on-screen dialogs to 13 install Sourcery CodeBench Lite. 14 The installer is intended to be self-explanatory and on most 15 pages the defaults are appropriate. 16 </p><div class="informalfigure"><div class="mediaobject" align="center"><img src="images/install1.png" align="middle"><div class="caption"><p><b>Running the Installer.�</b> 17 The graphical installer guides you through the steps 18 to install Sourcery CodeBench Lite. 19 </p></div></div></div><p> 20 You may want to change the install directory pathname and 21 customize the shortcut installation. 22 </p><div class="informalfigure"><div class="mediaobject" align="center"><img src="images/install2.png" align="middle"><div class="caption"><p><b>Choose Install Folder.�</b> 23 Select the pathname to your install directory. 24 </p></div></div></div><div class="informalfigure"><div class="mediaobject" align="center"><img src="images/install3.png" align="middle"><div class="caption"><p><b>Choose Shortcut Folder.�</b> 25 You can customize where the installer creates shortcuts 26 for quick access to Sourcery CodeBench Lite. 27 </p></div></div></div><p> 28 When the installer has finished, it asks if you want to launch 29 30 a viewer for the Getting Started guide, or visit Mentor Embedded. 31 </p><div class="informalfigure"><div class="mediaobject" align="center"><img src="images/install4.png" align="middle"><div class="caption"><p><b>Install Complete.�</b> 32 You should see a screen similar to this after a successful 33 install. 34 </p></div></div></div><p> 35 If you prefer, you can run the installer in console mode rather than 36 using the graphical interface. To do this, invoke the installer 37 with the <code class="option">-console</code> command-line option. For example: 38 </p><pre class="screen">> /path/to/package.exe -console</pre><p> 39 </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="idm46915333961776"></a>2.4.2.�Using the Sourcery CodeBench Lite Installer on GNU/Linux Hosts</h3></div></div></div><p> 40 Start the graphical installer by invoking the executable shell script: 41 </p><pre class="screen">> /bin/sh ./path/to/package.bin</pre><p> 42 </p><p> 43 After the installer starts, follow the on-screen dialogs to 44 install Sourcery CodeBench Lite. 45 <span class="phrase"> 46 For additional details on running the installer, 47 see the discussion and screen shots in the 48 Microsoft Windows section above. 49 </span> 50 </p><p> 51 If you prefer, or if your host system does not run the 52 X Window System, you can run the installer in console mode rather than 53 using the graphical interface. To do this, invoke the installer 54 with the <code class="option">-console</code> command-line option. For example: 55 </p><pre class="screen">> /bin/sh ./path/to/package.bin -console</pre><p> 56 </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="tbz2inst"></a>2.4.3.�Installing Sourcery CodeBench Lite from a Compressed Archive</h3></div></div></div><p> 57 You do not need to be a system administrator to install Sourcery CodeBench Lite 58 from a compressed archive. You may install Sourcery CodeBench Lite using any user 59 account and in any directory to which you have 60 write access. This guide assumes that you have decided to install 61 Sourcery CodeBench Lite in the <code class="filename">$HOME/CodeSourcery</code> subdirectory of 62 your home directory and that the filename of the package you have 63 downloaded is <code class="filename">/path/to/package.tar.bz2</code>. After installation 64 the toolchain will be in 65 <code class="filename">$HOME/CodeSourcery/sourceryg++-2013.11</code>. 66 </p><p> 67 First, uncompress the package file: 68 </p><pre class="screen">> bunzip2 /path/to/package.tar.bz2</pre><p> 69 Next, create the directory in which you wish to install the package: 70 </p><pre class="screen">> mkdir -p $HOME/CodeSourcery</pre><p> 71 Change to the installation directory: 72 </p><pre class="screen">> cd $HOME/CodeSourcery</pre><p> 73 Unpack the package: 74 </p><pre class="screen">> tar xf /path/to/package.tar</pre><p> 75 </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="chap-installation.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="sec-updating.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">2.3.�Downloading an Installer�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�2.5.�Installing Sourcery CodeBench Lite Updates</td></tr></table></div></body></html> 76