-
-
Save microdog/11141741 to your computer and use it in GitHub Desktop.
Log of installing Pintos on CentOS 6.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 sudo yum install make conf automake gcc g++ | |
3 sudo yum install vim | |
4 git clone http://cs140.stanford.edu/pintos.git | |
6 sudo yum install git | |
7 git clone http://cs140.stanford.edu/pintos.git | |
9 cd pintos/ | |
10 sudo bash -c 'echo -e "\nexport PINTOSDIR="`pwd`"/\n" >> /etc/profile' && source /etc/profile | |
12 echo $PINTOSDIR | |
13 cd ../ | |
14 ls | |
15 wget http://sourceforge.net/projects/bochs/files/bochs/2.2.6/bochs-2.2.6.tar.gz/download -O bochs-2.2.6.tar.gz | |
16 ls | |
17 cd sr | |
18 cd pintos/src/ | |
19 ls | |
20 cd misc/ | |
21 ls | |
22 sudo env SRCDIR=/home/microdog PINTOSDIR=/home/microdog/pintos DSTDIR=/usr/local sh ./bochs-2.2.6-build.sh | |
24 sudo yum install patch | |
25 sudo yum install g++ | |
26 sudo yum install gcc-g++ | |
27 yum search g++ | |
28 yum search c++ | |
29 sudo yum install gcc-c++ | |
30 sudo env SRCDIR=/home/microdog PINTOSDIR=/home/microdog/pintos DSTDIR=/usr/local sh ./bochs-2.2.6-build.sh | |
31 yum search xorg | |
32 sudo yum install libX11-devel | |
33 sudo env SRCDIR=/home/microdog PINTOSDIR=/home/microdog/pintos DSTDIR=/usr/local sh ./bochs-2.2.6-build.sh | |
35 sudo yum install libXt-devel | |
36 sudo env SRCDIR=/home/microdog PINTOSDIR=/home/microdog/pintos DSTDIR=/usr/local sh ./bochs-2.2.6-build.sh | |
37 yum search curses | |
38 sudo yum install ncurses ncurses-devel | |
39 sudo env SRCDIR=/home/microdog PINTOSDIR=/home/microdog/pintos DSTDIR=/usr/local sh ./bochs-2.2.6-build.sh | |
40 cd ../utils/ | |
41 ls | |
42 sudo ln backtrace pintos pintos-gdb pintos-mkdisk pintos-set-cmdline Pintos.pm /usr/local/bin/ | |
43 cd ../misc/ | |
44 sudo ln gdb-macros /usr/local/bin/ | |
45 vim ../utils/pintos-gdb | |
46 pintos-gdb | |
47 gdb | |
48 sudo yum install gdb | |
49 pintos-gdb | |
50 cd ../utils/ | |
51 ls | |
52 make | |
61 vim squish-pty.c | |
62 vim squish-unix.c | |
63 make | |
64 sudo ln squish-pty /usr/local/bin/ | |
65 cd ../threads/ | |
66 make | |
69 cd build/ | |
71 ls | |
72 pintos -- run alarm-multiple | |
73 history > ~/log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/utils/squish-pty.c b/src/utils/squish-pty.c | |
index e81043d..420fa9f 100644 | |
--- a/src/utils/squish-pty.c | |
+++ b/src/utils/squish-pty.c | |
@@ -7,7 +7,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
-#include <stropts.h> | |
+//#include <stropts.h> | |
#include <sys/ioctl.h> | |
#include <sys/stat.h> | |
#include <sys/time.h> | |
@@ -285,12 +285,14 @@ main (int argc __attribute__ ((unused)), char *argv[]) | |
/* System V implementations need STREAMS configuration for the | |
slave. */ | |
+ /* | |
if (isastream (slave)) | |
{ | |
if (ioctl (slave, I_PUSH, "ptem") < 0 | |
|| ioctl (slave, I_PUSH, "ldterm") < 0) | |
fail_io ("ioctl"); | |
} | |
+ */ | |
/* Arrange to get notified when a child dies, by writing a byte | |
to a pipe fd. We really want to use pselect() and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/utils/squish-unix.c b/src/utils/squish-unix.c | |
index 805205b..6188011 100644 | |
--- a/src/utils/squish-unix.c | |
+++ b/src/utils/squish-unix.c | |
@@ -8,7 +8,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
-#include <stropts.h> | |
+//#include <stropts.h> | |
#include <sys/ioctl.h> | |
#include <sys/stat.h> | |
#include <sys/time.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment