| [901] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|---|
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|---|
| 3 | <HTML>
|
|---|
| 4 | <HEAD>
|
|---|
| 5 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
|
|---|
| 6 | <TITLE>Geant4: Windows Installation Notes</TITLE>
|
|---|
| 7 | <LINK REL="shortcut icon" HREF="../images/g4.gif">
|
|---|
| 8 | <LINK REL="stylesheet" TYPE="text/css" HREF="../includes/geantstyle.css" />
|
|---|
| 9 | </HEAD>
|
|---|
| 10 |
|
|---|
| 11 | <BODY>
|
|---|
| 12 |
|
|---|
| 13 | <!-- stop index -->
|
|---|
| 14 | <table id="top" cellpadding="0" cellspacing="0" width="100%">
|
|---|
| 15 | <tr>
|
|---|
| 16 | <td><a href="index.shtml">
|
|---|
| 17 | <img alt="Geant4 Home" src="http://cern.ch/geant4/images/geanttiny.gif" width="164" height="40" /></a></td>
|
|---|
| 18 | <td align="right" class="doNotPrint">
|
|---|
| 19 | <a href="http://cern.ch/geant4/support/download.shtml">Download</a>
|
|---|
| 20 | | <a href="http://hypernews.slac.stanford.edu/HyperNews/geant4/cindex">User
|
|---|
| 21 | Forum</a> | <a href="http://cern.ch/geant4/gallery/index.html">
|
|---|
| 22 | Gallery</a><br />
|
|---|
| 23 | <a href="http://cern.ch/geant4/collaboration/contacts.shtml">
|
|---|
| 24 | Contact Us</a><br />
|
|---|
| 25 | <form method="get" action="http://www.cern.ch/cgi-bin/directory-search.pl">
|
|---|
| 26 | <input type="hidden" value="No" name="SubSearch" />
|
|---|
| 27 | <input type="hidden" value="url:wwwinfo.cern.ch/asd/geant4/G4UsersDocuments/
|
|---|
| 28 | url:geant4.web.cern.ch/geant4/G4UsersDocuments/" name="AdditionalQuery" />
|
|---|
| 29 | <input type="hidden" value="searchbrowse.html" name="TemplateFile" />
|
|---|
| 30 | <input type="hidden" value="http://wwwinfo.cern.ch/asd/" name="Referer" />
|
|---|
| 31 | <input type="hidden" value="cern" name="qc" />
|
|---|
| 32 | <input type="hidden" value="cern" name="col" />
|
|---|
| 33 | <input size="35" name="qt" />
|
|---|
| 34 | <input type="submit" value="Search Geant4" />
|
|---|
| 35 | </form>
|
|---|
| 36 | </td>
|
|---|
| 37 | </tr>
|
|---|
| 38 | </table>
|
|---|
| 39 |
|
|---|
| 40 | <!-- start index -->
|
|---|
| 41 |
|
|---|
| 42 | <TABLE border="0" cellpadding="4" cellspacing="0">
|
|---|
| 43 | <TR>
|
|---|
| 44 | <TD id="breadcrumb">
|
|---|
| 45 | <!-- start bread crumb --><a href="../index.shtml">Home</a> >
|
|---|
| 46 | <A href="index.shtml">User Support</a> >
|
|---|
| 47 | Windows Installation Notes<!-- end bread crumb --></TD>
|
|---|
| 48 | </TR>
|
|---|
| 49 | <TR>
|
|---|
| 50 | <TD id="main">
|
|---|
| 51 | <!--start main page content -->
|
|---|
| 52 | <H1>Windows CygWin installation notes</H1>
|
|---|
| 53 | <P>
|
|---|
| 54 | Some packages which come with recent installations of CygWin are, unfortunately,
|
|---|
| 55 | affected with bugs and do not allow for a proper development environment. We
|
|---|
| 56 | list in this page all known problems in the recent installations of CygWin we
|
|---|
| 57 | could identify, and suggested workarounds.<BR>
|
|---|
| 58 | We try to keep this page up to date as new problems are found.
|
|---|
| 59 |
|
|---|
| 60 | <UL>
|
|---|
| 61 | <LI>The version of <B><TT>make</TT></B> ("<TT>make --version</TT>" gives 3.81) in the
|
|---|
| 62 | latest versions of CygWin does not handle the definition of file paths
|
|---|
| 63 | properly and produces errors like the following:
|
|---|
| 64 | <PRE>
|
|---|
| 65 | -----------
|
|---|
| 66 | common.gmk:36: *** target pattern contains no `%'. Stop.
|
|---|
| 67 |
|
|---|
| 68 | Starting build...
|
|---|
| 69 |
|
|---|
| 70 | GNUmakefile:55: *** target pattern contains no `%'. Stop.
|
|---|
| 71 | -----------
|
|---|
| 72 | </PRE>
|
|---|
| 73 |
|
|---|
| 74 | Until a better solution is found or a new patched version of
|
|---|
| 75 | <B><TT>make</TT></B> is provided in CygWin, please replace
|
|---|
| 76 | <TT>make.exe</TT> with the old version of <B><TT>make</TT></B> (3.80)
|
|---|
| 77 | that you can either download from
|
|---|
| 78 | <a href="http://cygwin.paracoda.com/release/make/make-3.80-1.tar.bz2">paracoda</a>
|
|---|
| 79 | or download directly from the Geant4 web site by following the instructions
|
|---|
| 80 | given here.
|
|---|
| 81 | <BR>
|
|---|
| 82 | Open a CygWin shell and give the following commands (NOTE: you need to have
|
|---|
| 83 | <TT>wget</TT> installed in your CygWin installation!):
|
|---|
| 84 | <PRE>
|
|---|
| 85 | cd /usr/bin
|
|---|
| 86 | mv make.exe make_381.exe
|
|---|
| 87 | wget http://geant4.cern.ch/support/extras/cygwin/make.exe
|
|---|
| 88 | chmod +x make.exe
|
|---|
| 89 | </PRE>
|
|---|
| 90 | </LI>
|
|---|
| 91 | <LI>The version of <B><TT>bash</TT></B> ("<TT>bash --version</TT>"
|
|---|
| 92 | gives 3.2.25-16) which comes with the latest versions of CygWin is broken
|
|---|
| 93 | and does not allow for proper sourcing of shell scripts (including also
|
|---|
| 94 | the <TT>Configure</TT> script to be used for the Geant4 installation).
|
|---|
| 95 | Therefore, if you adopt the <TT>bash</TT> shell (the default in CygWin)
|
|---|
| 96 | in your CygWin session, you will most likely be exposed to errors.<BR>
|
|---|
| 97 | Until a better solution is found or a new patched version of
|
|---|
| 98 | <B><TT>bash</TT></B> is provided in CygWin, please replace
|
|---|
| 99 | <TT>bash.exe</TT> with the old version of <B><TT>bash</TT></B> (3.1-6)
|
|---|
| 100 | that you can either install from CygWin, by selecting the alternative
|
|---|
| 101 | version provided instead of the default, either download it from
|
|---|
| 102 | <a href="http://mirrors.xmission.com/cygwin/release/bash/bash-3.1-6.tar.bz2">xmission</a>,
|
|---|
| 103 | or download directly from the Geant4 web site by following the instructions
|
|---|
| 104 | given here.
|
|---|
| 105 | <BR>
|
|---|
| 106 | Open a CygWin shell and give the following commands (NOTE: you need to have
|
|---|
| 107 | <TT>wget</TT> and <TT>tcsh</TT> installed in your CygWin installation!):
|
|---|
| 108 | <PRE>
|
|---|
| 109 | cd /usr/bin
|
|---|
| 110 | tcsh
|
|---|
| 111 | mv bash.exe bash_322516.exe
|
|---|
| 112 | wget http://geant4.cern.ch/support/extras/cygwin/bash.exe
|
|---|
| 113 | chmod +x bash.exe
|
|---|
| 114 | </PRE>
|
|---|
| 115 | <u>Restart from scratch your CygWin session</u>.<BR>
|
|---|
| 116 | <PRE></PRE></LI>
|
|---|
| 117 | <LI>If you wish to build DLL libraries of Geant4, in order to have
|
|---|
| 118 | <TT>make</TT> selecting the right instance of the command <TT>link.exe</TT>,
|
|---|
| 119 | do the following from your CygWin prompt:
|
|---|
| 120 | <PRE>
|
|---|
| 121 | cd /usr/bin
|
|---|
| 122 | mv link.exe cyglink.exe
|
|---|
| 123 | </PRE></LI>
|
|---|
| 124 | </UL>
|
|---|
| 125 | Then, follow the usual installation instructions as reported in the
|
|---|
| 126 | installation manual.
|
|---|
| 127 | </P>
|
|---|
| 128 |
|
|---|
| 129 | <!--end main page content --></td>
|
|---|
| 130 | </tr>
|
|---|
| 131 | </table>
|
|---|
| 132 |
|
|---|
| 133 | <!-- start footer -->
|
|---|
| 134 | <div id="bottom">
|
|---|
| 135 | <br/><br/>
|
|---|
| 136 | <a href="http://cern.ch/geant4/applications/index.shtml">Applications</a> |
|
|---|
| 137 | <a href="http://cern.ch/geant4/support/index.shtml">User Support</a> |
|
|---|
| 138 | <a href="http://cern.ch/geant4/results/index.shtml">Results & Publications</a> |
|
|---|
| 139 | <a href="http://cern.ch/geant4/collaboration/index.shtml">Collaboration</a> |
|
|---|
| 140 | <a href="http://cern.ch/geant4/sitemap.shtml">Site Map</a><br />
|
|---|
| 141 | <p></p>
|
|---|
| 142 | <script type="text/javascript">
|
|---|
| 143 | <!--//
|
|---|
| 144 | var zap_domain = "cern.ch"
|
|---|
| 145 | var zap_user = "Gunter.Folger"
|
|---|
| 146 | var zap_recipient = zap_user + "@" + zap_domain
|
|---|
| 147 | var zap_url = "mailto:" + zap_recipient +"?subject=Feedback&body=My feedback concerns the page at: " + " " + escape(top.parent.location.href)
|
|---|
| 148 | document.write('<a href="' + zap_url + '" target=>Contact Webmaster</a>')
|
|---|
| 149 | //-->
|
|---|
| 150 | </script>
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 | <div id="update">
|
|---|
| 154 | <p>Last updated:
|
|---|
| 155 |
|
|---|
| 156 | 04 Mar 2008
|
|---|
| 157 | </p>
|
|---|
| 158 | </div>
|
|---|
| 159 | </div>
|
|---|
| 160 | <!-- End footer -->
|
|---|
| 161 |
|
|---|
| 162 | </BODY>
|
|---|
| 163 | </HTML>
|
|---|