9fans/plan9port

Cant use 9l -- ld cannot find -l9

OwOday opened this issue · 4 comments

OwOday commented

Hi I can't link a simple hello world after compiling with 9c

$ 9l -o prog hw.o
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
/usr/sbin/ld: cannot find -l9: No such file or directory
collect2: error: ld returned 1 exit status

Hmm. Is $PLAN9 set?

OwOday commented

Seems so!

$ pwd
/home/user/plan9port
$ echo $PLAN9
/home/user/plan9port
OwOday commented

Welp, re-running INSTALL worked?

Huh.... Well, glad to hear it's working!