Zhou haihan 2010.7.12
Ubuntu 10.04 has the following problems when installing Ruby and rails:
'Require ': no such file to load -- mkmf (loaderror)
Installation Process:
Install ruby1.9.1
Zhouhh @ zhh64 :~ $ Sudo apt-Get install ruby1.9.1-full
Zhouhh @ zhh64 :~ $ Sudo apt-Get in
Ruby on Rails can be installed in two ways.
1. Direct Installation
We can download Ruby on Rails from the official website.:Http://rubyonrails.org/
After the download is complete, you can directly install it. It cannot be installed in a path with Chinese characters or it
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/g
Download the integration pack: http://railsinstaller.org/en the rest of the little things other tutorials can also be found, here is not much to say.
After installation, open the Rbreadline.rb file under ruby2.1.0\lib\ruby\site_ruby\2.1.0 in the installation directory, which can be opened using Notepad. Then change require ' DL ' to require ' findle '
Open the command line and execute the following command
$ gem Sources--remove https://rubygem
Update:An updated version of these instructions for Ubuntu 12.10 (quantal Quetzal) is available here.
1. Install the prerequisites
sudo apt-get install openjdk-7-jdk libjpeg62 libwebkitgtk-1.0-0 git-core
Although Aptana Studio doesn't officially support openjdk, I 've not encountered any problems, however I 've not done extensive testing. Alternatively, to use the Sun JDK, do the following:
sudo apt-get
Document reprinted by Fire Site Building InstituteTo install the oracle driver using gem in ruby on rails, see the original article:
Reference content is as follows:[1] viewing locally installed plug-insGem list orGem list -- local[2] viewing remote available plug-insGem list -- romote[3] viewing oracle driversGem list -- remote | grep oracleThe resu
About Ruby on Rails
Ruby on Rails is an application stack that provides developers with a framework to quickly create a variety of Web applications. ruby on Rails does take a little while to i
automatically creates the file structure and initializes the template according to the MVC model. The file structure after creation is as follows:Note: If you do not create a successful, please do not worry, it may be some dependent file virtual machine is not the default, then you need to follow the failure of the prompt information, install the corresponding dependent package. Rebuild after installation is complete.(2) Modify the Gemfile file and
Keywords: Ruby on Rails, instantrails, windows, getting started, tutorial
I always wanted to try Ruby on Rails, but I was not familiar with Apache and MySQL, and I was not confident in setting up the rails environment. So I never started. After learning about instantrails,
Introduction: Ruby on Rails is just one aspect of making Ruby very powerful, just as EJB is part of the Java Enterprise platform. Andrew Glover reveals what Java developers can do with Ruby.
Before I begin this article, I need to clarify a few things. First, it's not an article about
, and you'll also be able to make it easy. To consume a Web Service based on the Rest API provided by a third party, like using the Model of basic data.
Through search engines, you can find many similar articles that use rails for rapid development, such as creating a Blog system with Ruby on rails for 15 minutes. Ruby
I have always been very interested in Ruby on Rails. I want to see something that has been praised by many people, but I have been working on windows development, it is still a headache to build the development environment of Ruby on Rails, Which is why Ruby on
applications and display HTML pages to users without any effort, you can also provide a Rest API-based Web Service. In addition, you can easily consume the Rest API-based Web Service provided by a third party just like using a basic data Model.
By using the search engine, you can find many articles similar to using Ruby On Rails to create a Blog system within 15 minutes, such as using
1. Auxiliary methods2. StringEnter "IRB" into the ruby command-line development environment, and the controller starts by executing "rails console" on the command line.(1) String connection>>"foo"+"bar"="foobar" (2) Interpolation by special syntax #{}>>first_name="Amy" ="Amy">>" #{first_name} Sun"+"Amy Sun "(3) The difference between a single-quote string and a double-quote string: Single-quote strings 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
and access the methods and variables in your Rail application. This tutorial explains how to configure and use RJB in a Rails application.
Goal
In this tutorial, you will learn how to:
Download, compile, and install RJB
Set up RJB to access the shared Java library
Load Legacy Java code into a Rails application and acces
builds MAC user can see "install Ruby on Rails-mac OS x" article, will keep updating. Linux users can see the "install Ruby on rails-ubuntu" article, which will be updated continuously. The above two installation tutorials are ve
Several programming skills for accelerating Ruby on Rails, rubyrails
Ruby is often praised for its flexibility. As Dick Sites says, you can "Program for programming ". Ruby on Rails extends the core Ruby language, but
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.