This page focuses on how to quickly install a Ruby development environment with a reliable path.System RequirementsFirst determine the operating system environment, it is not recommended to engage in Windows, so you need to use:
Mac OS X
The following code area, with a $ first representation, needs to be performed under the Console (terminal) (not including the $ symbol)
Step 1-
Https://github.com/sstephenson/rbenv
Check out rbenv into ~/.rbenv .$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
Add to your for access to the ~/.rbenv/bin $PATH rbenv command-line utility.$ Echo ' Export path= ' $HOME/.rbenv/bin: $PATH "' >> ~/.bash_profileUbuntu Desktop Note: Modify your ~/.bashrc instead of ~/.bash_profile .Zsh Note: Modify your ~/.zshrc file instead of ~/.bash_profile .
Add to rbenv init your shell to enable shims and autocompletion.$ Echo ' eval ' $
Install and configure mysql in ruby to install mysql database in rubyonrails 1. install mysql in the system: Download mysql software. you can download a lot of software from Baidu or go to the mysql Chinese official website to download and install the software, I chose to
It can be installed using sudo apt-get install ruby, but the version installed in this way is generally older. Alternatively, you can install the new version in the following ways.
1. First update the software source, using the domestic. Reference: Http://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8
2. Refresh the list:
Install and configure mysql under ruby on rails install mysql database 1. Install mysql in the system: Download mysql software, many of which can be downloaded on Baidu, or go to the mysql Chinese official website to download and install the software. I chose 5.1.62 to
Because the system was reinstalled, we tried to use rvm to install and manage Ruby and rails and record the installation process.
Install curl first
Shell code
$ Sudo apt-Get install curl
Because the rvm Installation File is obtained from GitHub through git, a local git is also required. I installed it through bu
Three ways to install Ruby in Ubuntu systemChszs, reprint need to indicate. Blog home:Http://blog.csdn.net/chszsRuby is an open-source, dynamic programming language that has a graceful syntax for building scalable Web applications. Ruby Gems is a great way to enhance the development efficiency of ruby developers.There
ObjectiveSee a lot of articles say Ruby environment is very difficult to build on windows, there will be a variety of strange problems, so it is recommended to Linux and Mac installation development. But I followed the tutorials and the questions were not too much. It took about 2.5 hours or so to complete. So don't be scared to pee, the following is the installation of the steps and specific version of the record for everyone's reference.
Installati
How to compile and install ruby source code in win7, and how to compile win7ruby source code
At work, we need to embed ruby c api in c ++ Code. However, compilation fails in the vs project, so we can find the reason by manually compiling ruby from the source code (previously installed using rubyinstaller ).
First dow
Ruby on rails gem install pg cannot be installed, rubyrails
gem install pg -v '0.18.2'Building native extensions. This could take a while...ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /Users/bevan/.rvm/gems/ruby-2.3.0/gems/pg-0.18.2/ext/Users/bevan/.rvm/rubies/
The official website said that the development environment for installing ruby-gnome2 under Ubuntu is very simple. The apt-getinstallruby-gnome2 can install many libraries with just one command. But in fact, I found this in rubyextconf. rb compilation will ignore a lot of things, so I lost a few hair, found that after installing the following libraries can execute Ruby
Ruby on Rails environment (based on Win XP)
The setup of an ROR environment is relatively simple, but there are several small points to note, which may save your mind. 1. Install Ruby first. The current version is 1.8.6.
Download here, This is an EXE file. You can simply click Next. The default installation path is C:/Ruby
Configure the Ruby environment before installing cocoapods, this article summarizes how to install the ruby environment. Installing the ruby environment requires first installing Xcode and then installing homebrew, and then installing RVM to install the
Ubuntu installation and Development Kit
$Sudo apt-Get install wget Vim build-essential OpenSSL libreadline6 libreadline6-dev curl Git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev Autoconf automake libtool ImageMagick libpcre3-dev
Step 1-install rvm
What rvm is doing is not explained here, and you will understand it later.
$Bash
After waiting for a while, you can successfu
People who have worked on Ruby projects may feel the same way. rubygems.org's access to China is too slow. Every time we install bundle, we have to wait for a long time, but when we download the corresponding gems file through a browser, the speed is refreshing... Why is this happening? Clearly, what we write in Gemfile is:
source"http://rubygems.org"
Now that bundle
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.