| 1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter FAQ. Frequentry Asked Questions</title><link rel="stylesheet" href="../xml/XSLCustomizationLayer/G4HTMLStylesheet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="Geant4 User's Guide for Application Developers"><link rel="up" href="index.html" title="Geant4 User's Guide for Application Developers"><link rel="prev" href="ch09s03.html" title="9.3. Advanced Examples"><link rel="next" href="ch10s02.html" title="FAQ.2. Run Time Problems"><script language="JavaScript">
|
|---|
| 2 | function remote_win(fName)
|
|---|
| 3 | {
|
|---|
| 4 | var url = "AllResources/Detector/geometry.src/" + fName;
|
|---|
| 5 | RemoteWin=window.open(url,"","resizable=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=520,height=520")
|
|---|
| 6 | RemoteWin.creator=self
|
|---|
| 7 | }
|
|---|
| 8 | </script></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">Chapter FAQ.
|
|---|
| 9 | Frequentry Asked Questions
|
|---|
| 10 | </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch09s03.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch10s02.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="chap.FAQ"></a>Chapter FAQ.
|
|---|
| 11 | Frequentry Asked Questions
|
|---|
| 12 | </h2></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="qanda.Installation"></a>FAQ.1.
|
|---|
| 13 | Installation
|
|---|
| 14 | </h2></div></div></div><div class="qandaset"><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="qanda.Installation.UpkTar"></a><a name="id553047"></a><b>Q:</b></td><td align="left" valign="top"><p>
|
|---|
| 15 | When I download the source from the web, and unpack the tar file,
|
|---|
| 16 | some files unpack into the top level directory.
|
|---|
| 17 | </p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:</b></td><td align="left" valign="top"><p>
|
|---|
| 18 | The problem you describe usually is the result of using "UNIX" tar to
|
|---|
| 19 | unpack the gtar ("GNU-tar") file, or vice versa, or using zip on either
|
|---|
| 20 | the gtar or tar file. Please make certain that you download the correct
|
|---|
| 21 | file for your system, and that you use the correct unpacking tool.
|
|---|
| 22 | Note that for Linux you must download the gtar.gz file.
|
|---|
| 23 | </p></td></tr><tr class="question"><td align="left" valign="top"><a name="qanda.Installation.NoCLHEP"></a><a name="id553070"></a><b>Q:</b></td><td align="left" valign="top"><p>
|
|---|
| 24 | I cannot find CLHEP files or library and I have it installed in my system.
|
|---|
| 25 | </p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:</b></td><td align="left" valign="top"><p>
|
|---|
| 26 | If the standard CLHEP installation procedure has been adopted, the variable
|
|---|
| 27 | <code class="literal">CLHEP_BASE_DIR</code> should point to the area where
|
|---|
| 28 | <code class="literal">include/</code> and <code class="literal">lib/</code> directories for
|
|---|
| 29 | CLHEP headers & library are installed in your system. In case the library
|
|---|
| 30 | file name is different than the one expected (<code class="literal">libCLHEP.a</code>),
|
|---|
| 31 | you should either create a symbolic link with the expected name, or define
|
|---|
| 32 | the variable <code class="literal">CLHEP_LIB</code> in your environment which
|
|---|
| 33 | explicitly sets the name of the CLHEP library. If a non-standard CLHEP
|
|---|
| 34 | installation has been adopted, define variables
|
|---|
| 35 | <code class="literal">CLHEP_INCLUDE_DIR</code>, <code class="literal">CLHEP_LIB_DIR</code>
|
|---|
| 36 | (and <code class="literal">CLHEP_LIB</code>) to refer explicitly to the place where
|
|---|
| 37 | headers, library (and library-name) respectively are placed in your system.
|
|---|
| 38 | On Windows systems, the full library file name (with extension) should be
|
|---|
| 39 | specified as <code class="literal">CLHEP_LIB</code>, while for UNIX-like systems,
|
|---|
| 40 | just the name is required (i.e. <code class="literal">CLHEP</code> for
|
|---|
| 41 | <code class="literal">libCLHEP.a</code>).
|
|---|
| 42 | </p></td></tr><tr class="question"><td align="left" valign="top"><a name="qanda.Installation.noCERNLib"></a><a name="id553161"></a><b>Q:</b></td><td align="left" valign="top"><p>
|
|---|
| 43 | While installing the Geant4 libraries I get the following message printed:
|
|---|
| 44 |
|
|---|
| 45 | </p><div class="informalexample"><pre class="programlisting">
|
|---|
| 46 | gmake[1]: cernlib: Command not found
|
|---|
| 47 | </pre></div><p>
|
|---|
| 48 |
|
|---|
| 49 | Has Geant4 been installed properly ? What to do to solve this error ?
|
|---|
| 50 | </p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:</b></td><td align="left" valign="top"><p>
|
|---|
| 51 | The message:
|
|---|
| 52 | </p><div class="informalexample"><pre class="programlisting">
|
|---|
| 53 | gmake[1]: cernlib: Command not found
|
|---|
| 54 | </pre></div><p>
|
|---|
| 55 |
|
|---|
| 56 | shows that you don't have the 'cernlib' command installed in your system;
|
|---|
| 57 | 'cernlib' is a command from the CERN program library (cernlib) returning a
|
|---|
| 58 | list of libraries needed to link a cernlib application. This command is only
|
|---|
| 59 | used in the 'g3tog4' module, however, if you do not make use of the 'g3tog4'
|
|---|
| 60 | tool, it's harmless. The cernlib script (and the needed cernlib libraries)
|
|---|
| 61 | are available from: http://cern.ch/cernlib.
|
|---|
| 62 | </p></td></tr><tr class="question"><td align="left" valign="top"><a name="qanda.Installation.FileDepend"></a><a name="id553200"></a><b>Q:</b></td><td align="left" valign="top"><p>
|
|---|
| 63 | Trying building the Geant4 libraries I see several of these errors appearing
|
|---|
| 64 | and my installation fails:
|
|---|
| 65 | </p><div class="informalexample"><pre class="programlisting">
|
|---|
| 66 | .....G4Exception.d:1: *** missing separator. Stop.
|
|---|
| 67 | ...../G4DalitzDecayChannel.d:1: *** missing separator. Stop.
|
|---|
| 68 | :
|
|---|
| 69 | :
|
|---|
| 70 | </pre></div><p>
|
|---|
| 71 | Has Geant4 been installed properly ? What to do to solve this error ?
|
|---|
| 72 | </p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:</b></td><td align="left" valign="top"><p>
|
|---|
| 73 | It looks like some file dependencies (.d) are corrupted, possibly due
|
|---|
| 74 | to previous build attempts which failed for some reason.
|
|---|
| 75 | You need to remove each of them. A quick recipe for doing this is to:
|
|---|
| 76 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 77 | Configure the environment with the installation to be repaired
|
|---|
| 78 | </p></li><li><p>
|
|---|
| 79 | Unset the G4WORKDIR environment variable (in case it is eventually set)
|
|---|
| 80 | </p></li><li><p>
|
|---|
| 81 | Type:
|
|---|
| 82 | </p><div class="informalexample"><pre class="programlisting">
|
|---|
| 83 | gmake clean dependencies=''
|
|---|
| 84 | </pre></div><p>
|
|---|
| 85 |
|
|---|
| 86 | from the affected module (i.e. for this case, from
|
|---|
| 87 | $G4INSTALL/source/global/management and $G4INSTALL/source/particles/management)
|
|---|
| 88 | and rebuild. Alternatively, you may use:
|
|---|
| 89 | </p><div class="informalexample"><pre class="programlisting">
|
|---|
| 90 | gmake clean dependencies=''
|
|---|
| 91 | </pre></div><p>
|
|---|
| 92 |
|
|---|
| 93 | from $G4INSTALL/source and rebuild.
|
|---|
| 94 | </p></li></ul></div><p>
|
|---|
| 95 | </p></td></tr></tbody></table></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch09s03.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch10s02.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr><tr><td width="40%" align="left" valign="top">9.3.
|
|---|
| 96 | Advanced Examples
|
|---|
| 97 | </td><td width="20%" align="center"><a accesskey="h" href="index.html"><img src="AllResources/IconsGIF/home.gif" alt="Home"></a></td><td width="40%" align="right" valign="top"> FAQ.2.
|
|---|
| 98 | Run Time Problems
|
|---|
| 99 | </td></tr></table></div></body></html>
|
|---|