9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.6k stars 318 forks source link

Cant use 9l -- ld cannot find -l9 #631

Closed OwOday closed 9 months ago

OwOday commented 9 months ago

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
dancrossnyc commented 9 months ago

Hmm. Is $PLAN9 set?

OwOday commented 9 months ago

Seems so!

$ pwd
/home/user/plan9port
$ echo $PLAN9
/home/user/plan9port
OwOday commented 9 months ago

Welp, re-running INSTALL worked?

dancrossnyc commented 9 months ago

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