error while trying to install exim from source - compilation

[root#test exim-4.80.1]# make
`Makefile' is up to date.
make[1]: Entering directory `/opt/test/exim-4.80.1/build-Linux-x86_64'
>>> version 4.80.1 #14
gcc exim_monitor/em_StripChart.c
../exim_monitor/em_StripChart.c:40:28: error: X11/IntrinsicP.h: No such file or directory
../exim_monitor/em_StripChart.c:41:28: error: X11/StringDefs.h: No such file or directory
../exim_monitor/em_StripChart.c:42:29: error: X11/Xaw/XawInit.h: No such file or directory
../exim_monitor/em_StripChart.c:43:32: error: X11/Xaw/StripCharP.h: No such file or directory
../exim_monitor/em_StripChart.c:44:24: error: X11/Xfuncs.h: No such file or directory
../exim_monitor/em_StripChart.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘resources’
../exim_monitor/em_StripChart.c:75: error: expected ‘)’ before ‘unsigned’
../exim_monitor/em_StripChart.c:76: error: expected ‘)’ before ‘unsigned’
../exim_monitor/em_StripChart.c:78: warning: parameter names (without types) in function declaration
../exim_monitor/em_StripChart.c:79: warning: parameter names (without types) in function declaration
../exim_monitor/em_StripChart.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SetValues’
../exim_monitor/em_StripChart.c:82: error: expected ‘)’ before ‘int’
../exim_monitor/em_StripChart.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘stripChartClassRec’
../exim_monitor/em_StripChart.c:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mystripChartWidgetClass’
../exim_monitor/em_StripChart.c: In function ‘CreateGC’:
../exim_monitor/em_StripChart.c:145: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:148: error: ‘XGCValues’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:148: error: (Each undeclared identifier is reported only once
../exim_monitor/em_StripChart.c:148: error: for each function it appears in.)
../exim_monitor/em_StripChart.c:148: error: expected ‘;’ before ‘myXGCV’
../exim_monitor/em_StripChart.c:150: error: ‘FOREGROUND’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:151: error: ‘myXGCV’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:151: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:152: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:152: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:152: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:155: error: ‘HIGHLIGHT’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:156: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:157: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:157: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘DestroyGC’:
../exim_monitor/em_StripChart.c:170: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:173: error: ‘FOREGROUND’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:174: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:174: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:176: error: ‘HIGHLIGHT’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:177: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘Initialize’:
../exim_monitor/em_StripChart.c:182: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:184: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:184: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:186: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:190: error: ‘XtPointer’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:190: error: expected ‘)’ before ‘gnew’
../exim_monitor/em_StripChart.c:191: error: ‘ALL_GCS’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘Destroy’:
../exim_monitor/em_StripChart.c:201: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:203: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:203: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:205: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:209: error: ‘ALL_GCS’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘Redisplay’:
../exim_monitor/em_StripChart.c:220: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:221: error: expected declaration specifiers before ‘XEvent’
../exim_monitor/em_StripChart.c:222: error: expected declaration specifiers before ‘Region’
../exim_monitor/em_StripChart.c:224: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:224: error: ‘GraphicsExpose’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:225: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:225: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:228: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘draw_it’:
../exim_monitor/em_StripChart.c:235: error: expected declaration specifiers before ‘XtPointer’
../exim_monitor/em_StripChart.c:236: error: expected declaration specifiers before ‘XtIntervalId’
../exim_monitor/em_StripChart.c:238: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:238: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:241: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:243: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:243: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:247: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:254: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:270: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:285: error: ‘CoordModePrevious’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘repaint_window’:
../exim_monitor/em_StripChart.c:306: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:310: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:311: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:316: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:316: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:317: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:318: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:319: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:323: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:324: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:327: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:331: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:331: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:336: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:337: error: ‘Display’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:337: error: ‘dpy’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:338: error: ‘Window’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:338: error: expected ‘;’ before ‘win’
../exim_monitor/em_StripChart.c:347: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:348: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:348: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:349: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:351: error: ‘win’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:351: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:353: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:357: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:358: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:358: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:359: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c: At top level:
../exim_monitor/em_StripChart.c:373: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:433: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SetValues’
../exim_monitor/em_StripChart.c:435: error: expected identifier or ‘(’ before ‘{’ token
../exim_monitor/em_StripChart.c: In function ‘SetPoints’:
../exim_monitor/em_StripChart.c:481: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:483: error: ‘XPoint’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:483: error: ‘points’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:484: error: ‘Cardinal’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:484: error: expected ‘;’ before ‘size’
../exim_monitor/em_StripChart.c:487: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:488: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:489: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:493: error: ‘size’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:493: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:495: error: expected expression before ‘)’ token
../exim_monitor/em_StripChart.c:496: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:500: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:502: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:502: error: invalid type argument of ‘->’ (have ‘int’)
make[1]: *** [em_StripChart.o] Error 1
make[1]: Leaving directory `/opt/test/exim-4.80.1/build-Linux-x86_64'
make: *** [all] Error 2
please help.... i am trying to install exim from source for the first time. but this error occurs when i try to make exim. i cant use yum or rpm because this is a task given to me to install exim from source. thank you.

exim-monitor or eximon is an X-based tool. When exim is configured to be built with eximon a lot of X-related dependencies are required. If some required soft/lib wasn't installed - you'll get an error.
To avoid that error just disable eximon in the exim build config.

I had something similar on Centos 6 minimal install. This is what I had to install (as root):
(Mine is a custom build with LDAP and TLS, so there may be more here than you need).
yum install pcre-devel
yum install libxext-dev
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install openldap-devel
yum install openssl-devel
yum install Xaw-devel
yum install Xaw3d-devel
yum install Xaw3d
yum install libXaw-devel

Related

unable to install twitter gem mac osx maverick

I am trying to install the gem twitter on mac osx maverick.But getting errors related to make and native extensions.
OS: Maverick
MAC OSX 10.9.1
Error:
ERROR: Error installing twitter:
ERROR: Failed to build gem native extension.
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make clean
make
compiling ruby_http_parser.c
Read on some questions and blog posts to update brew. But no luck.
brew update
Updated Homebrew from 78b4d7d7 to 78b4d7d7.
==> New Formulae
homebrew/dupes/ed
==> Updated Formulae
homebrew/dupes/ab homebrew/dupes/expect homebrew/dupes/groff homebrew/dupes/make homebrew/dupes/tcpdump
homebrew/dupes/apple-gcc42 homebrew/dupes/fetchmail homebrew/dupes/httpd homebrew/dupes/ncurses homebrew/dupes/tidy
homebrew/dupes/apr homebrew/dupes/file-formula homebrew/dupes/lapack homebrew/dupes/openssh homebrew/dupes/unzip
homebrew/dupes/apr-util homebrew/dupes/gdb homebrew/dupes/less homebrew/dupes/rsync homebrew/dupes/whois
homebrew/dupes/diffstat homebrew/dupes/grep homebrew/dupes/libpcap homebrew/dupes/tcl-tk homebrew/dupes/zlib
==> Deleted Formulae
homebrew/dupes/ant homebrew/dupes/libarchive homebrew/dupes/perl
sh-3.2# ls
Aliases Contributions ENV Formula Homebrew LinkedKegs Taps brew.rb
Any suggestions on fixing this?
UPDATE: Adding the complete log of the error when trying to install twitter gem
sh-3.2# gem install twitter
Building native extensions. This could take a while...
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
ERROR: Error installing twitter:
ERROR: Failed to build gem native extension.
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make clean
make
compiling ruby_http_parser.c
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21: error: string.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21: error: stdint.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23: error: inttypes.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19: error: stdio.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21: error: stdlib.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20: error: alloca.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:178,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:28:24: error: sys/time.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:37:25: error: sys/types.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__syscall’
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:34,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/st.h:129: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:286: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: warning: ‘struct timeval’ declared inside parameter list
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: warning: its scope is only this definition or declaration, which is probably not what you want
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: warning: ‘struct timeval’ declared inside parameter list
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:382: warning: ‘struct timeval’ declared inside parameter list
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:554: error: expected declaration specifiers or ‘...’ before ‘pid_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:572: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fork’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:573: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fork_err’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:575: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_waitpid’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:576: error: expected ‘)’ before ‘pid’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:577: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_spawn’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:578: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_spawn_err’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:580: error: expected ‘)’ before ‘pid’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:699: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:824: error: expected ‘)’ before ‘long’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:825: error: expected ‘)’ before ‘long’
In file included from ruby_http_parser.c:3:
ryah_http_parser.h:209: error: expected specifier-qualifier-list before ‘uint32_t’
ryah_http_parser.h:265: error: expected specifier-qualifier-list before ‘uint16_t’
ruby_http_parser.c: In function ‘ParserWrapper_init’:
ruby_http_parser.c:44: error: ‘ryah_http_parser’ has no member named ‘status_code’
ruby_http_parser.c:45: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:46: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c: In function ‘ParserWrapper_free’:
ruby_http_parser.c:77: warning: implicit declaration of function ‘free’
ruby_http_parser.c: In function ‘on_message_begin’:
ruby_http_parser.c:102: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:104: warning: implicit declaration of function ‘strlen’
ruby_http_parser.c:104: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:106: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:108: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘on_url’:
ruby_http_parser.c:125: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c: In function ‘on_header_field’:
ruby_http_parser.c:131: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c: In function ‘on_header_value’:
ruby_http_parser.c:144: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:146: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c:160: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:162: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:167: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:169: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:172: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c: In function ‘on_headers_complete’:
ruby_http_parser.c:190: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:192: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘on_body’:
ruby_http_parser.c:211: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:213: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘on_message_complete’:
ruby_http_parser.c:230: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:232: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘Parser_alloc_by_type’:
ruby_http_parser.c:262: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c: In function ‘Parser_execute’:
ruby_http_parser.c:314: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c:320: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c:322: error: ‘ryah_http_parser’ has no member named ‘upgrade’
ruby_http_parser.c: In function ‘Parser_upgrade_p’:
ruby_http_parser.c:381: error: ‘ryah_http_parser’ has no member named ‘upgrade’
ruby_http_parser.c: In function ‘Parser_http_version’:
ruby_http_parser.c:388: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:388: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c:391: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:391: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c: In function ‘Parser_http_major’:
ruby_http_parser.c:398: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:398: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c:401: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c: In function ‘Parser_http_minor’:
ruby_http_parser.c:408: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:408: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c:411: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c: In function ‘Parser_http_method’:
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c:419: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c: In function ‘Parser_status_code’:
ruby_http_parser.c:428: error: ‘ryah_http_parser’ has no member named ‘status_code’
ruby_http_parser.c:429: error: ‘ryah_http_parser’ has no member named ‘status_code’
ruby_http_parser.c: In function ‘Parser_set_header_value_type’:
ruby_http_parser.c:451: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘Init_ruby_http_parser’:
ruby_http_parser.c:473: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:474: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:475: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:476: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:477: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:478: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:479: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:481: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:482: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:483: warning: incompatible implicit declaration of built-in function ‘strlen’
make: *** [ruby_http_parser.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/http_parser.rb-0.6.0/gem_make.out
sh-3.2# sh-3.2# gem install twitter
sh: sh-3.2#: command not found
sh-3.2# Building native extensions. This could take a while...
sh: Building: command not found
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:73:: No such file or directory
sh-3.2# ERROR: Error installing twitter:
sh: ERROR:: command not found
sh-3.2# ERROR: Failed to build gem native extension.
sh: ERROR:: command not found
sh-3.2#
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby: No such file or directory -- extconf.rb (LoadError)
sh-3.2# creating Makefile
make clean
make
compiling ruby_http_parser.c
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21: error: string.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21: error: stdint.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23: error: inttypes.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19: error: stdio.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubsh: creating: command not found
sh-3.2#
sh-3.2# make clean
make: *** No rule to make target `clean'. Stop.
sh-3.2#
sh-3.2# make
make: *** No targets specified and no makefile found. Stop.
sh-3.2# compiling ruby_http_parser.c
sh: compiling: command not found
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh: In: command not found
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21: error: string.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21: error: stdint.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23: error: inttypes.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19: error: stdio.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21: error: stdlib.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20: error: alloca.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:178,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
In file included from /Ush: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21: error: stdlib.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh: In: command not found
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20: error: alloca.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:178,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
sh: /Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:28:24: error: sys/time.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:28:24:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:37:25: error: sys/types.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:37:25:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__syscall’
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:56:: No such file or directory
sh: ’,: command not found
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:34,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/st.h:129: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/st.h:129:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.
Thanks all who provided the inputs.
I was able to install the twitter gem successfully after uninstalling homebrew and reinstalling it again.
For some reason my development headers are screwed up when I upgraded to mac osx maverick

Failing to install Stalin Scheme on OSX because it is "not supported yet" - is there any workaround?

I've downloaded Stalin Scheme and tried to install it on OSX, but I've got this error:
gcc -O -I./include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DSILENT -DALL_INTERIOR_POINTERS -DLARGE_CONFIG -DUSE_MMAP -DDONT_ADD_BYTE_AT_END -o if_mach ./if_mach.c
In file included from ./if_mach.c:3:
./include/private/gcconfig.h:477: error: expected identifier or ‘(’ before ‘--’ token
./if_mach.c: In function ‘main’:
./if_mach.c:14: error: ‘MACH_TYPE’ undeclared (first use in this function)
./if_mach.c:14: error: (Each undeclared identifier is reported only once
./if_mach.c:14: error: for each function it appears in.)
make: *** [if_mach] Error 1
cp: gc6.8/gc.a: No such file or directory
ranlib: can't open file: include/libgc.a (No such file or directory)
Cannot (yet) run Stalin on this architecture
Is there any workaround for this?

Unable To Install posix-spawn on FreeBSD

I am attempting to get octopress going and having trouble installing the required package posix-spawn.
Here this is the error output:
ERROR: Error installing posix-spawn:
ERROR: Failed to build gem native extension.
/home/private/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make
compiling posix-spawn.c
posix-spawn.c:9:19: error: spawn.h: No such file or directory
In file included from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby- 1.9.1/ruby/ruby.h:24,
from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from posix-spawn.c:14:
/home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/i386- freebsd8.3/ruby/config.h:17:1: warning: "_GNU_SOURCE" redefined
posix-spawn.c:3:1: warning: this is the location of the previous definition
posix-spawn.c:103: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addclose':
posix-spawn.c:113: warning: implicit declaration of function 'posix_spawn_file_actions_addclose'
posix-spawn.c:113: error: 'fops' undeclared (first use in this function)
posix-spawn.c:113: error: (Each undeclared identifier is reported only once
posix-spawn.c:113: error: for each function it appears in.)
posix-spawn.c: At top level:
posix-spawn.c:129: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_adddup2':
posix-spawn.c:141: warning: implicit declaration of function 'posix_spawn_file_actions_adddup2'
posix-spawn.c:141: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:155: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addopen':
posix-spawn.c:173: warning: implicit declaration of function 'posix_spawn_file_actions_addopen'
posix-spawn.c:173: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:186: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_operations_iter':
posix-spawn.c:190: error: 'fops' undeclared (first use in this function)
posix-spawn.c:190: error: too many arguments to function 'posixspawn_file_actions_addclose'
posix-spawn.c:193: error: too many arguments to function 'posixspawn_file_actions_adddup2'
posix-spawn.c:196: error: too many arguments to function 'posixspawn_file_actions_addopen'
posix-spawn.c: At top level:
posix-spawn.c:210: error: expected ')' before '*' token
posix-spawn.c:230: error: expected declaration specifiers or '...' before 'posix_spawnattr_t'
posix-spawn.c: In function 'posixspawn_set_pgroup':
posix-spawn.c:237: error: 'POSIX_SPAWN_SETPGROUP' undeclared (first use in this function)
posix-spawn.c:238: warning: implicit declaration of function 'posix_spawnattr_setpgroup'
posix-spawn.c:238: error: 'pattr' undeclared (first use in this function)
posix-spawn.c: In function 'each_env_check_i':
posix-spawn.c:253: warning: unused parameter 'arg'
posix-spawn.c: In function 'rb_posixspawn_pspawn':
posix-spawn.c:330: error: 'posix_spawn_file_actions_t' undeclared (first use in this function)
posix-spawn.c:330: error: expected ';' before 'fops'
posix-spawn.c:331: error: 'posix_spawnattr_t' undeclared (first use in this function)
posix-spawn.c:331: error: expected ';' before 'attr'
posix-spawn.c:332: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:341: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:381: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:391: warning: implicit declaration of function 'posixspawn_file_actions_init'
posix-spawn.c:391: error: 'fops' undeclared (first use in this function)
posix-spawn.c:392: warning: implicit declaration of function 'posix_spawnattr_init'
posix-spawn.c:392: error: 'attr' undeclared (first use in this function)
posix-spawn.c:395: error: 'POSIX_SPAWN_SETSIGMASK' undeclared (first use in this function)
posix-spawn.c:397: warning: implicit declaration of function 'posix_spawnattr_setsigmask'
posix-spawn.c:407: error: too many arguments to function 'posixspawn_set_pgroup'
posix-spawn.c:409: warning: implicit declaration of function 'posix_spawnattr_setflags'
posix-spawn.c:418: warning: implicit declaration of function 'posix_spawnp'
posix-spawn.c:427: warning: implicit declaration of function 'posix_spawn_file_actions_destroy'
posix-spawn.c:428: warning: implicit declaration of function 'posix_spawnattr_destroy'
posix-spawn.c:320: warning: unused parameter 'self'
*** Error code 1
I found this comment in Github that says to make sure spawn.h is in my /usr/include/ folder, but that seemed to have no effect.
Any other thoughts?
This problem was solved by the author but apparently never made its way into the ruby gems repo. You can see about it here.
You can clone the repo and compile it locally and this did the trick for me:
git clone https://github.com/rtomayko/posix-spawn.git
cd posix-spawn/
gem build posix-spawn.gemspec
gem install posix-spawn*.gem

why i failed to install openstack glance?

i try to install glance using command
(os)mirror0#lab:~/tmp/glance$ python setup.py install
but failed, why?
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOENT’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOCDATA’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0#lab:~/tmp/glance$ echo $?
1
(os)mirror0#lab:~/tmp/glance$ python -V
Python 2.6.6
Edit 1: i have installed libxml2-dev, still failed to install glance, why?
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0#lab:~/tmp/glance$ dpkg -l | grep libxml2
ii libxml2 2.7.8.dfsg-2+squeeze5 GNOME XML library
ii libxml2-dev 2.7.8.dfsg-2+squeeze5 Development files for the GNOME XML library
ii libxml2-utils 2.7.8.dfsg-2+squeeze5 XML utilities
ii python-libxml2 2.7.8.dfsg-2+squeeze5 Python bindings for the GNOME XML library
ii python-lxml 2.2.8-2 pythonic binding for the libxml2 and libxslt libraries
Try to install Libxslt. For Ubuntu:
sudo apt-get install libxslt1.1 libxslt1-dev python-libxslt1

Install ree-1.8.7 with RVM on Mountain Lion [duplicate]

This question already has answers here:
Mountain Lion rvm install 1.8.7 x11 error
(5 answers)
Closed 8 years ago.
I had a fresh install of Mountain Lion and installed the Xcode Command Line Tools, . I was able to get homebrew running and installed RVM. Unfortunately, I can't get RVM to install ree-1.8.7-head. It fails when compiling. I thought it was related to X11, so I installed XQuartz. Still no joy. Then I went ahead and installed the full Xcode from the app store. Still no joy. Anyone gotten this going on a fresh Mountain Lion install?
From the bottom of the .rvm/log/ree-1.8.7-head/make.log:
Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk.
gcc -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-02-08\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 -pipe -fno-common -c stubs.c
In file included from stubs.c:10:
/usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directory
In file included from stubs.c:10:
/usr/include/tk.h:549: error: expected declaration specifiers or ‘...’ before ‘Window’
/usr/include/tk.h:549: error: ‘Window’ declared as function returning a function
.
.
/usr/include/tkDecls.h:1240: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute
__’ before ‘Tk_GetBitmapFromObj’
/usr/include/tkDecls.h:1245: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/tkDecls.h:1356: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1362: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1387: error: expected declaration specifiers or ‘...’ before ‘GC’
/usr/include/tkDecls.h:1399: error: expected declaration specifiers or ‘...’ before ‘GC’
/usr/include/tkDecls.h:1413: error: expected declaration specifiers or ‘...’ before ‘Pixmap’
/usr/include/tkDecls.h:1420: error: expected declaration specifiers or ‘...’ before ‘XColor’
/usr/include/tkDecls.h:1448: error: expected declaration specifiers or ‘...’ before ‘Pixmap’
/usr/include/tkDecls.h:1524: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1621: error: expected declaration specifiers or ‘...’ before ‘Drawable’
/usr/include/tkDecls.h:1656: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1661: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’
make[1]: *** [stubs.o] Error 1
make: *** [all] Error 1
try
rvm reinstall 1.8.7 --without-tcl --without-tk
but still your problem might to be related to gcc-4.2 -> it's required for MRI ruby, there are some successes with llvm/clang, but still it fails with Fibers
If you don't need tcl or tk and are using rbenv, this should work:
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb
CC=/usr/local/bin/gcc-4.2 CONFIGURE_OPTS="--without-tcl --without-tk" rbenv install 1.8.7-p358

Resources