./aconfigure:为ios 7编译pjsip时出现权限被拒绝错误

时间:2015-03-10 06:53:08

标签: ios pjsip

我正在尝试在Mac 10.10.1(Xcode 6.1)上为iOS编译PJSIP2.3。但是当我运行./configure-iphone时,我遇到了一些错误。

以下是终端显示的错误:

WifiMacBook:pjproject-2.3 apple$ ./configure-iphone
configure-iphone: DEVPATH is not specified, using /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
configure-iphone: IPHONESDK is not specified, choosing iPhoneOS7.0.sdk
configure-iphone: CC is not specified, choosing /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
configure-iphone: ARCH is not specified, choosing -arch armv7
configure-iphone: CXX is not specified, using /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
configure-iphone: calling ./aconfigure with env vars:
CC = /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CXX = /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
 CFLAGS = -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS7.0.sdk\"" -arch armv7 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
LDFLAGS = -O2 -arch armv7 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -framework AudioToolbox -framework Foundation
AR = /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -o
RANLIB = echo ranlib
./configure-iphone: line 147: ./aconfigure: Permission denied

我看到这个链接用于comping pjsip http://gaurav-iphone.blogspot.in/2011/09/compiling-pjsip.html

先谢谢。

2 个答案:

答案 0 :(得分:3)

授予您的pjsip目录

的完全权限

<强> chmod 777 *

然后在终端中键入以下命令,

<强> $ tr -d '\r' <configure-iphone> FILE.new

<强> $ rm configure-iphone

<强> $ mv FILE.new configure-iphone

  • 再次运行

<强> $ ./configure-iphone

乐意帮助所有人:)

答案 1 :(得分:0)

aconfigure可执行吗?尝试运行chmod -x aconfigure来解决这种情况。

它也可能是文件权限。