After installing Ror, you plan to run a demo.
Question 1,
$ Ruby script/Server
Rails requires rubygems> = 1.3.1 (You have 1.2.0). Please 'gem update -- system' and try again.
Question 2,
Execute as prompted:$ Sudo gem update -- SystemBut it prompts that the usage of -- system has been disabled:Error: While executing gem... (runtimeerror)Gem update -- system is disabled on Debian.
Rubygems S3 resources stored in amamzon are often stored on GFW walls, so they often encounter timeout or cannot be updated. Fortunately, someone builds a rubygems server in China and synchronizes resources every 30 minutes on average. once, pretty good
$ Gem sources-a HTTP://Ruby.taobao.org/$ Gem sources-u
This is OK. If you think that the previous rubygems.org will cause obstacles to you, you can delete
Release date: 2013-08-02Updated on:
Affected Systems:Rubygems rgpg 0.2.3Description:--------------------------------------------------------------------------------Bugtraq id: 61575
Rgpg is a simple API for interacting with gpg tools.
Rgpg passes user input that does not have valid filtering to the System () function for execution. If this API is used in the context of the rail application, if the user provides shell metacharacters similar to ";", "" in lib/rgpg/gpg_helper.rb, it is possible
Many times we will find that the real production environment is not a lot of external network, only intranet environment, this time we need to install RubyGems, we can not provide the Yum command to install online, this time we need to download the installation package for offline installation. This article is a brief introduction if you install RubyGems offlineBefore installing we briefly introduce the nex
What is RubyGems?RubyGems is a handy and powerful Ruby package manager, and Ruby's third-party plugins are managed in gem form, very easy to publish and share, and a simple command can be installed on third-party extensions. Features: Can remotely install packages, the management of dependencies between packages, simple and reliable unloading, query mechanism, can query the local and remote server package i
The solution is to use the RubyGems image of Taobao, which is a complete rubygems.org mirror, you can replace the official version, Sync frequency is currently 15 minutes to ensure that as far as possible with the official service synchronization.
How to use
Gem
Remove the old source and use the new feed instead.
Copy Code code as follows:
$ gem Sources--remove https://rubygems.org/
$ gem sources-a http://ruby.taobao.org/
$ gem s
RubyGems is a convenient and powerful Ruby package manager, similar to the RedHat RPM. It packs a Ruby application into a gem and acts as an installation unit. Features: allows you to manage dependencies between Remote Installation Package packages. the uninstallation query mechanism is simple and reliable, you can query the package information of local and remote servers. You can maintain the Web-based interface of different versions of a package and
Rubygems can be accessed through web pages, but once the command line is used to install it, it is recommended that it is blocked,
If you have installed 8 SSH according to the method on this site, you can refer to Firefox,
ProgramStill in the big wall, so we can extend the proxy to a specific program, here we use this proxy tool, proxifier
Download the tool, install it, and set the proxy server first. My options are 127.0.0.1 and port 7070,
Config
Several solutions to improve Ruby on Rails performance: rubyrails
Introduction
The Ruby On Rails framework has received wide attention since it was proposed. Under the guidance of ideas such as "do not repeat yourself" and "convention is better than configuration, rails brings high development efficiency to Web developers. The flexibility of ActiveRecord allows y
this command:
\curl -L https://get.rvm.io | bash -s stable
After it is done installing, load RVM. You may first need to exit out of your shell session and start up a new one.
source ~/.rvm/scripts/rvm
In order to work, RVM has some of its own dependences es that need to be installed. To automatically install them:
rvm requirements
You may need to enter your root password to allow the installation of these dependencies.
On occasion the zlib package may be reported as missing. The RVM page descri
The first two sections of this series have already covered how to configure the Ruby on Rails development environment, and now it's time to get to the point!Part1. Pre-development Preparation
The main task of this time is to develop the first rails program. In particular, this time I chose a (PAAs development platform), which is the Cloud 9 platform described in the
than configured. ”Ubuntu, however, is a "Debian Linux derivative release that focuses on usability." "It's the most popular Linux distribution of all these years. Even better, Ruby on Rails and Ubuntu are open source, which means they're completely free!BrieflyIn this tutorial, we use the Ruby Version Manager (RVM) script to install Ruby on Rails and RubyGems, a
The customer's server is Ubuntu + apache2 + ruby on rails. Currently, some pages on the customer's server always report the 500 error. The ruby language is only known and has not been studied in depth. I have never set up a ruby server environment, and it is strange that the customer uses ubuntu as the server. After installing ruby on rails on CentOS, I understand.Preface: problems after yum is inst
installing, load rvm. You may first need to exit out of your shell session and start up a new one.
source ~/.rvm/scripts/rvm
In order to work, rvm has some of its own dependences es that need to be installed. to automatically install them:
rvm requirements
You may need to enter your root password to allow the installation of these dependencies.
On occasion the zlib package may be reported as missing. The rvm page describes the issue and the solution in greater detail here.Step two-install Ruby
install rails
All rails are packaged in rails gem. Installing it is the easiest part of this tutorial. Use rubygems to install it, that is, the gem command. After the installation is complete, check the version to ensure that the installation is correct.··· · 50 ······· · 90
1.
$ gem
install
Development Environment Construction in Windows
This article describes how to build an RoR development environment in a Windows operating system.
1. Remote Installation
A. Step 1: download and install the Ruby one-click installation package
Download the latest Ruby 1.8.6 one-click installation package for http://rubyforge.org/frs? Group_id = 167.
Download the package and run the installation file. The installation file is displayed on the page 2-1.
Figure 1 installation program running interfa
useful packages for Ruby or rails, you can browse the Ruby Toolbox and it's easy to sort by the suite's popularity.Common directivesgem -v 告訴你 RubyGems 的版本gem update --system 升級RubyGems的版本gem install gem_name 安裝某個套件gem list 列出安裝的套件gem update gem_name 更新最新版本gem update 更新所有你安裝的Gemsgem install -v x.x.x gemname 安裝特定版本gem uninstall gem_name 反安裝
When executed
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.