aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/ed-inst.xml
blob: 41f2545bcc54d90fade4616402f9fed09d3fff28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<sect2>
<title>Installation of Ed</title>

<para>Install Ed by running the following commands:</para>

<para><screen><userinput>cp buf.c buf.c-temp &amp;&amp;</userinput>
<userinput>sed 's/int u/int u, sfd/' buf.c-temp | \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;sed '/.*\*mktemp.*/d' | \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;sed 's/.*if (mktemp.*/  sfd = mkstemp(sfn);\</userinput>
<userinput>&nbsp;&nbsp;&nbsp;if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' &gt; buf.c</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>
<userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>

</sect2>