![/usr/bin/ld:找不到 -ll:没有此文件或目录](https://linux22.com/image/1029728/%2Fusr%2Fbin%2Fld%EF%BC%9A%E6%89%BE%E4%B8%8D%E5%88%B0%20-ll%EF%BC%9A%E6%B2%A1%E6%9C%89%E6%AD%A4%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95.png)
make -C expl
make[1]: Entering directory '/home/hitesh/myexpos/expl'
gcc -g -fcommon -w -c ltranslate.lex.c
gcc -g -fcommon -o ltranslate ltranslate.lex.o
make[1]: Leaving directory '/home/hitesh/myexpos/expl'
make -C spl
make[1]: Entering directory '/home/hitesh/myexpos/spl'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/hitesh/myexpos/spl'
make -C xfs-interface
make[1]: Entering directory '/home/hitesh/myexpos/xfs-interface'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/hitesh/myexpos/xfs-interface'
make -C xsm
make[1]: Entering directory '/home/hitesh/myexpos/xsm'
cc -g -o xsm lex.yy.o machine.o main.o simulator.o word.o memory.o registers.o tokenize.o disk.o debug.o exception.o '-ll'
/usr/bin/ld: cannot find -ll: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:14: xsm] Error 1
make[1]: Leaving directory '/home/hitesh/myexpos/xsm'
make: *** [Makefile:7: all] Error 2
当我尝试sudo apt-get install libl-dev
再次添加库时,错误是Unable to locate package libl-dev
。有人能帮我解决我的问题吗?
答案1
libfl-dev列表libl
:
/usr/include/FlexLexer.h
/usr/lib/x86_64-linux-gnu/libfl.a
/usr/lib/x86_64-linux-gnu/libfl.so
/usr/lib/x86_64-linux-gnu/libl.a
/usr/lib/x86_64-linux-gnu/pkgconfig/libfl.pc
/usr/share/doc/libfl-dev/NEWS.Debian.gz
/usr/share/doc/libfl-dev/README.md.gz
/usr/share/doc/libfl-dev/changelog.Debian.gz
/usr/share/doc/libfl-dev/copyright
因此该命令似乎是
sudo apt install libfl-dev