webistrano

阅读更多

 

 

ruby安装 http://www.iteye.com/topic/43228

 

git安装 http://www.infoq.com/cn/news/2011/01/git-adventures-install-config

 

capistrano 安装

https://github.com/capistrano/capistrano/wiki/2.x-Getting-Started

 

 

 

 

 

 wget  ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
 ./configure
 make
 make install
 
 tar -zxvf ruby-1.9.2-p180.tar.gz

 wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.zip
 unzip rubygems-1.7.2.zip

 /usr/local/bin/ruby setup.rb (最新gem要用较新的ruby)

 gem sources -a http://gems.github.com/
 
  yum  install git-core

 

 

 

 

 

 

rake aborted!
undefined local variable or method `version_requirements' for #
/root/zdx/webistrano/webistrano/vendor/rails/railties/lib/rails/gem_dependency.rb:119:in `requirement'
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:281:in `search'

 

https://gist.github.com/807008

http://pctao.org/2011/03/08/329/ 

http://www.dusike.com/centos5apachengnixmysqlxiadajianredminexiangmuguanliruanjian/

 

 

 

  332  2011-04-15 18:41:43 cd zdx/webistrano/webistrano/config/

  334  2011-04-15 18:41:48 vi environment.rb

  338  2011-04-15 18:44:56 vi config/environment.rb

 

if Gem::VERSION >= “1.3.6″
module Rails
class GemDependency
def requirement
r = super
(r == Gem::Requirement.default) ? nil : r
end
end
end
end


begin
   require File .join( File .dirname( __FILE__ ), '../vendor/plugins/engines/boot' )
rescue LoadError
# Not available
end
 
# 加入這段
if Gem:: VERSION   >= "1.3.6"
     module Rails
         class GemDependency
             def requirement
                 r = super
                 (r == Gem::Requirement.default) ? nil : r
             end
         end
     end
end
 

Rails::Initializer.run do |config|


  342  2011-04-15 18:47:50 gem install rack -v=1.0.1

  344  2011-04-15 18:49:45 gem install mysql
  345  2011-04-15 18:51:02 RAILS_ENV=production /usr/local/bin/rake db:migrate

 

 

 

   19  ruby  extconf.rb
   21  yum install openssl-devel
   22  ruby  extconf.rb
   23  make
   24  make install
   25  yum install mysql-devel
   26  gem install mysql

zlib 在ruby-1.9.2/ext/zlib
ruby  extconf.rb make make install

 gem install mongrel --pre(?http://stackoverflow.com/questions/1073841/gem-install-mongrel-fails-with-ruby-1-9-1)

 

 

 

 

 cat ./script/server
#!/usr/bin/env ruby
#require File.dirname(__FILE__) + '../config/boot'
require File.expand_path('../../config/boot', __FILE__)
require 'commands/server'


 cat ../../webistrano.1/script/server
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server'

 

 

 

ruby 187

 



[root@WGQ-Zabbix rubygems-1.3.5]# gem install mysql
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::EPIPE: Broken pipe (http://rubygems.org/gems/mysql-2.8.1.gem)
[root@WGQ-Zabbix rubygems-1.3.5]# gem -v
1.3.5
[root@WGQ-Zabbix rubygems-1.3.5]# gem sources -a http://gems.github.com/(再加一次好像可以保持打开的连接,再次install 时无 net error)


http://gems.github.com/ added to sources
[root@WGQ-Zabbix rubygems-1.3.5]#


[root@WGQ-Zabbix rubygems-1.3.5]# gem install mysql
Building native extensions.  This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...

No definition for next_result

No definition for field_name

No definition for field_table

No definition for field_def

No definition for field_type

你可能感兴趣的:(capistrano,Ruby,rubygems,Git,ITeye)