|
I tried to install
Rails + Mongrel on CentOS4.3 64Bit (my provider only has the 64 Bit
version available). I found out, that I have to install gcc and emacs-common and have to copy the *.h files of the ruby source into a certain directory (see below). But finally I get an error messag when I start mongrel and I have no idea how to solve that problem: wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/ruby-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/ruby-docs-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/ri-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/ruby-libs-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/ruby-mode-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/ruby-tcltk-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/irb-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/rdoc-1.8.4-1.c4.x86_64.rpm wget http://dev.centos.org/centos/4/testing/x86_64/RPMS/ruby-devel-1.8.4-1.c4.x86_64.rpm rpm -ivh ruby-libs-1.8.4-1.c4.x86_64.rpm rpm -ivh ruby-1.8.4-1.c4.x86_64.rpm rpm -ivh ruby-docs-1.8.4-1.c4.x86_64.rpm rpm -ivh irb-1.8.4-1.c4.x86_64.rpm rpm -ivh rdoc-1.8.4-1.c4.x86_64.rpm rpm -ivh ri-1.8.4-1.c4.x86_64.rpm rpm -ivh ruby-tcltk-1.8.4-1.c4.x86_64.rpm yum install emacs-common ... Installing: emacs-common x86_64 21.3-19.EL.4 base 9.7 M ... rpm -ivh ruby-mode-1.8.4-1.c4.x86_64.rpm wget http://rubyforge.org/frs/download.php/11291/rubygems-0.9.0.tgz tar -xzvf rubygems-0.9.0.tgz cd rubygems-0.9.0 ruby setup.rb yum install gcc gem install rails --include-dependencies gem update --system gem update rake gem update rails ************************************************* # gem install momgrel 1. ... > 1 Install required dependency daemons? [Yn] Y Install required dependency gem_plugin? [Yn] Y Building native extensions. This could take a while... can't find header files for ruby. ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension. Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mongrel-0.3.13.4 for inspection. Results logged to /usr/lib64/ruby/gems/1.8/gems/mongrel-0.3.13.4/ext/http11/gem_make.out ******* If you encounter "can’t find header files for ruby" problem, first download the ruby src from ruby-lang, then copy *.h especially ruby.h to the result of Config::CONFIG["archdir"](/usr/lib/ruby/1.8/i586-linux-gnu/ on my machine). Reinstall mongrel, then it's ok. http://www.befittr.com/blog/2006/09/09/configuring-ec2-rails-mongrel-apache-22-and-mysql-5/feed/ *************************************************** because of the above error I'll grab and copy the *.h files of the ruby source ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4.tar.gz tar -xzvf ruby-1.8.4.tar.gz cp ruby-1.8.4/*.h /usr/lib64/ruby/1.8/x86_64-linux gem install daemons gem_plugin mongrel mongrel_cluster --include-dependencies [EMAIL PROTECTED] test1]$ mongrel_rails start -p 8080 /usr/lib64/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:38: uninitialized constant Mongrel::HttpHandler (NameError) from /usr/lib64/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/lib64/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:10 from /usr/bin/mongrel_rails:18 |
_______________________________________________ Mongrel-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/mongrel-users
