gpt4 book ai didi

c++ - 使用 MacPorts 构建 openCV 时出错

转载 作者:塔克拉玛干 更新时间:2023-11-03 08:00:55 24 4
gpt4 key购买 nike

我正在尝试使用 MacPorts 构建 openCV。我关注了this procedure .谁能帮我?谢谢。

这是输出:

--->  Computing dependencies for opencv..........................................................................
---> Dependencies to be installed: bzip2 cmake libidn gettext expat libiconv gperf ncurses ncursesw openssl zlib dirac cppunit autoconf help2man p5.12-locale-gettext perl5.12 m4 perl5 perl5 perl5 automake libtool faac faad2 ffmpeg XviD gmake lame libogg libsdl xorg-libXext pkgconfig glib2 xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 gdbm python_select readline sqlite3 python27 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 liboil
---> Installing bzip2 @1.0.6_0
**Error: Target org.macports.install returned: /usr/bin/tar: invalid option -- q
Try `/usr/bin/tar --help' for more information.**
Warning: the following items did not execute (for bzip2): org.macports.activate org.macports.install
**Error: Failed to install bzip2**
Log for bzip2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/main.log

Error: The following dependencies were not installed: bzip2 cmake libidn gettext expat libiconv gperf ncurses ncursesw openssl zlib dirac cppunit autoconf help2man p5.12-locale-gettext perl5.12 m4 perl5 perl5 perl5 automake libtool faac faad2 ffmpeg XviD gmake lame libogg libsdl xorg-libXext pkgconfig glib2 xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 gdbm python_select readline sqlite3 python27 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 liboil
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

最佳答案

您的/usr/bin/tar 程序有问题。它要么是古老的(来自比您正在运行的更早版本的 OS X),和/或您将其替换为 GNU tar(它应该是 BSD tar)。查看现有的 MacPorts 门票:

https://trac.macports.org/ticket/30969

https://trac.macports.org/ticket/31773

无论哪种方式,从您的备份恢复/usr/bin/tar,或者如果您没有备份,或者您的备份也包含错误的 tar,请重新安装操作系统。

关于c++ - 使用 MacPorts 构建 openCV 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7183335/

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