我正在尝试从此git repo安装ccurl-cli: https://github.com/iotaledger/ccurl/tree/master/src/cli
在README.md之后,出现此错误:
[ 10%] Linking C executable ccurld
/usr/bin/ld: cannot find -lstatic
collect2: error: ld returned 1 exit status
CMakeFiles/ccurld.dir/build.make:83: recipe for target 'ccurld' failed
make[2]: *** [ccurld] Error 1
CMakeFiles/Makefile2:83: recipe for target 'CMakeFiles/ccurld.dir/all' failed
make[1]: *** [CMakeFiles/ccurld.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
我已经建立了ccurl,并以这种方式将其添加到库路径中:
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
LD_LIBRARY_PATH=/home/dario/ccurl
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
我在任何地方都找不到libstatic.a(-lstatic)。 仅在文件ccurl / src / cli / CMakeFiles / ccurld.dir / link.txt
中提及/ usr / bin / cc -rdynamic -Wl,-lpthread CMakeFiles / ccurld.dir / ccurld.o -o ccurld -lstatic