I spend more time setting up the environment than doing the damn work when I get there!
There was once a golden age where I could say to someone "I need a machine with Apache and Postgresql and CGI enabled for a domain foo.com" and they would email me when it was working. Happy days, but nothing to blog about!
Ok so now I have a plan9port from Mercurial and it doesn't have some cmds built like awk and others I've not even looked at.
First off is I can't build the awk because I don't have mk and I can't build mk because I don't have mk!
Luckily VitaNuova have their source tree available and for the moment the source tree is this file but it is referenced by date.
To make it work you have to unpack it in /usr and then I couldn't build it anyway. Aha but mk is in /usr/inferno/Linux/386/bin/mk and runs so I copied it to /usr/local/bin/mk
cd /usr/local/plan9/src/cmd/awk
which now fails with
warning: skipping missing include file: /src/mkhdr: No such file or directory
warning: skipping missing include file: /src/mkone: No such file or directory
because of <$PLAN9/src/mkhdr
even if $PLAN9 is set so the solution is
PLAN9=$PLAN9 mk
but more joy
9 yacc -S -d -v awkgram.y
/usr/local/plan9/bin/9: line 17: exec: yacc: not found
mk: 9 yacc -S ... : exit status=exit(127)
again
cp /usr/inferno/Linux/386/bin/yacc /usr/local/bin/
PLAN9=$PLAN9 mk
9 yacc -S -d -v awkgram.y
conflicts: 42 shift/reduce, 83 reduce/reduce
9c re.c
9c lex.c
9c main.c
9c parse.c
9c maketab.c
9c tran.c
9c lib.c
9c run.c
9c y.tab.c
9l -o o.maketab maketab.o
/usr/bin/ld: cannot find -l9
collect2: ld returned 1 exit status
mk: 9l -o o.maketab maketab.o : exit status=exit(1)
time to download http://swtch.com/plan9port/plan9port.tgz ! and
apt-get install xorg-dev
Need to get 14.7MB of archives.
After this operation, 47.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
No comments:
Post a Comment