在安装 nix 时出现此错误。当我执行 make 时。
LD src/libstore/libnixstore.so
/usr/bin/ld: cannot find -lsqlite3
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
make: *** [src/libstore/libnixstore.so] Error 1
我已经将 LDFLAGS 设置为包含 libsqlite3.* 和 libbz2.* 的目录
更新:这里是 make V=1 的输出
Makefile:28: Makefile.config: No such file or directory
rm -f Makefile.config && ./config.status --quiet --file=Makefile.config
g++ -o /home/kapil/nix/src/nix-1.8/src/libstore/libnixstore.so -shared -Wl,--no-copy-dt-needed-entries src/libstore/build.o src/libstore/derivations.o src/libstore/gc.o src/libstore/globals.o src/libstore/local-store.o src/libstore/misc.o src/libstore/optimise-store.o src/libstore/pathlocks.o src/libstore/references.o src/libstore/remote-store.o src/libstore/store-api.o -lsqlite3 -lbz2 -Wl,-z,defs -Wl,-soname=libnixstore.so -Wl,-rpath,/home/kapil/nix/src/nix-1.8/src/libutil -Lsrc/libutil -lnixutil -Wl,-rpath,/home/kapil/nix/src/nix-1.8/src/boost/format -Lsrc/boost/format -lnixformat
/usr/bin/ld: cannot find -lsqlite3
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
make: *** [src/libstore/libnixstore.so] Error 1