alexr_rwx: (my fandom writes your software)
Alex R ([personal profile] alexr_rwx) wrote2004-09-06 01:42 am

ugliest hack possible

(while running sml, working on the Compilers project, on my local gentoo box...)


- CM.make();
[starting dependency analysis]
[scanning sources.cm]
[checking CM/x86-unix/sources.cm.stable ... not usable]
[/var/tmp/portage/smlnj-110.0.7/work/bin/ml-lex tiger.lex]
sh: line 1: /var/tmp/portage/smlnj-110.0.7/work/bin/ml-lex: No such file or directory

!* CM error: ML-Lex failed: /var/tmp/portage/smlnj-110.0.7/work/bin/ml-lex tiger.lex


elrond root # cd /var/tmp/portage/smlnj-110.0.7/
elrond smlnj-110.0.7 # which ml-lex
/usr/bin/ml-lex
elrond smlnj-110.0.7 # ls
temp
elrond smlnj-110.0.7 # mkdir work
elrond smlnj-110.0.7 # cd work/
elrond work # ln -s /usr/bin bin



... and did it work? Oh yes. Yes it did.
ext_110843: (my fandom writes your software)

[identity profile] oniugnip.livejournal.com 2004-09-06 10:06 am (UTC)(link)
Waal, the default installation of this thing smlnj (it's a programming language) on Gentoo Linux is very broken, and it expects to find things in a directory that doesn't exist... so what I did was make that directory be there, and be a link into a directory that does exist, where the things it wants to find actually are. Just sort of in a jury-rig sort of fashion... (earlier futzing had involved changing its other unreasonable expectations manually...)

... the life of the CS student is an exciting one indeed.

[identity profile] xphilega.livejournal.com 2004-09-06 11:22 am (UTC)(link)
:) :) :) All Greek to me, but impressive, nonetheless. :)