Changes in chapter08/expect.xml [1fde756b:6bced9f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/expect.xml
r1fde756b r6bced9f 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 3 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ … … 49 49 <title>Installation of Expect</title> 50 50 51 <para>Expect needs PTYs to work. Verify that the PTYs are working52 properly inside the chroot environment by performing a simple53 test:</para>54 55 <screen><userinput remap="test">python3 -c 'from pty import spawn; spawn(["echo", "ok"])'</userinput></screen>56 57 <para>This command should output <computeroutput>ok</computeroutput>.58 If, instead, the output includes <computeroutput>OSError: out of pty59 devices</computeroutput>, then the environment is not set up for proper60 PTY operation. You need to exit from the chroot environment, read61 <xref linkend='ch-tools-kernfs'/> again, and ensure the62 <systemitem class="filesystem">devpts</systemitem> file system (and63 other virtual kernel file systems) mounted correctly. Then reenter64 the chroot environment following <xref linkend='ch-tools-chroot'/>.65 This issue needs to be resolved before continuing, or the test suites66 requring Expect (for example the test suites of Bash, Binutils, GCC,67 GDBM, and of course Expect itself) will fail catastrophically, and other68 subtle breakages may also happen.</para>69 70 51 <para>Prepare Expect for compilation:</para> 71 52 … … 102 83 <screen><userinput remap="make">make</userinput></screen> 103 84 85 <important> 86 <para>The test suite for Expect is considered critical. 87 Do not skip it under any circumstances.</para> 88 </important> 89 104 90 <para>To test the results, issue:</para> 105 91 106 92 <screen><userinput remap="test">make test</userinput></screen> 93 94 <para>If any test fails with the message 95 <quote><computeroutput>The system has no more ptys. Ask your system 96 administrator to create more</computeroutput></quote>, it indicates 97 you've not mounted the 98 <systemitem class="filesystem">devpts</systemitem> file system 99 correctly. You need to read 100 <xref linkend='ch-tools-kernfs'/> again and ensure the 101 <systemitem class="filesystem">devpts</systemitem> file system (and 102 other virtual kernel file systems) mounted correctly. 103 This issue needs to be resolved before continuing.</para> 107 104 108 105 <para>Install the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.