Search code examples
installationxcrunxnu

Always have much xcrun error in xnu installing(OSX 10.8.3)


i searched much websites to install the xnu kernel. however, there are some errors when i was installing xnu.

Xcode version: 4.6 (installed command line tool)


XNU version: xnu-2050.22.13
dtrace version: dtrace-96

here is the ERRORS:

xcrun: error: unable to find utility "ctfconvert", not a developer tool or in PATH
xcrun: error: unable to find utility "ctfmerge", not a developer tool or in PATH

i used the "make install" to install the dtrace, but it also showing the error. Please help me


Solution

  • You are missing dependencies. The long story short version, is you need to first get and make dtrace-tools:

    $ curl http://opensource.apple.com/tarballs/dtrace/dtrace-96.tar.gz > dt.tar.gz
    $ tar zxvf dt.tar.gz
    $ cd dtrace-96
    $ mkdir -p obj sym dst
    $ xcodebuild install -target ctfconvert -target ctfdump -target ctfmerge \
    ARCHS="i386 x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym \
    DSTROOT=$PWD/dst