安装 Player 时“进行安装”时出错

安装 Player 时“进行安装”时出错

我想在 Ubuntu 平台上安装播放器。

  1. 我运行configure。这已成功完成。

  2. 随后运行时sudo make install,出现以下错误:

    Making install in replace
    make[1]: Entering directory `/home/khimya/player-2.1.2/replace'
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libplayercore -I../client_libs/libplayerc++ -I../client_libs/libplayerc     -g -O2 -MT poll.lo -MD -MP -MF ".deps/poll.Tpo" -c -o poll.lo poll.c; \
        then mv -f ".deps/poll.Tpo" ".deps/poll.Plo"; else rm -f ".deps/poll.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libplayercore -I../client_libs/libplayerc++ -I../client_libs/libplayerc -g -O2 -MT poll.lo -MD -MP -MF .deps/poll.Tpo -c poll.c  -fPIC -DPIC -o .libs/poll.o
    In file included from poll.c:26:
    replace.h:100: warning: ‘struct timespec’ declared inside parameter list
    replace.h:100: warning: its scope is only this definition or declaration, which is probably not what you want
    In **file included from poll.c:34:
    **/usr/include/unistd.h:275: error: two or more data types in declaration specifiers**
    poll.c: In function ‘poll’:**
    poll.c:79: warning: incompatible implicit declaration of built-in function ‘alloca’
    make[1]: *** [poll.lo] Error 1
    

有人能告诉我具体该怎么做吗?

make[1]: Leaving directory `/home/khimya/player-2.1.2/replace'
make: *** [install-recursive] Error 1

答案1

我在安装最新版本的 gnuplot 时遇到了同样的问题(我也遇到了“错误 2”)。事实上,我发现你的问题是为了寻找答案,而我通过使用而不是仅仅 sudo make install 因为 make install 我看到另一个问题中有人这样写而解决了这个问题...

我希望这对你有用...

相关内容