This repository has been archived by the owner on Sep 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 369
/
automation02_windows.html
177 lines (151 loc) · 8.11 KB
/
automation02_windows.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
<meta name="author" content="Shaun Jackman, Dean Attali, Jenny Bryan" />
<title>make: Special considerations for Windows</title>
<script src="libs/jquery-1.11.0/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.1/css/bootstrap.min.css" rel="stylesheet" />
<script src="libs/bootstrap-3.3.1/js/bootstrap.min.js"></script>
<script src="libs/bootstrap-3.3.1/shim/html5shiv.min.js"></script>
<script src="libs/bootstrap-3.3.1/shim/respond.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-68219208-1', 'auto');
ga('send', 'pageview');
</script>
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet"
href="libs/highlight/default.css"
type="text/css" />
<script src="libs/highlight/highlight.js"></script>
<style type="text/css">
pre:not([class]) {
background-color: white;
}
</style>
<script type="text/javascript">
if (window.hljs && document.readyState && document.readyState === "complete") {
window.setTimeout(function() {
hljs.initHighlighting();
}, 0);
}
</script>
<link rel="stylesheet" href="libs/local/main.css" type="text/css" />
<link rel="stylesheet" href="libs/local/nav.css" type="text/css" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" type="text/css" />
</head>
<body>
<style type = "text/css">
.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
code {
color: inherit;
background-color: rgba(0, 0, 0, 0.04);
}
img {
max-width:100%;
height: auto;
}
</style>
<div class="container-fluid main-container">
<header>
<div class="nav">
<a class="nav-logo" href="index.html">
<img src="static/img/stat545-logo-s.png" width="70px" height="70px"/>
</a>
<ul>
<li class="home"><a href="index.html">Home</a></li>
<li class="faq"><a href="faq.html">FAQ</a></li>
<li class="syllabus"><a href="syllabus.html">Syllabus</a></li>
<li class="topics"><a href="topics.html">Topics</a></li>
<li class="people"><a href="people.html">People</a></li>
</ul>
</div>
</header>
<div id="header">
<h1 class="title">make: Special considerations for Windows</h1>
<h4 class="author"><em>Shaun Jackman, Dean Attali, Jenny Bryan</em></h4>
</div>
<p><em>2015-11-17 NOTE: This year we made R packages before we used Make. The hope is, therefore, that the Make that ships with Rtools is all we need. So hopefully we can ignore this?</em></p>
<p>back to <a href="automation00_index.html">All the automation things</a></p>
<div id="install-make-on-microsoft-windows" class="section level3">
<h3>Install <code>make</code> on Microsoft Windows</h3>
<p>We are still working out the best way to install <code>make</code> on Windows. Our current best recommendation is to install <em>msysGit</em>, which includes <code>make</code> as well as <code>git</code> and <code>bash</code>.</p>
<p>Download and <a href="https://github.com/msysgit/msysgit/releases/download/Git-1.9.4-preview20140929/msysGit-netinstall-1.9.4-preview20140929.exe">install msysGit</a>. The two software packages <a href="https://github.com/msysgit/msysgit">msysGit</a> and <a href="http://msysgit.github.io/">Git for Windows</a> are related. Both install <code>git</code> and <code>bash</code>, but only <em>msysGit</em> installs <code>make</code>. The programs installed by <em>msysGit</em> are found by default in <code>C:\msysGit\bin</code>. Here is the <a href="https://github.com/msysgit/msysgit/tree/master/bin">complete list</a> of programs included with <em>msysGit</em>. For this activity, RStudio needs to be able to find in your <code>PATH</code> environment variable the program <code>make</code>, the <a href="git09_shell.html">shell</a> <code>bash</code>, other utilities like <code>rm</code> and <code>cp</code>, and <code>Rscript</code>.</p>
<p>Here is another alternative for installing <code>make</code> alone:</p>
<ul>
<li>Go to the <a href="http://gnuwin32.sourceforge.net/packages/make.htm">Make for Windows</a> web site</li>
<li>Download the <a href="http://gnuwin32.sourceforge.net/downlinks/make.php">Setup program</a></li>
<li>Install the file you just downloaded and copy to your clipboard the directory in which it is being installed
<ul>
<li>FYI: The default directory is <code>C:\Program Files (x86)\GnuWin32\</code></li>
</ul></li>
<li>You now have <code>make</code> installed, but you need to tell Windows where to find the program. This is called <a href="https://www.google.ca/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=windows%20update%20path%20variable">updating your <code>PATH</code></a>. You will want to update the <code>PATH</code> to include the <code>bin</code> directory of the newly installed program.</li>
</ul>
</div>
<div id="update-your-path" class="section level3">
<h3>Update your <code>PATH</code></h3>
<p>If you installed <code>Make for Windows</code> (as opposed to the <code>make</code> that comes with <code>Git for Windows</code>), you still need to update your <code>PATH</code>.</p>
<p>These are the steps on Windows 7 (we don’t have such a write-up yet for Windows 8 – feel free to send one!):</p>
<ul>
<li>Click on the Windows logo</li>
<li>Right click on <em>Computer</em></li>
<li>Select <em>Properties</em></li>
<li>Select <em>Advanced System Settings</em></li>
<li>Select <em>Environment variables</em></li>
<li>Select the line that has the <code>PATH</code> variable. You may have to scroll down to find it</li>
<li>Select <em>Edit</em></li>
<li>Go to the end of the line and add a semicolon <code>;</code>, followed by the path where the program was installed, followed by <code>\bin</code>.
<ul>
<li>Typical example of what one might add: <code>;C:\Program Files (x86)\GnuWin32\bin</code></li>
</ul></li>
<li>Click Okay and close all the windows that you opened</li>
<li>Quit RStudio and open it again.</li>
<li>You should now be able to use <code>make</code> from RStudio and the command line</li>
</ul>
</div>
<div id="issues-we-are-still-clarifying" class="section level3">
<h3>Issues we are still clarifying</h3>
<p>See <a href="https://github.com/STAT545-UBC/Discussion/issues/58">issue 58</a> for what seems to be the most comprehensive statement of the Windows situation.</p>
<p>What are the tricky bits?</p>
<ul>
<li>Getting the same <code>Makefile</code> to “work” via RStudio’s Build buttons/menus and in the <a href="git09_shell.html">shell</a>. And, for that matter, which <a href="git09_shell.html">shell</a>? Git Bash or ???</li>
<li>Ensuring <code>make</code>, <code>Rscript</code>, <code>pandoc</code>, <code>rm</code>, etc. can be found = updating <code>PATH</code>.</li>
<li>Getting <code>make</code> to use the correct <a href="git09_shell.html">shell</a>.
<ul>
<li>See <a href="https://github.com/STAT545-UBC/Discussion/issues/54">issue 54</a> on the Discussion repo.</li>
</ul></li>
</ul>
<p>back to <a href="automation00_index.html">All the automation things</a></p>
</div>
<div class="footer">
This work is licensed under the <a href="http://creativecommons.org/licenses/by-nc/3.0/">CC BY-NC 3.0 Creative Commons License</a>.
</div>
</div>
<script>
// add bootstrap table styles to pandoc tables
$(document).ready(function () {
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
});
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
</body>
</html>