[Mongrel] Mongrel on CentOS 4.3 / RHEL 4.3 64Bit

Wes Sheldahl wes at sheldahlconsulting.com
Wed Oct 18 14:04:00 EDT 2006


When you have a group of rpm's to install, that depend on each other, I
think you can get rpm to order them correctly this way. First, put just the
rpm's you want to install or upgrade in a directory by themselves. Then cd
to that directory, and run: rpm -Uvh *.rpm.  At least that's worked for me
in the past. Besides letting rpm take care of installing them in the right
order, it gives you a longer coffee break while it sorts everything out. ;-)

-- 
Wes Sheldahl
Sheldahl Consulting LLC
http://www.sheldahlconsulting.com
wes at sheldahlconsulting.com

On 10/16/06, Sven Meyer <Mongrel-users_RoR_develop at svenmeyer.com> wrote:
>
> Hi Charles
>
> many, many thanks for pointing that out to me - I really forgot to install
>
> ruby-devel-1.8.4-1.c4.x86_64.rpm
>
> - no it's working fine!
>
> Problem was, I had to reorder the rpm's while installing, because some
> were dependent of other ones ... and then I must have forgotten one. ...
> Maybe I could have done that with one command instead and rpm commad would
> have figured out the right dependencies itself und would have reordered it
> automatically?
>
> Many thanks again,
>
> Sven
>
>
>
> Charles Brian Quinn wrote:
> > I couldn't help but notice that you downloaded the ruby-devel package,
> > but didn't install it....
> >
> > unless you didn't include that line above....
> >
> > This would include the development (header) files for you, I believe.
> >
> > Let us know if that helps.
> >
> > On 10/15/06, Sven Meyer <Mongrel-users_RoR_develop at svenmeyer.com> wrote:
> >
> >>  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
> >>
> >>
> >>
> >>  [rails at centos4364m 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
> >> Mongrel-users at rubyforge.org
> >> http://rubyforge.org/mailman/listinfo/mongrel-users
> >>
> >>
> >>
> >
> >
> >
>
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061018/0d0c470c/attachment-0001.html 


More information about the Mongrel-users mailing list