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
|
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
|
-
+
-
+
+
+
-
+
+
+
-
+
+
+
+
-
+
+
+
+
-
+
-
+
|
# The Situation
Although the core software underlying the PiDP-8/I software distribution is broadly portable, the dominance of Raspbian in the Raspberry Pi space means the PiDP-8/I software doesn't get tested and maintained for all operating systems its individual components are known to work on.
This article documents what it known to work, where, today.
# Raspbian, Debian, Ubuntu
The current stable release of the PiDP-8/I software distribution was tested with the [Raspbian Stretch Lite](https://www.raspberrypi.org/blog/raspbian-stretch/) distribution. Prior releases were built atop the [Raspbian Jessie Lite](https://www.raspberrypi.org/blog/raspbian-jessie-is-here/) distribution.
Raspbian-based OSes like [pipaOS](http://pipaos.mitako.eu/) should also work, but this is not tested by the project's current developers.
The project's primary maintainer does occasionally build the software on his Ubuntu laptop as well. It works fine as long as you're not using any of the features that require the PiDP-8/I front panel hardware.
The project's primary maintainer occasionally builds the software on a Debian laptop or in a Debian VM as well. It works fine, excepting of course that you lose the features that require the PiDP-8/I front panel hardware. It's also been tested on an Ubuntu 18.04 LTS VM.
Because of that success, we expect it will run on any other Debian derivative, too, though this is not yet tested.
Because of that success, we expect it will run on any other Debian derivative, too.
The configuration script and documentation advice on installing third-party dependencies is given in terms of Debian type OSes. That makes using the PiDP-8/I software distribution on this class of OSes the most straightforward.
# Non-Debian Linuxes
Non-Debian type Linux based OSes like [openSuSE for the Pi 3](https://en.opensuse.org/HCL:Raspberry_Pi3) or [CentOS for the Pi 3](https://wiki.centos.org/SpecialInterestGroup/AltArch/Arm32/RaspberryPi3) are likely to require local workarounds to get the software to run. The mechanism for driving the front panel hardware is also likely to require changes on these OSes.
If you manage it, we would be happy to examine your [patches](/doc/trunk/HACKERS.md) for possible inclusion in the next version of the software.
If you try it and fail, we would still welcome your [bug reports](https://tangentsoft.com/pidp8i/bugs) or discussion on the [mailing list](https://groups.google.com/forum/#!forum/pidp-8).
If you try it and fail, we would still welcome your [bug reports](/bugs). You can discuss your ideas in [our forum](/forum) or on the users' [mailing list](https://groups.google.com/forum/#!forum/pidp-8).
# macOS
This project's current primary maintainers use macOS at home, so the PiDP-8/I software is frequently built and tested on macOS while we are working on features that do not require the PiDP-8/I front panel hardware.
The PiDP-8/I software is frequently built and tested on macOS while its primary maintainer is working on features that do not require the PiDP-8/I front panel hardware. (Why? Because it builds 3-12 times faster than on a Pi 3, depending on what has to be built!)
Why? Because it builds 3-12 times faster than on a Pi 3, depending on what has to be built!
The third party dependency advice given by the configure script and in the documentation needs to be adjusted. We recommend getting such things from [Homebrew](https://brew.sh/).
# FreeBSD
Because of our regular testing on macOS, the port to FreeBSD was straightforward. On the FreeBSD 11.2 system we did the work on, we had to install the following non-core packages:
Because the software builds and runs on macOS, it *should* also build and run on FreeBSD, but this has not yet been tested.
$ sudo pkg install coreutils gmake perl5 python py27-pip
Avoid the temptation to install the `python3` package instead: this package follows the Python project's recommendation to install the interpreter only as "`python3`" to avoid conflicts with Python 2. We try to write our Python scripts to work on both versions, but until we [cut over to requiring Python 3 only](/tktview?name=26283b9b30), we can't change our script shebang lines to work with this package.
It is expected that the code that drives the PiDP-8/I front panel hardware will not work on [FreeBSD for the Raspberry Pi](https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi). We have an [open feature ticket](/tktview?name=856225858e) for that, if you want to work on it.
# Windows
The PiDP-8/I software's build system requires a POSIX type environment. That gives you two major choices for building the simulator on Windows.
## Cygwin
This works, and appears to work *well* besides.
You will have to install the `libncurses-devel` and `python2-pip` packages as well as standard Unix build tools: GCC, GNU Make, etc. Having done all that, the software will build and run.
I most recently tested this on 64-bit Windows 10 running Cygwin 2.9.0.
## Windows Subsystem for Linux
You'd think this would work because the default Linux implementation for Windows 10's WSL feature is Ubuntu, and it is known to build and run the software easily, since Ubuntu and Raspbian are so closely related. Alas, it does not.
You'd think this would work because the default Linux implementation for Windows 10's WSL feature is Ubuntu, and this software is known to build and run under Ubuntu easily, since it's closely related to Raspbian. Alas, it does not.
The primary problem is that WSL's terminal handling is [extremely weak](https://github.com/Microsoft/WSL/issues/1001), and has been so since the start. This breaks a broad swath of software and is thus well known as a major weakness of WSL. It breaks at least three different things in the PiDP-8/I software distribution:
1. `mkos8` depends on one process being able to take control of another's terminal I/O. Currently — November 2017 — `mkos8` gets stuck early on waiting for a reply to the OS/8 `BUILD` command and eventually times out and dies. Copying over pre-built OS/8 media doesn't help because of the other problems below.
1. `os8-run` depends on one process being able to take control of another's terminal I/O. Currently — November 2017 — `os8-run` gets stuck early on waiting for a reply to the OS/8 `BUILD` command and eventually times out and dies. Copying over pre-built OS/8 media doesn't help because of the other problems below.
2. `pidp8i-sim` does slightly fancy things with its terminal interface between the emulated CPU and the host OS, which is enough to run into this WSL weakness. The underlying host will send something out to its terminal and you won't see it in the WSL terminal until you hit Enter a few times; that kind of thing.
3. The PiDP-8/I simulator normally runs under GNU `screen`, which is one of the [known-broken programs under WSL](https://github.com/Microsoft/WSL/issues/1001).
Because Microsoft has not fixed this class of bug despite the many things that fail as a result, it calls into question how much longer Microsoft will let the problems remain unfixed.
|