source: rtems/doc/started/binaries.t @ e630235

4.115
Last change on this file since e630235 was c9c98d7f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/15/07 at 08:24:37

More tweaks.

  • Property mode set to 100644
File size: 6.5 KB
Line 
1@c
2@c  COPYRIGHT (c) 1988-2002.
3@c  On-Line Applications Research Corporation (OAR).
4@c  All rights reserved.
5@c
6@c  $Id$
7@c
8
9@chapter Prebuilt Toolset Executables
10
11Precompiled toolsets are available for Linux, Cygwin, FreeBSD,
12and Solaris.  These are packaged in the following formats:
13
14@itemize @bullet
15@item Linux - RPM
16@item Cygwin - tar.bz2
17@item Solaris - tar.bz2
18@end itemize
19
20RPM is an acronym for the RPM Package Manager.  RPM is the
21native package installer for many Linux distributions including
22RedHat, SuSE, and Fedora.
23
24The prebuilt binaries are intended to be easy to install and
25the instructions are similar regardless of the host environment. 
26There are a few structural issues with the packaging of the RTEMS
27Cross Toolset binaries that you need to be aware of.
28
29@enumerate
30@item There are dependencies between the various packages.
31This requires that certain packages be installed before others may be.
32Some packaging formats enforce this dependency.
33
34@item Some packages are target CPU family independent and shared
35across all target architectures.   These are referred to as
36"base" packages.
37
38@item Depending upon the version of GCC as well as the development
39host and target CPU combination, pre-built supplemental packages may
40be provided for Ada (gnat), Chill, Java (gcj), Fortran (g77), and
41Objective-C (objc).  These binaries are strictly optional.
42
43@end enumerate
44
45NOTE: Installing toolset binaries does not install RTEMS itself, only
46the tools required to build RTEMS.  See @ref{Building RTEMS} for the next
47step in the process.
48
49@section RPMs
50
51This section provides information on installing and removing RPMs.
52
53@subsection Installing RPMs
54
55The following is a sample session illustrating the installation
56of a C/C++ toolset targeting the SPARC architecture. 
57
58@example
59rpm -U @value{RTEMSRPMPREFIX}binutils-common-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.i386.rpm
60rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.i386.rpm
61rpm -U @value{RTEMSRPMPREFIX}gcc-common-@value{GCCVERSION}-@value{GCCRPMRELEASE}.i386.rpm
62rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib-@value{NEWLIBVERSION}-@value{GCCRPMRELEASE}.i386.rpm
63rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-@value{GCCVERSION}-@value{GCCRPMRELEASE}.i386.rpm
64rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-c++-@value{GCCVERSION}-@value{GCCRPMRELEASE}.i386.rpm
65rpm -U @value{RTEMSRPMPREFIX}gdb-common-@value{GDBVERSION}-@value{GDBRPMRELEASE}.i386.rpm
66rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb-@value{GDBVERSION}-@value{GDBRPMRELEASE}.i386.rpm
67@end example
68
69Upon successful completion of the above command sequence, a
70C/C++ cross development toolset targeting the SPARC is
71installed in @code{@value{RTEMSPREFIX}}.  In order to use this toolset,
72the directory @code{@value{RTEMSPREFIX}/bin} must be included in your
73PATH.
74
75Once you have successfully installed the RPMs for BINUTILS, GCC,
76NEWLIB, and GDB, then you may proceed directly to @ref{Building RTEMS}. 
77
78@subsection Determining Which RTEMS RPMs are Installed
79
80The following command will report which RTEMS RPMs are currently
81installed:
82
83@example
84rpm -q -g @value{RTEMSRPMGROUP}
85@end example
86
87@subsection Removing RPMs
88
89The following is a sample session illustrating the removal
90of a C/C++ toolset targeting the SPARC architecture.
91
92@example
93rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb
94rpm -e @value{RTEMSRPMPREFIX}gdb-common
95rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-c++
96rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc
97rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib
98rpm -e @value{RTEMSRPMPREFIX}gcc-common
99rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils
100rpm -e @value{RTEMSRPMPREFIX}binutils-common
101@end example
102
103NOTE:  If you have installed any RTEMS BSPs, then it is likely that
104RPM will complain about not being able to remove everything.
105
106@section Zipped Tar Files
107
108This section provides information on installing and removing
109Zipped Tar Files (e.g .tar.gz or .tar.bz2).
110
111@subsection Installing Zipped Tar Files
112
113The following is a sample session illustrating the installation
114of a C/C++ toolset targeting the SPARC architecture assuming
115that GNU tar is installed as @code{tar} for a set of archive
116files compressed with GNU Zip (gzip):
117
118@example
119cd /
120tar xzf @value{RTEMSRPMPREFIX}binutils-common-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.gz
121tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.gz
122tar xzf @value{RTEMSRPMPREFIX}gcc-common-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.gz
123tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.gz
124tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib-@value{NEWLIBVERSION}-@value{GCCRPMRELEASE}.tar.gz
125tar xzf @value{RTEMSRPMPREFIX}gdb-common-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.gz
126tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.gz
127@end example
128
129The following command set is the equivalent command sequence
130for the same toolset assuming that is was compressed with
131GNU BZip (bzip2):
132
133@example
134cd /
135tar xjf @value{RTEMSRPMPREFIX}binutils-common-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.bz2
136tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.bz2
137tar xjf @value{RTEMSRPMPREFIX}gcc-common-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.bz2
138tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib-@value{NEWLIBVERSION}-@value{GCCRPMRELEASE}.tar.bz2
139tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.bz2
140tar xjf @value{RTEMSRPMPREFIX}gdb-common-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.bz2
141tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.bz2
142@end example
143
144Upon successful completion of the above command sequence, a
145C/C++ cross development toolset targeting the SPARC is
146installed in @code{@value{RTEMSPREFIX}}.  In order to use this toolset,
147the directory @code{@value{RTEMSPREFIX}} must be included in your
148PATH.
149
150@subsection Removing Zipped Tar Files
151
152There is no automatic way to remove the contents of a @code{tar.gz}
153or @code{tar.bz2} once it is installed.  The contents of the directory
154@code{@value{RTEMSPREFIX}} can be removed but this will likely result
155in other packages being removed as well.
156
157
Note: See TracBrowser for help on using the repository browser.