Feel free to communicate in case of more questionswget ftp://ftp.ruby-lang.org:21/pub/ruby/1.8/ruby-1.8.6.tar.gz
tar xzvf ruby-1.8.6.tar.gz && cd ruby-1.8.6
./configure && make && make install
source /etc/profile;ruby -v
rubygems are installed using following instructions:echo 'export PATH=/usr/local/bin:$PATH' > /etc/profile.d/ruby.sh; source /etc/profile
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
tar -xzvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
export GEM_HOME=/usr/local/rubygems/gems; mkdir -p $GEM_HOME
ruby setup.rb all --prefix=/usr/local/rubygems
vi /etc/profile.d/rubygems.sh
contents of rubygems.sh areexport GEM_HOME=/usr/local/rubygems/gems
export GEM_PATH=/usr/local/rubygems/gems
export RUBYLIB=/usr/local/rubygems/lib
export PATH=/usr/local/rubygems/gems/bin:/usr/local/rubygems/bin:$PATH
Following is the output which you have asked me
whereis ruby
ruby: /usr/lib/ruby /usr/local/bin/ruby /usr/local/lib/ruby
whereis gem
gem:
At this point I would recommend you to completely remove Ruby from
your system and reinstall it from scratch. All your current paths seem
to be totally wrong, and reinstalling everything seems easier.
You likely have multiple versions of Ruby installed, some which you
may not be aware of. You need to remove all of them and install only a
single version.
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
That depends on how you installed Ruby in the past. If you installed
with Yum then you need to remove it with Yum. If you (also) installed
from source then you need to find out which files were installed to
where, and delete them. If you installed RubyGems to yet another
location then you need to locate those files as well, and delete them.
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-[latest].rpm
yum remove ruby
wget ftp://ftp.ruby-lang.org:21/pub/ruby/1.8/ruby-1.8.6.tar.gz
tar xzvf ruby-1.8.6.tar.gz && cd ruby-1.8.6
./configure && make && make install
source /etc/profile;ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
echo 'export PATH=/usr/local/bin:$PATH' > /etc/profile.d/ruby.sh; source /etc/profile
tar -xzvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
export GEM_HOME=/usr/local/rubygems/gems; mkdir -p $GEM_HOME
ruby setup.rb all --prefix=/usr/local/rubygems
vi /etc/profile.d/rubygems.sh
export GEM_HOME=/usr/local/rubygems/gems
export GEM_PATH=/usr/local/rubygems/gems
export RUBYLIB=/usr/local/rubygems/lib
export PATH=/usr/local/rubygems/gems/bin:/usr/local/rubygems/bin:$PATH
source /etc/profile
Now the gem installations
gem install --version '=2.2.2' actionmailer
gem install --version '=2.2.2' activeresource activesupport
gem install --version '=1.0.1' fastthread
gem install --version '=2.7' mysql -- --with-mysql-config
gem install --version '=2.0.6' passenger
gem install --version '=0.8.3' rake
gem install --version '=2.2.2' rails
gem install --version '=1.2.4' sqlite3-ruby
gem install --version '2.0.6' passenger
passenger-install-apache2-module
====================
These are the steps followed by our hosting company on Red Hat Linux server and we are using mod_rails successfully on that server
====================But I am still getting the same error message which is already communicated to you, Can you please
provide me the steps of installation of mod_rails on new CentOS
Following are the output of whereis commands
whereis ruby
ruby: /usr/lib/ruby /usr/local/bin/ruby /usr/local/lib/ruby
whereis gemswhereis rubygems
rubygems: /usr/local/rubygems
You also need to run 'yum install mysql-devel', for the development headers.
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
This error means that the zlib Ruby extension isn't installed. You
need to make sure that it's installed.
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl