> I searched and didn't find a canonical way to install mercurial and
> golang on plan9. Can someone point to me some instructions? I see from
> the golang build dashboard[1] that golang on plan9 is reasonably
> healthy.

As Skip said, Python 2.7.6 and Mercurial 2.8.2 are available
as a binary package on http://www.9legacy.org/download.html.

If you want to compile from sources, you will need to
get the APE changes from Jeff Sickel. If you are running
Plan 9 from Bell Labs, you can apply the following patch:

http://www.9legacy.org/9legacy/patch/ape-jas.diff

Here is an excerpt from my notes to compile Python on Plan 9:

# clone the repositories from Unix

hg clone -r 2.8.2 http://selenic.com/hg
hg clone -b 2.7-plan9 https://bitbucket.org/jas/cpython

# copy the directories to Plan 9

mkdir /sys/src/cmd/cpython
dircp /mnt/term/home/djc/tmp/cpython /sys/src/cmd/cpython

mkdir /sys/src/cmd/hg
dircp /mnt/term/home/djc/tmp/hg /sys/src/cmd/hg

# get the ape changes from Jeff Sickel

hget http://www.9legacy.org/9legacy/patch/ape-jas.diff | ape/patch -p0

# build ape

cd /sys/src/ape && mk nuke && mk install && mk clean

# build python

cd /sys/src/cmd/cpython
mk stage
mk install

# archive

disk/mkfs -a -s dist /sys/lib/sysconfig/proto/allproto > /tmp/cpython.mkfs

# extract

disk/mkext -d / < /tmp/cpython.mkfs

-- 
David du Colombier

Reply via email to