source: trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/FAQ/installation.xml @ 1218

Last change on this file since 1218 was 1208, checked in by garnier, 15 years ago

CVS update

File size: 5.1 KB
Line 
1<!-- ******************************************************** -->
2<!--                                                          -->
3<!--  [History]                                               -->
4<!--    1st version created:  Katsuya Amako, Dec-2006         -->
5<!--                                                          -->
6<!-- ******************************************************** -->
7
8
9<!-- ********************* QandA Section ******************** -->
10<section id="qanda.Installation">
11<title>
12Installation
13</title>
14
15<qandaset defaultlabel="qanda">
16
17
18<!-- ******* QandA Entry ******** -->
19<qandaentry id="qanda.Installation.UpkTar">
20
21<question><para>
22  When I download the source from the web, and unpack the tar file,
23  some files unpack into the top level directory.
24</para></question>
25
26<answer><para>
27  The problem you describe usually is the result of using "UNIX" tar to
28  unpack the gtar ("GNU-tar") file, or vice versa, or using zip on either
29  the gtar or tar file. Please make certain that you download the correct
30  file for your system, and that you use the correct unpacking tool.
31  Note that for Linux you must download the gtar.gz file.
32</para></answer>
33
34</qandaentry>
35
36<!-- ******* QandA Entry ******** -->
37<qandaentry  id="qanda.Installation.NoCLHEP">
38
39<question><para>
40  I cannot find CLHEP files or library and I have it installed in my system.
41</para></question>
42
43<answer><para>
44  If the standard CLHEP installation procedure has been adopted, the variable
45  <literal>CLHEP_BASE_DIR</literal> should point to the area where
46  <literal>include/</literal> and <literal>lib/</literal> directories for
47  CLHEP headers &amp; library are installed in your system. In case the library
48  file name is different than the one expected (<literal>libCLHEP.a</literal>),
49  you should either create a symbolic link with the expected name, or define
50  the variable <literal>CLHEP_LIB</literal> in your environment which
51  explicitly sets the name of the CLHEP library. If a non-standard CLHEP
52  installation has been adopted, define variables
53  <literal>CLHEP_INCLUDE_DIR</literal>, <literal>CLHEP_LIB_DIR</literal> 
54  (and <literal>CLHEP_LIB</literal>) to refer explicitly to the place where
55  headers, library (and library-name) respectively are placed in your system.
56  On Windows systems, the full library file name (with extension) should be
57  specified as <literal>CLHEP_LIB</literal>, while for UNIX-like systems,
58  just the name is required (i.e. <literal>CLHEP</literal> for
59  <literal>libCLHEP.a</literal>).
60</para></answer>
61
62</qandaentry>
63
64<!-- ******* QandA Entry ******** -->
65<qandaentry id="qanda.Installation.noCERNLib">
66
67<question><para>
68  While installing the Geant4 libraries I get the following message printed:
69
70  <informalexample><programlisting>
71         gmake[1]: cernlib: Command not found
72  </programlisting></informalexample>
73
74  Has Geant4 been installed properly ? What to do to solve this error ?
75</para></question>
76
77<answer><para>
78  The message:
79  <informalexample><programlisting>
80         gmake[1]: cernlib: Command not found
81  </programlisting></informalexample>
82
83  shows that you don't have the 'cernlib' command installed in your system;
84  'cernlib' is a command from the CERN program library (cernlib) returning a
85  list of libraries needed to link a cernlib application. This command is only
86  used in the 'g3tog4' module, however, if you do not make use of the 'g3tog4'
87  tool, it's harmless. The cernlib script (and the needed cernlib libraries)
88  are available from: http://cern.ch/cernlib.
89</para></answer>
90
91</qandaentry>
92
93<!-- ******* QandA Entry ******** -->
94<qandaentry id="qanda.Installation.FileDepend">
95
96<question><para>
97  Trying building the Geant4 libraries I see several of these errors appearing
98  and my installation fails:
99  <informalexample><programlisting>
100         .....G4Exception.d:1: *** missing separator. Stop.
101         ...../G4DalitzDecayChannel.d:1: *** missing separator. Stop.
102           :
103           :
104  </programlisting></informalexample>
105  Has Geant4 been installed properly ? What to do to solve this error ?
106</para></question>
107
108<answer><para>
109  It looks like some file dependencies (.d) are corrupted, possibly due
110  to previous build attempts which failed for some reason.
111  You need to remove each of them. A quick recipe for doing this is to:
112  <itemizedlist spacing="compact">
113    <listitem><para>
114      Configure the environment with the installation to be repaired
115    </para></listitem>
116    <listitem><para>
117      Unset the G4WORKDIR environment variable (in case it is eventually set)
118    </para></listitem>
119    <listitem><para>
120      Type:
121      <informalexample><programlisting>
122        gmake clean dependencies=''
123      </programlisting></informalexample>
124
125      from the affected module (i.e. for this case, from
126      $G4INSTALL/source/global/management and $G4INSTALL/source/particles/management)
127       and rebuild. Alternatively, you may use:
128      <informalexample><programlisting>
129        gmake clean dependencies=''
130      </programlisting></informalexample>
131
132      from $G4INSTALL/source and rebuild.
133    </para></listitem>
134  </itemizedlist>
135</para></answer>
136
137</qandaentry>
138
139
140</qandaset>
141</section>
Note: See TracBrowser for help on using the repository browser.