Some time ago, Javaeye updated many Robbin's summary about the RoR practice, which is very deep. In particular, the question about the limitation of the RoR response is profound. Two projects were deployed in the Apache + mongrel environment in the middle of last year, and the response speed was really not optimistic. The deep analysis of the RoR deployment in Robbin is really a phrase. Today, Ubuntu7.10 was installed immediately to try the lighttpd + fcgi mode promoted by Robbin. However, there is only one 7.04 at hand that was carved N years ago.
Some time ago, Javaeye updated many Robbin's summary about the RoR practice, which is very deep. In particular, the question about the limitation of the RoR response is profound. Two projects were deployed in the Apache + mongrel environment in the middle of last year, and the response speed was really not optimistic. The deep analysis of the RoR deployment in Robbin is really a phrase. Today, Ubuntu7.10 was installed immediately to try the lighttpd + fcgi mode promoted by Robbin. However, there is only one 7 .. 04 .. carved N years ago at hand. Just pull it up first!
Install Ubuntu7.10. Let's stop talking about it. After Ubuntu is installed, we can see that 189 updates and updates have all been updated... and so on.
Then install gcc, sudo apt-get install libc6-dev .....
Download the Ruby 1.8.6 source code. I 'd like to download 1.9.0. However, it is said that 1.9.0 is not compatible with the old version. Please use 1.8.6 to compile... crazy ....
Install rubygems and download the latest 1.0.1. In the end, we need library stubs ..... A lot of English, and I want to talk about it again. I don't understand it. Execute gem, say it's not installed, gem install, and prompt that apt-get install rubygems directly ..... version 0.9.0: Spray blood. Execute the gem and prompt an error:
/Usr/bin/gem: 23: uninitialized constant Gem: GemRunner (NameError)
Don't understand, google once found an article, the following introduction:
I tried upgrading my version of rubygems to the most current version by running
Sudo gem update -- system
Which introduced this error:
/Usr/bin/gem: 23: uninitialized constant Gem: GemRunner (NameError)
Whenever I tried to run rubygems. On the rails forum, I found a fix for it!
Simply add the line to the file/usr/bin/gem (may be different on a mac)
Require 'rubygems/gem_runner'
After
Require 'rubygems'
This fixed the issue in both Ubuntu and operating system 10.4.
The general idea is to open the/usr/bin/gem file, add require 'rubygems/gem_runner 'before require 'rubygems', and run the command with the root account. It's okay to switch back to the desktop account, dumbfounded, And said an error occurred, not including the gem_runner file ..... easy to handle. We will use sudo gem for executing the gem later ....
When the time was reached, gem install rails ...... after a long time, rubyforge did not respond. Think of Javaeye before there is a post introduction, directly add-source can be installed, flip javaeye, found: gem install rails -- include-dependencies -- source http://gems.rubyonrails.org, ha, also fast, suddenly it was installed, rails-v, see 2.0.2, sudo gem list, see:
* ** Local gems ***
Actionmailer (2.0.2)
Actionpack (2.0.2)
Activerecord (2.0.2)
Activeresource (2.0.2)
Activesupport (2.0.2)
Rails (2.0.2)
Rake (0.8.1)
Haha, congratulations! The installation is successful! Now, it's time to install RoR. fcgi and lighttpd will try again tomorrow. Now we can install Apatana stido 1.1 and netbeans.
Postscript:
Now I have been running a windows 2003, spam. In fact, I have been thinking about it for a long time. If I want to change the Linux system, my friend Skyweo will give me some comments. If there are any operations that I can't do without win, there is actually nothing, it's just a game, but it seems like N + N hasn't been touched for a long time. I still want to ask the weak question: is there any bitmap operation software similar to Photoshop in Linux? Some of them are recommended.
This time I installed Ubuntu again. I had the experience of hitting the wall several times before, and I felt very smooth. Many things have been integrated. I have been considering using C for Ruby extension and calling, ruby is still weak in some aspects. It is estimated that the current version will be replaced with a Linux system in the near future.