Andre Turpin
2006-May-24 19:16 UTC
[Mongrel] Mongrel install/compile problems on Ubuntu dapper
Installed gcc and make and the default friends that they bring along, then did # sudo gem install mongrel and got the following... andre at andre:~$ sudo gem install mongrel Attempting local installation of ''mongrel'' Local gem file not found: mongrel*.gem Attempting remote installation of ''mongrel'' Select which gem to install for your platform (i486-linux) 1. mongrel 0.3.12.4 (ruby) 2. mongrel 0.3.12.4 (mswin32) 3. mongrel 0.3.12.3 (mswin32) 4. mongrel 0.3.12.3 (ruby) 5. mongrel 0.3.12.2 (ruby) 6. mongrel 0.3.12.2 (mswin32) 7. mongrel 0.3.12.1 (mswin32) 8. mongrel 0.3.12.1 (ruby) 9. mongrel 0.3.12 (mswin32) 10. mongrel 0.3.12 (ruby) 11. mongrel 0.3.11 (ruby) 12. mongrel 0.3.11 (mswin32) 13. mongrel 0.3.10.1 (ruby) 14. mongrel 0.3.10 (ruby) 15. mongrel 0.3.9 (ruby) 16. mongrel 0.3.8 (ruby) 17. mongrel 0.3.8 (mswin32) 18. mongrel 0.3.7.1 (ruby) 19. mongrel 0.3.7.1 (mswin32) 20. mongrel 0.3.7 (ruby) 21. mongrel 0.3.6 (ruby) 22. mongrel 0.3.6 (mswin32) 23. mongrel 0.3.5 (ruby) 24. mongrel 0.3.5 (mswin32) 25. mongrel 0.3.4 (mswin32) 26. mongrel 0.3.4 (ruby) 27. mongrel 0.3.3 (ruby) 28. mongrel 0.3.2 (ruby) 29. mongrel 0.3.1 (ruby) 30. mongrel 0.3 (ruby) 31. mongrel 0.2.2 (ruby) 32. mongrel 0.2.1 (ruby) 33. mongrel 0.2.0 (ruby) 34. Cancel installation> 1Building native extensions. This could take a while... In file included from http11.c:1: /usr/lib/ruby/1.8/i486-linux/ruby.h:28:21: error: stdlib.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:32:21: error: string.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:42:19: error: stdio.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:64:20: error: alloca.h: No such file or directory In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/syslimits.h:7, from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:11, from /usr/lib/ruby/1.8/i486-linux/ruby.h:84, from http11.c:1: /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:122:61: error: limits.h: No such file or directory In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:677, from http11.c:1: /usr/lib/ruby/1.8/i486-linux/missing.h:16:24: error: sys/time.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/missing.h:25:25: error: sys/types.h: No such file or directory In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:678, from http11.c:1: /usr/lib/ruby/1.8/i486-linux/intern.h:215: error: syntax error before ''fd_set'' /usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: ''struct timeval'' declared inside parameter list /usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: its scope is only this definition or declaration, which is probably not what you want /usr/lib/ruby/1.8/i486-linux/intern.h:446: warning: parameter names (without types) in function declaration In file included from http11.c:1: /usr/lib/ruby/1.8/i486-linux/ruby.h:687:21: error: pthread.h: No such file or directory In file included from http11.c:1: /usr/lib/ruby/1.8/i486-linux/ruby.h:689: error: syntax error before ''rb_nativethread_t'' /usr/lib/ruby/1.8/i486-linux/ruby.h:689: warning: type defaults to ''int'' in declaration of ''rb_nativethread_t'' /usr/lib/ruby/1.8/i486-linux/ruby.h:689: warning: data definition has no type or storage class http11.c:3:20: error: assert.h: No such file or directory http11.c:6:19: error: ctype.h: No such file or directory http11.c: In function ''http_field'': http11.c:72: warning: implicit declaration of function ''toupper'' http11.c: In function ''header_done'': http11.c:144: warning: implicit declaration of function ''strchr'' http11.c:144: warning: incompatible implicit declaration of built-in function ''strchr'' http11.c:126: warning: unused variable ''port'' http11.c:125: warning: unused variable ''host'' http11.c: In function ''HttpParser_free'': http11.c:165: warning: implicit declaration of function ''free'' http11.c: In function ''URIClassifier_alloc'': http11.c:333: warning: implicit declaration of function ''assert'' make: *** [http11.o] Error 1 In file included from http11.c:1: /usr/lib/ruby/1.8/i486-linux/ruby.h:28:21: error: stdlib.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:32:21: error: string.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:42:19: error: stdio.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:64:20: error: alloca.h: No such file or directory In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/syslimits.h:7, from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:11, from /usr/lib/ruby/1.8/i486-linux/ruby.h:84, from http11.c:1: /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:122:61: error: limits.h: No such file or directory In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:677, from http11.c:1: /usr/lib/ruby/1.8/i486-linux/missing.h:16:24: error: sys/time.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/missing.h:25:25: error: sys/types.h: No such file or directory In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:678, from http11.c:1: /usr/lib/ruby/1.8/i486-linux/intern.h:215: error: syntax error before ''fd_set'' /usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: ''struct timeval'' declared inside parameter list /usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: its scope is only this definition or declaration, which is probably not what you want /usr/lib/ruby/1.8/i486-linux/intern.h:446: warning: parameter names (without types) in function declaration In file included from http11.c:1: /usr/lib/ruby/1.8/i486-linux/ruby.h:687:21: error: pthread.h: No such file or directory In file included from http11.c:1: /usr/lib/ruby/1.8/i486-linux/ruby.h:689: error: syntax error before ''rb_nativethread_t'' /usr/lib/ruby/1.8/i486-linux/ruby.h:689: warning: type defaults to ''int'' in declaration of ''rb_nativethread_t'' /usr/lib/ruby/1.8/i486-linux/ruby.h:689: warning: data definition has no type or storage class http11.c:3:20: error: assert.h: No such file or directory http11.c:6:19: error: ctype.h: No such file or directory http11.c: In function ''http_field'': http11.c:72: warning: implicit declaration of function ''toupper'' http11.c: In function ''header_done'': http11.c:144: warning: implicit declaration of function ''strchr'' http11.c:144: warning: incompatible implicit declaration of built-in function ''strchr'' http11.c:126: warning: unused variable ''port'' http11.c:125: warning: unused variable ''host'' http11.c: In function ''HttpParser_free'': http11.c:165: warning: implicit declaration of function ''free'' http11.c: In function ''URIClassifier_alloc'': http11.c:333: warning: implicit declaration of function ''assert'' make: *** [http11.o] Error 1 ruby extconf.rb install mongrel checking for main() in -lc... no creating Makefile make gcc -fPIC -Wall -g -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux -I. -c http11.c make install gcc -fPIC -Wall -g -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux -I. -c http11.c Successfully installed mongrel-0.3.12.4 Installing RDoc documentation for mongrel-0.3.12.4... andre at andre:~$ http11 doesn''t seem to want to compile, just wondering what other packages might be necessary? kernel headers? Pixiedust? Thanks for clues, Andre -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060524/59571b77/attachment-0001.htm
Luis Lavena
2006-May-24 19:20 UTC
[Mongrel] Mongrel install/compile problems on Ubuntu dapper
On 5/24/06, Andre Turpin <andreturpin at gmail.com> wrote: [...]> Building native extensions. This could take a while... > In file included from http11.c:1: > /usr/lib/ruby/1.8/i486-linux/ruby.h:28:21: error: stdlib.h: > No such file or directory > /usr/lib/ruby/1.8/i486-linux/ruby.h:32:21: error: string.h: > No such file or directory > /usr/lib/ruby/1.8/i486-linux/ruby.h:42:19: error: stdio.h: > No such file or directory > /usr/lib/ruby/1.8/i486-linux/ruby.h:64:20: error: alloca.h:Looks like you don''t have all the tools for a build env... stdlib.h and stdio.h must be in the INCLUDE environment variable. -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi
Thomas Lockney
2006-May-24 22:42 UTC
[Mongrel] Mongrel install/compile problems on Ubuntu dapper
On 5/24/06, Andre Turpin <andreturpin at gmail.com> wrote:> > Installed gcc and make and the default friends that they bring along, then > did > # sudo gem install mongrel >try installing the build-essential package (apt-get install build-essential), it''s possible some of the standard libs didn''t get installed by just installing gcc and make. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060524/19d4e4b6/attachment.htm
Andre Turpin
2006-May-24 23:56 UTC
[Mongrel] Mongrel install/compile problems on Ubuntu dapper
Thanks Thomas for the suggestion...turns out it was largely error between the keyboard and the chair... running "apt-get install build-essential" threw in some stuff I didn''t have on the system, and it was the most immediate fix but I also had a pre-release gem from Zed''s announcement alongside the standard...not sure if maybe the two versions fighting was part/all of the problem...>Select RubyGem to uninstall: > 1. mongrel-0.3.12.4 > 2. mongrel-0.3.13 > 3. All versions > 3Then reinstalling via gems normal method worked, it''s working just fine. Thanks! -Andre -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060524/45899431/attachment.htm
Seemingly Similar Threads
- mongrel error on debian sarge
- Rails, Ubuntu dapper & Mongrel > uninitialized constant Mongrel::HttpHandler error
- ERROR: Failed to build gem native extension.
- Warnings during compilation
- Windows Server 2003 - Cygwin - Apache 2.0 - Rails 1.2.3 -- httpd.so "permission denied"