In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install ruby through the source code in the CentOS system, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
When using the CentOS system, we may encounter the problem of installing ruby. Next, let's propose a solution to this problem.
Download ruby first in CentOS system
Ruby code
Wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p368.tar.gz
Wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p368.tar.gz
Ruby code
Tar xzvf ruby-1.8.6-p368.tar.gz
Tar xzvf ruby-1.8.6-p368.tar.gz
Then go to the ruby-1.8.6-p368 directory
CentOS system executes Ruby code
. / config-prefix=/usr/local/ruby
. / config-prefix=/usr/local/ruby
Development, compilation and installation
Ruby code
Make & & make install
Make & & make install
Reconfigure the environment variables in the CentOS system to make them available globally:
Add after / etc/profile
Ruby code
Export PATH=/usr/local/ruby/bin:$PATH
Export PATH=/usr/local/ruby/bin:$PATH
After saving, su-
Ruby-v to see if it can be used properly.
Install rubygem under the CentOS system
Ruby code
Wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
Wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
After decompressing, go to the directory and execute ruby setup.rb to install.
Update gem after installation
Ruby code
Gem update-system
Gem update
In this way, we have finished installing the ruby environment on the CentOS system.
On how to install ruby in the CentOS system through the source code to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.