Macos 无法安装avconv/libav

Macos 无法安装avconv/libav,macos,configure,libavcodec,libav,avconv,Macos,Configure,Libavcodec,Libav,Avconv,我没有幸在OSX小牛上安装libav。我什么都试过了 我遵循以下指南: 在完成macport依赖项检查(通过)后,我运行 ./configure \ --enable-gpl --enable-libx264 --enable-libxvid \ --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb \ --enable-nonfree --enable-libfaac \ --enable-libmp3l

我没有幸在OSX小牛上安装libav。我什么都试过了

我遵循以下指南:

在完成macport依赖项检查(通过)后,我运行

./configure \
--enable-gpl --enable-libx264 --enable-libxvid \
--enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb \
--enable-nonfree --enable-libfaac \
--enable-libmp3lame --enable-libspeex --enable-libvorbis --enable-libtheora --enable-libvpx \
--enable-libopenjpeg --enable-libfreetype --enable-doc --enable-gnutls --enable-shared
此操作失败,出现以下错误:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
ERROR: gnutls not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
libav-tools@libav.org mailing list or IRC #libav on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
错误:未找到gnutls

在运行configure之前,我已经在环境中添加了头文件的路径,但仍然没有成功

export CFLAGS="-I/opt/local/include -L/opt/local/lib"
export CXXFLAGS="-I/opt/local/include -L/opt/local/lib"

有人能帮忙吗

我和你犯了同样的错误。您需要安装gnutls

我在这里找到了一个指南:

此完整的命令列表适用于我(OSX 10.6):

您还可以尝试使用Brew()并通过以下方式安装gnutls:

 brew install gnutls
最后,第三种方法对我有效:

curl -O http://libav.org/releases/libav-10.1.tar.gz
tar xjf libav-10.1.tar.gz
cd libav-10.1
./configure
make install

享受吧

是否“brew安装libav”不足以满足您的需要?

重新安装后,它对我很有效:

使用以下命令从Mac上删除brew:
$ruby-e“$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/uninstall)“


使用:
$/usr/bin/ruby-e“$(curl-fsSL)再次安装它https://raw.githubusercontent.com/Homebrew/install/master/install)“

这给了我一个错误
错误:没有libav可用的公式。我mac osx 10.8.5上的m也为我工作
curl -O http://libav.org/releases/libav-10.1.tar.gz
tar xjf libav-10.1.tar.gz
cd libav-10.1
./configure
make install