gpt4 book ai didi

c++ - Ubuntu 上的问题构建节(文本到语音)

转载 作者:行者123 更新时间:2023-11-30 03:08:20 25 4
gpt4 key购买 nike

我今天设置了一个 Ubuntu VM 只是为了构建 Festival在 Ubuntu 上(我以前从未运行过)然后我做了以下设置

  1. 在终端窗口上,我写了以下内容来安装 GNU C++ 编译器

    sudo apt-get install build-essential
  2. 为了测试 g++,我编写了一个示例 hello world 并使用 g++ 编译并运行它,它按预期工作。

  3. 我下载了 festival download page 上列出的所有文件

  4. 使用

    解压到主目录(~)
    tar -zxvf *.tar.gz
  5. 然后写了下面3条命令来配置和制作speech_tools

    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 机器上成功构建了节日。

最佳答案

您可能需要为 libncurses 安装开发包。尝试

sudo apt-get install libncurses5-dev

关于c++ - Ubuntu 上的问题构建节(文本到语音),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5101903/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com