2

我已经通过 svn 下载了 FFMPEG,并将气体预处理器放入 usr/local/bin。但是,当我尝试将以下代码发布到终端时,它会说:-bash: ./configure: No such file or directory

这是代码:

./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk --enable-cross-compile --target-os=darwin --arch=arm --cpu=arm1176jzf-s -- disable-pic --enable-gpl --enable-postproc --disable-debug --disable-stripping --enable-avfilter --enable-avfilter-lavf --extra-cflags='-arch armv6' --extra- ldflags='-arch armv6'

我正在使用雪豹 10.6.1。我究竟做错了什么?

4

2 回答 2

1

有时,您尝试运行的 shell 脚本在文件顶部有错误的 hashbang 路径(然后会正确报告,但会模棱两可地作为丢失的文件)。打开配置脚本并检查它试图运行的路径。

例如,看看这个配置脚本的顶部:

[on mymachine in directory sqsh-2.1.5]$ head -3 configure
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.

如果由于某种原因/bin/sh不存在,您将收到文件未找到错误。

于 2009-12-20T03:57:50.170 回答
0

错误是它没有在 shell 的当前目录中找到“配置”。运行此程序时,您当前的工作目录是什么?

于 2009-12-19T19:42:42.887 回答