最近从CentOS转到Fedora,很多功能都不用自己编译安装了,yum install *** 就解决了,
比如安装Linux下的ASP.NET的WEB运行环境就这样:
yum install vim mono-* mariadb mariadb-* httpd haproxy redis
mono是asp.net的Linux运行环境,相当于.Net Framework
但是,装redmine时碰到一点问题,采用yum安装的是RUBY 1.9,
但我用的Redmine导入问题插件用到的Ruby1.8的特色功能“fastercsv”,没办法,只能找方法装上Ruby1.8.7,
方法如下:
#安装rvm: curl -#L https://get.rvm.io | bash -s stable ldconfig source /etc/profile rvm autolibs enable #安装运行需要的库: yum install git patch gcc-c++ readline-devel zlib-devel libyaml-devel libffi-devel openssl-devel autoconf automake libtool bison libxml2-devel libxslt-devel ImageMagick-devel #安装Ruby1.8.7 rvm install 1.8.7 #在redmine2.2.0目录中运行,安装redmine需要的组件: gem install bundler
source 'http://rubygems.org' gem "rails", "3.2.9" gem "fastercsv", "1.5.5", :platforms => [:mri_18, :mingw_18, :jruby] gem "actionmailer", "3.2.9" gem "actionpack", "3.2.9" gem "activemodel", "3.2.9" gem "activerecord", "3.2.9" gem "activeresource", "3.2.9" gem "activesupport", "3.2.9" gem "arel", "3.0.2" gem "builder", "3.0.0" gem "coderay", "1.0.8" gem "daemon_controller", "1.1.2" gem "erubis", "2.7.0" gem "fastthread", "1.0.7" gem "hike", "1.2.1" gem "i18n", "0.6.1" gem "journey", "1.0.4" gem "jquery-rails", "2.0.3" gem "json", "1.7.5" gem "mail", "2.4.4" gem "mime-types", "1.19" gem "multi_json", "1.5.0" gem "mysql2", "0.3.11" gem "passenger", "3.0.19" gem "polyglot", "0.3.3" gem "rack", "1.4.1" gem "rack-cache", "1.2" gem "rack-ssl", "1.3.2" gem "rack-test", "0.6.2" gem "railties", "3.2.9" gem "RedCloth", "4.2.9" gem "sprockets", "2.2.2" gem "thor", "0.16.0" gem "tilt", "1.3.3" gem "treetop", "1.4.12" gem "tzinfo", "0.3.35" gem "minitest" # Optional gem for LDAP authentication group :ldap do gem "net-ldap", "~> 0.3.1" end # Optional gem for OpenID authentication group :openid do gem "ruby-openid", "~> 2.1.4", :require => "openid" gem "rack-openid" end # Optional gem for exporting the gantt to a PNG file, not supported with jruby platforms :mri, :mingw do group :rmagick do # RMagick 2 supports ruby 1.9 # RMagick 1 would be fine for ruby 1.8 but Bundler does not support # different requirements for the same gem on different platforms gem "rmagick", ">= 1.0.0" end end # Database gems #platforms :mri, :mingw do # group :postgresql do # gem "pg", ">= 0.11.0" # end # # group :sqlite do # gem "sqlite3" # end #end #platforms :mri_18, :mingw_18 do # group :mysql do # gem "mysql", "~> 2.8.1" # end #end #platforms :mri_19, :mingw_19 do # group :mysql do # gem "mysql2", "~> 0.3.11" # end #end platforms :jruby do gem "jruby-openssl" group :mysql do gem "activerecord-jdbcmysql-adapter" end # group :postgresql do # gem "activerecord-jdbcpostgresql-adapter" # end # group :sqlite do # gem "activerecord-jdbcsqlite3-adapter" # end end group :development do gem "rdoc", ">= 2.4.2" gem "yard" end group :test do gem "shoulda", "~> 2.11" # Shoulda does not work nice on Ruby 1.9.3 and JRuby 1.7. # It seems to need test-unit explicitely. platforms = [:mri_19] platforms << :jruby if defined?(JRUBY_VERSION) && JRUBY_VERSION >= "1.6.7" gem "test-unit", :platforms => platforms gem "mocha", "0.12.3" end local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local") if File.exists?(local_gemfile) puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v` instance_eval File.read(local_gemfile) end # Load plugins' Gemfiles Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file| puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v` instance_eval File.read(file) end
OVER,可以运行Redmine了!