This discussion is archived
0 Replies Latest reply: Apr 17, 2013 2:32 AM by 1003550 RSS

Error coming while installing Berkeley database for IOS Device.

1003550 Newbie
Currently Being Moderated
Hi I want to install berkeley db in my MAC. My Xcode version is 4.5.2. I downloaded db-5.3.21(Berkeley) from oracle site.I installed command line tool for xcode. I installed berkeley db in my MAC for iPhoneSimulator. Where as for iPhone device I am unable to install. I am following below link for installing the berkeley db.

When I am installing berkeley db for IOS device it is showing following error.

checking for arm-apple-darwin11.4.2-sh... no checking for sh... /bin/sh checking for a BSD-compatible install... /usr/bin/install -c checking for arm-apple-darwin11.4.2-cc... /Applications/ checking whether the C compiler works... no configure: error: in /Users/celstra/rajaramesh/db-5.3.21/build_unix': configure: error: C compiler cannot create executables See config.log' for more details

............................... The error is telling that C compiler cannot create executables... But for iPhonesimulator it is not showing the error...

Steps performed for installing Berkeley database for IOS device.

export DEV_iOS=/Developer/Platforms/iPhoneOS.platform/Developer
export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS6.0.sdk
export COMPILER_iOS=${DEV_iOS}/usr/bin
export CC=${COMPILER_iOS}/gcc
export CXX=${COMPILER_iOS}/g++

export CFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
-no-cpp-precomp -mthumb -isysroot $SDKROOT "
export CXXFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
-no-cpp-precomp -mthumb -isysroot $SDKROOT "

//export CPP=”/usr/bin/cpp ${CPPFLAGS}”
export LD=${COMPILER_iOS}/ld
export AR=${COMPILER_iOS}/ar
export AS=${COMPILER_iOS}/as
export NM=${COMPILER_iOS}/nm
export RANLIB=${COMPILER_iOS}/ranlib

../dist/configure --host=arm-apple-darwin9\
--prefix=$SDKROOT ...   

Same steps i performed for iPHONESIMULATOR. But at that time c complier works fine. But while i am try to install for IOS device it is showing above error.

Can we need any license software for this installation. Could any one please provide exact document regarding installation for IOS device.

Any advice would be appreciated.

Edited by: 1000547 on Apr 17, 2013 12:58 AM

Edited by: 1000547 on Apr 17, 2013 1:03 AM

Edited by: 1000547 on Apr 17, 2013 2:31 AM


  • Correct Answers - 10 points
  • Helpful Answers - 5 points