自制??错误:选项 --no-user-cfg 无法识别

自制??错误:选项 --no-user-cfg 无法识别

使用我没有技能的自制软件,我在雪豹上更新cmake(作为安装avidemux的一部分......)

 $brew -v upgrade cmake 

一切正常通过

Verifying cmake--markupsafe-0.23.tar.gz checksum

然后我在以下行之后收到错误:

==> python -c import setuptools... --no-user-cfg install --prefix=/private/tmp/cmake-lwlJTD/cmake-3.1.0/sphinx --single-version-externally-managed --record=installed.txt
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: -c --help [cmd1 cmd2 ...]
   or: -c --help-commands
   or: -c cmd --help

error: option --no-user-cfg not recognized

不幸的是,正如您所看到的,某些命令似乎被省略了,所以我不太知道 --no-user-config 是什么选项。谷歌搜索给出了各种不相关的结果。

我以为是python的问题:

$brew -v upgrade python
Homebrew 0.9.5
Error: python 2.7.9 already installed
Kernel.exit

我可以做什么来解决这个问题?

附录:详细列表中的一些输出,我对此一无所知。

==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 8879b432be43507f2178cfe1628edc5f48554d42
Last commit: 56 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.6.8-i386
Xcode: 3.2.6
CLT: N/A
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM-GCC: build 2335
Clang: 1.7 build 77
MacPorts/Fink: /opt/local/bin/port
X11: 2.7.7 => /opt/X11
System Ruby: 1.8.7-p358
Perl: /opt/local/bin/perl => /opt/local/bin/perl5.12
Python: /usr/bin/python
Ruby: /Users/myname/.rvm/rubies/ruby-1.9.3-p547/bin/ruby
Java: 1.6.0_65
==> ENV
HOMEBREW_CC: gcc-4.2
HOMEBREW_CXX: g++-4.2
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/xz/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.6
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/3.2.6:/usr/local/opt/xz/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: cmake 3.1.0 did not build
Logs:
     /Users/myname/Library/Logs/Homebrew/cmake/01.python

These open issues may also help:
cmake reports: CMake Error: Could not find CMAKE_ROOT !!! (https://github.com/Homebrew/homebrew/issues/35888)
cmake 3.1.1 (https://github.com/Homebrew/homebrew/pull/36151)
cmake builds fail on CLT-only with --env=std (https://github.com/Homebrew/homebrew/issues/29101)

ln -s ../Cellar/cmake/3.0.0/bin/ctest ctest
ln -s ../Cellar/cmake/3.0.0/bin/cpack cpack
ln -s ../Cellar/cmake/3.0.0/bin/cmakexbuild cmakexbuild
ln -s ../Cellar/cmake/3.0.0/bin/cmake cmake
ln -s ../Cellar/cmake/3.0.0/bin/ccmake ccmake
ln -s ../../Cellar/cmake/3.0.0/share/doc/cmake cmake
ln -s ../Cellar/cmake/3.0.0/share/cmake cmake
ln -s ../../Cellar/cmake/3.0.0/share/aclocal/cmake.m4 cmake.m4

答案1

brew install cmake --without-docs

这对我来说很有效。构建特定的brew包的选项通过运行显示brew options <package>

brew options cmake

相关内容