In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the "installation steps of Ubuntu 8.10 Server Ruby". In daily operation, I believe many people have doubts about the installation steps of Ubuntu 8.10 Server Ruby. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "installation steps of Ubuntu 8.10 Server Ruby". Next, please follow the editor to study!
Environment: Ubuntu8.04
1. Install build tools
Sudo aptitude install build-essential linux-headers-$ (uname-r)
two。 Install readline zlib libncurses5
Apt-get install zlib1g-dev
Apt-get install libreadline5 libreadline5-dev
Apt-get install libncurses5 libncurses5-dev
3. Install ruby
Download the source code for ruby:
Http://www.ruby-lang.org/en/downloads/
Wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p114.tar.gz
Tar xvfz ruby-1.8.6-p114.tar.gz
Cd ruby-1.8.6-p114
. / configure-- prefix=/usr/local/ruby
Sudo make
Sudo make install
After installation, add / usr/local/ruby/bin to the PATH environment variable of the operating system
Edit / etc/environment
Gedit / etc/environment
Add at the end:
PATH= "/ usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/
Bin:/sbin:/bin:/usr/games:/usr/local/ruby/bin "
Execute the command to make the environment variable changes take effect:
Source / etc/environment
4. Install gem
Wget http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz
Tar xzvf rubygems-1.0.1.tgz
Cd rubygems-1.0.1
Sudo ruby setup.rb
Verify that gem is successfully installed and upgraded
Sudo gem update-system
5. Install rails
Sudo gem install rails-include-dependencies
After installing rails, verify that the installation is successful, and you can execute:
Rails-v
Confirm the version of rails.
/ / = =
In fact, openssl-ruby is an extension of ruby (extension), it is not like other pure ruby code, can be installed with gem. In general, you need to compile.
In linux system, this is a common problem, so we must keep it in mind.
For openssl-ruby compilation.
First
Cd ruby-source/ext/openssl
Ruby extconf.rb
Make
Make install
The package required to do the above is: libssl-dev
/ / =
The following packages are installed when you gem mysql
Sudo apt-get install libmysqlclient15-dev
This means what you need to do to compile and install the company's toolkit:
1. Install build tools
Sudo aptitude install build-essential linux-headers-$ (uname-r)
two。 Install readline zlib libncurses5
Apt-get install zlib1g-dev
Apt-get install libreadline5 libreadline5-dev
Apt-get install libncurses5 libncurses5-dev
3. Install libssl-dev
Apt-get install libssl-dev
4 install the mysql compilation package
Sudo apt-get install libmysqlclient15-dev
At this point, the study on the "installation steps of Ubuntu 8.10 Server Ruby" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.