Skip to content

Instantly share code, notes, and snippets.

@tomwardill
Created August 5, 2011 14:25
Show Gist options
  • Select an option

  • Save tomwardill/1127647 to your computer and use it in GitHub Desktop.

Select an option

Save tomwardill/1127647 to your computer and use it in GitHub Desktop.
rb_fsevent fail install
gem install rb-fsevent
Fetching: rb-fsevent-0.4.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rb-fsevent:
ERROR: Failed to build gem native extension.
/Users/tomwardill/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
creating Makefile
CFLAGS='-isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -mdynamic-no-pic -std=gnu99 -Os -pipe -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wsign-compare -Wnewline-eof -Wconversion -Wshorten-64-to-32 -Wglobal-constructors -pedantic' /usr/bin/gcc -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -mdynamic-no-pic -std=gnu99 -dead_strip -framework CoreServices -o '/Users/tomwardill/.rvm/gems/ruby-1.9.2-p290/gems/rb-fsevent-0.4.2/bin/fsevent_watch' fsevent/fsevent_watch.c
fsevent/fsevent_watch.c:1:19: error: stdio.h: No such file or directory
fsevent/fsevent_watch.c:2:20: error: stdlib.h: No such file or directory
fsevent/fsevent_watch.c:3:20: error: unistd.h: No such file or directory
fsevent/fsevent_watch.c:5:39: error: CoreServices/CoreServices.h: No such file or directory
fsevent/fsevent_watch.c:10: error: expected specifier-qualifier-list before ‘FSEventStreamEventId’
fsevent/fsevent_watch.c:15: error: ‘UInt64’ undeclared here (not in a function)
fsevent/fsevent_watch.c:15: warning: excess elements in struct initializer
fsevent/fsevent_watch.c:15: warning: (near initialization for ‘config’)
fsevent/fsevent_watch.c:15: error: expected ‘}’ before ‘kFSEventStreamEventIdSinceNow’
fsevent/fsevent_watch.c:24: error: expected ‘)’ before ‘streamRef’
fsevent/fsevent_watch.c: In function ‘append_path’:
fsevent/fsevent_watch.c:42: error: ‘PATH_MAX’ undeclared (first use in this function)
fsevent/fsevent_watch.c:42: error: (Each undeclared identifier is reported only once
fsevent/fsevent_watch.c:42: error: for each function it appears in.)
fsevent/fsevent_watch.c:44: warning: implicit declaration of function ‘realpath’
fsevent/fsevent_watch.c:44: error: ‘NULL’ undeclared (first use in this function)
fsevent/fsevent_watch.c:53: error: ‘size_t’ undeclared (first use in this function)
fsevent/fsevent_watch.c:53: error: expected ‘;’ before ‘len’
fsevent/fsevent_watch.c:54: warning: implicit declaration of function ‘getcwd’
fsevent/fsevent_watch.c:58: error: ‘len’ undeclared (first use in this function)
fsevent/fsevent_watch.c:58: warning: implicit declaration of function ‘strlen’
fsevent/fsevent_watch.c:58: warning: incompatible implicit declaration of built-in function ‘strlen’
fsevent/fsevent_watch.c:60: warning: implicit declaration of function ‘strlcpy’
fsevent/fsevent_watch.c:75: error: ‘CFStringRef’ undeclared (first use in this function)
fsevent/fsevent_watch.c:75: error: expected ‘;’ before ‘pathRef’
fsevent/fsevent_watch.c:78: warning: implicit declaration of function ‘CFArrayAppendValue’
fsevent/fsevent_watch.c:78: error: ‘struct <anonymous>’ has no member named ‘paths’
fsevent/fsevent_watch.c:78: error: ‘pathRef’ undeclared (first use in this function)
fsevent/fsevent_watch.c:79: warning: implicit declaration of function ‘CFRelease’
fsevent/fsevent_watch.c: In function ‘parse_cli_settings’:
fsevent/fsevent_watch.c:85: error: ‘struct <anonymous>’ has no member named ‘paths’
fsevent/fsevent_watch.c:85: warning: implicit declaration of function ‘CFArrayCreateMutable’
fsevent/fsevent_watch.c:85: error: ‘NULL’ undeclared (first use in this function)
fsevent/fsevent_watch.c:86: error: ‘CFIndex’ undeclared (first use in this function)
fsevent/fsevent_watch.c:86: error: expected ‘)’ before numeric constant
fsevent/fsevent_watch.c:90: warning: implicit declaration of function ‘strcmp’
fsevent/fsevent_watch.c:91: error: ‘struct <anonymous>’ has no member named ‘sinceWhen’
fsevent/fsevent_watch.c:91: warning: implicit declaration of function ‘strtoull’
fsevent/fsevent_watch.c:93: error: ‘struct <anonymous>’ has no member named ‘latency’
fsevent/fsevent_watch.c:93: warning: implicit declaration of function ‘strtod’
fsevent/fsevent_watch.c:95: error: ‘struct <anonymous>’ has no member named ‘flags’
fsevent/fsevent_watch.c:95: error: ‘kFSEventStreamCreateFlagNoDefer’ undeclared (first use in this function)
fsevent/fsevent_watch.c:97: error: ‘struct <anonymous>’ has no member named ‘flags’
fsevent/fsevent_watch.c:97: error: ‘kFSEventStreamCreateFlagWatchRoot’ undeclared (first use in this function)
fsevent/fsevent_watch.c:102: warning: implicit declaration of function ‘fprintf’
fsevent/fsevent_watch.c:102: warning: incompatible implicit declaration of built-in function ‘fprintf’
fsevent/fsevent_watch.c:102: error: ‘stderr’ undeclared (first use in this function)
fsevent/fsevent_watch.c:109: warning: implicit declaration of function ‘CFArrayGetCount’
fsevent/fsevent_watch.c:109: error: ‘struct <anonymous>’ has no member named ‘paths’
fsevent/fsevent_watch.c: At top level:
fsevent/fsevent_watch.c:135: error: expected ‘)’ before ‘streamRef’
fsevent/fsevent_watch.c: In function ‘main’:
fsevent/fsevent_watch.c:189: warning: implicit declaration of function ‘setpgid’
fsevent/fsevent_watch.c:190: warning: incompatible implicit declaration of built-in function ‘fprintf’
fsevent/fsevent_watch.c:190: error: ‘stderr’ undeclared (first use in this function)
fsevent/fsevent_watch.c:196: error: ‘FSEventStreamContext’ undeclared (first use in this function)
fsevent/fsevent_watch.c:196: error: expected ‘;’ before ‘context’
fsevent/fsevent_watch.c:197: error: ‘FSEventStreamRef’ undeclared (first use in this function)
fsevent/fsevent_watch.c:197: error: expected ‘;’ before ‘stream’
fsevent/fsevent_watch.c:198: error: ‘stream’ undeclared (first use in this function)
fsevent/fsevent_watch.c:198: warning: implicit declaration of function ‘FSEventStreamCreate’
fsevent/fsevent_watch.c:198: error: ‘kCFAllocatorDefault’ undeclared (first use in this function)
fsevent/fsevent_watch.c:199: error: ‘FSEventStreamCallback’ undeclared (first use in this function)
fsevent/fsevent_watch.c:199: error: ‘callback’ undeclared (first use in this function)
fsevent/fsevent_watch.c:200: error: ‘context’ undeclared (first use in this function)
fsevent/fsevent_watch.c:201: error: ‘struct <anonymous>’ has no member named ‘paths’
fsevent/fsevent_watch.c:202: error: ‘struct <anonymous>’ has no member named ‘sinceWhen’
fsevent/fsevent_watch.c:203: error: ‘struct <anonymous>’ has no member named ‘latency’
fsevent/fsevent_watch.c:204: error: ‘struct <anonymous>’ has no member named ‘flags’
fsevent/fsevent_watch.c:212: warning: implicit declaration of function ‘FSEventStreamScheduleWithRunLoop’
fsevent/fsevent_watch.c:213: warning: implicit declaration of function ‘CFRunLoopGetCurrent’
fsevent/fsevent_watch.c:214: error: ‘kCFRunLoopDefaultMode’ undeclared (first use in this function)
fsevent/fsevent_watch.c:215: warning: implicit declaration of function ‘FSEventStreamStart’
fsevent/fsevent_watch.c:216: warning: implicit declaration of function ‘CFRunLoopRun’
fsevent/fsevent_watch.c:217: warning: implicit declaration of function ‘FSEventStreamFlushSync’
fsevent/fsevent_watch.c:218: warning: implicit declaration of function ‘FSEventStreamStop’
extconf.rb:55:in `<main>': Compilation of fsevent_watch failed (see README) (RuntimeError)
Gem files will remain installed in /Users/tomwardill/.rvm/gems/ruby-1.9.2-p290/gems/rb-fsevent-0.4.2 for inspection.
Results logged to /Users/tomwardill/.rvm/gems/ruby-1.9.2-p290/gems/rb-fsevent-0.4.2/ext/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment