我今天设置了一个Ubuntu VM只是为了在Ubuntu上构建Festival(之前从未运行过)然后我做了以下设置
sudo apt-get install build-essential
为了测试g ++,我编写了一个示例hello world并使用g ++编译它并运行它并按预期工作。
使用
tar -zxvf *.tar.gz
cd speech_tools ./configure make
但是返回时会出现以下错误
/lib -leststring -lcurses -ldl -lncurses -lm -lstdc++ -lgcc
/usr/bin/ld: cannot find -lcurses
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[1]: *** [ch_lab] Error 1
make: *** [main] Error 2
有人可以告诉我我缺少的东西,作为Ubuntu或任何其他Unix平台的新手,我可能错过了一些重要的配置,之前我已经使用cygwin在我的Windows机器上成功建立了节日。请帮我一个急。
非常感谢 Mubashar
答案 0 :(得分:3)
您可能需要安装libncurses
的开发包。尝试
sudo apt-get install libncurses5-dev