阅读量:2
go 编译ollama的时候报错:open /dev/null: no such file or directory
github.com/xtgo/set: /root/work/go/pkg/tool/linux_amd64/compile: open /dev/null: no such file or directory
gonum.org/v1/gonum/blas/gonum: /root/work/go/pkg/tool/linux_amd64/compile: open /dev/null: no such file or directory
vendor/golang.org/x/text/transform: /root/work/go/pkg/tool/linux_amd64/compile: open /dev/null: no such file or directory
golang.org/x/text/transform: /root/work/go/pkg/tool/linux_amd64/compile: open /dev/null: no such file or directory
syscall: /root/work/go/pkg/tool/linux_amd64/asm: open /dev/null: no such file or directory
解决方法
创建/dev/null
尝试直接手工创建
mknode -m 666 /dev/null c 1 3
创建失败,说是没权限。
用了另外一种办法
把FreeBSD系统的null cp到jammy里
cd /dev cp null /compat/ubuntu/dev/ # 权限改成666 chmod 666 /compat/ubuntu/dev/null