【问题标题】:Problem with the compiling of the STLport under Snow LeopardSnow Leopard下编译STLport的问题
【发布时间】:2011-04-08 07:36:05
【问题描述】:

我正在尝试在 Snow Leopard 下构建最新版本的 stlprot。

我的编译步骤:

./configure
sudo make && make check

make && make check 工作正常。 出现问题,如果我调用“sudo make install”,我会收到错误:

/bin/sh: /usr/local/include/stlport: No such file or directory
Can't create /usr/local/include/stlport
make[1]: *** [install-headers] Error 1
make: *** [install] Error 2

有人遇到过类似的stlport问题吗?

PS 我的系统规格: 雪豹10.6.4 gcc 版本:gcc 版本 4.2.1(Apple Inc. build 5664)

【问题讨论】:

    标签: c++ stlport


    【解决方案1】:

    只是一个疯狂的猜测:也许他们正在执行“mkdir /usr/local/include/stlport”,没有“-p”开关并且 /usr/local/include 还不存在。这将触发没有这样的文件或目录错误。尝试在“sudo make install”之前运行它:

    sudo mkdir -p /usr/local/include
    

    或者甚至可以一路走下去:

    sudo mkdir -p /usr/local/include/stlport
    

    【讨论】:

    • 手动添加所需文件夹已解决问题。但是我在测试时遇到了另一个错误(使用 make check 形成 STLport/build/test/unit):make: *** [check-stldbg] Segmentation fault
    猜你喜欢
    • 1970-01-01
    • 2010-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-23
    • 2010-12-01
    • 2011-01-18
    • 2011-06-12
    相关资源
    最近更新 更多