官方指导

http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step
 
解决使用了下面三步:
1, apt-get install libapache2-mod-passenger
2,a2enmod passenger
3,service apache2 restart

问题解决,apache正常启动,但是redmine运行报错。

报错如下:

[Fri Aug 09 13:54:51 2013] [notice] caught SIGTERM, shutting down
[Fri Aug 09 13:54:52 2013] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 configured -- resuming normal operations
/usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- phusion_passenger/utils (LoadError)
    from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /usr/lib/phusion_passenger/passenger-spawn-server:53:in `<main>'

看看源代码:

 ##
  # When RubyGems is required, Kernel#require is replaced with our own which
  # is capable of loading gems on demand.
  #
  # When you call <tt>require 'x'</tt>, this is what happens:
  # * If the file can be loaded from the existing Ruby loadpath, it
  #   is.
  # * Otherwise, installed gems are searched for a file that matches.
  #   If it's found in gem 'y', that gem is activated (added to the
  #   loadpath).
  #
  # The normal <tt>require</tt> functionality of returning false if
  # that file has already been loaded is preserved.   ACTIVATION_MONITOR = Monitor.new   def require path
    ACTIVATION_MONITOR.enter     spec = Gem.find_unresolved_default_spec(path)
    if spec
      Gem.remove_unresolved_default_spec(spec)
      gem(spec.name)
    end     # If there are no unresolved deps, then we can use just try
    # normal require handle loading a gem from the rescue below.     if Gem::Specification.unresolved_deps.empty? then
      return gem_original_require(path) <-------------这行报错。
    end     # If +path+ is for a gem that has already been loaded, don't
    # bother trying to find it in an unresolved gem, just go straight
    # to normal require.
    #--
    # TODO request access to the C implementation of this to speed up RubyGems     spec = Gem::Specification.find { |s|
      s.activated? and s.contains_requirable_file? path
    }

由于从来未接触过ruby,看代码,估计所依赖不足(缺少依赖)导致。

http://hooney.iteye.com/blog/259744  这个文章很有帮助。

参照http://itecsoftware.com/install-redmine-using-passenger-via-apache-on-ubuntu-10-04安装号passenger

然后其它全部使用gem install 安装其它依赖即可。参考:http://stackoverflow.com/questions/16376010/ubuntu-cannot-install-rmagick

Can't install RMagick 2.0.0. Can't find MagickCore.h.

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options. Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.9.1
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension. Building has failed. See above output for more information on the failure. Gem files will remain installed in /usr/lib/ruby/gems/1.9./gems/rmagick-2.0. for inspection.
Results logged to /usr/lib/ruby/gems/1.9./gems/rmagick-2.0./ext/RMagick/gem_make.out

使用

apt-get install imagemagick libmagickwand-dev

缺少库:

/usr/bin/ruby1.9.1 extconf.rb
checking for Ruby version >= 1.8.... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.... yes
checking for HDRI disabled version of ImageMagick... yes
checking for sys/types.h... yes
checking for magick/MagickCore.h... yes
checking for InitializeMagick() in -lMagick... no
Can't install RMagick 2.0.0. Can't find libMagick or one of the dependent libraries. Check the mkmf.log file for more detailed information. *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options. Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.9.1
--with-Magicklib
--without-Magicklib
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension. Building has failed. See above output for more information on the failure. Gem files will remain installed in /usr/lib/ruby/gems/1.9./gems/rmagick-2.0. for inspection.
Results logged to /usr/lib/ruby/gems/1.9./gems/rmagick-2.0./ext/RMagick/gem_make.out

解决:

#地板本的rmagick会出错
gem install rmagick -v 2.13. -V

问题:

Error page:
Bundler could not find compatible versions for gem "ruby-openid":
In Gemfile:
rack-openid (>= ) ruby depends on
ruby-openid (>= 2.1.) ruby ruby-openid (2.1.) (Bundler::VersionConflict)
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/resolver.rb::in `block in resolve'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/resolver.rb::in `catch'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/resolver.rb::in `resolve'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/definition.rb::in `resolve'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/definition.rb::in `specs'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/definition.rb::in `specs_for'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/definition.rb::in `requested_specs'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/environment.rb::in `requested_specs'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/runtime.rb::in `setup'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler.rb::in `setup'
/usr/lib/ruby/gems/1.9./gems/bundler-1.3./lib/bundler/setup.rb::in `<top (required)>'
/usr/local/lib/site_ruby/1.9./rubygems/core_ext/kernel_require.rb::in `require'
/usr/local/lib/site_ruby/1.9./rubygems/core_ext/kernel_require.rb::in `rescue in require'
/usr/local/lib/site_ruby/1.9./rubygems/core_ext/kernel_require.rb::in `require'
/var/lib/gems/1.8/gems/passenger-4.0./lib/phusion_passenger/loader_shared_helpers.rb::in `run_load_path_setup_code'
/var/lib/gems/1.8/gems/passenger-4.0./helper-scripts/rack-preloader.rb::in `preload_app'
/var/lib/gems/1.8/gems/passenger-4.0./helper-scripts/rack-preloader.rb::in `<module:App>'
/var/lib/gems/1.8/gems/passenger-4.0./helper-scripts/rack-preloader.rb::in `<module:PhusionPassenger>'
/var/lib/gems/1.8/gems/passenger-4.0./helper-scripts/rack-preloader.rb::in `<main>'

解决:

#删除完
gem uninstall ruby-openid
#install
gem install ruby-openid -v

Invalid command 'RailsBaseURI'的更多相关文章

  1. Apache报错信息之Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config

    今天配置开启Apache虚拟主机时, 然后日志报错提示: Invalid command 'Order', perhaps misspelled or defined by a module not ...

  2. python安装locustio报错error: invalid command 'bdist_wheel'的解决方法

    locust--scalable user load testing tool writen in Python(是用python写的.规模化.可扩展的测试性能的工具) 安装locustio需要的环境 ...

  3. Apache Error: Invalid command ‘Allow’, perhaps misspelled or defined by a module not included in the server configuration

    在一个Window Server 2008R2系统上使用Apache架设了一个PHP的网站项目 在配置Apache的过程中出现了以下问题   根据上面的提示说是没有相应的权限,那就在虚拟主机里进行了配 ...

  4. Python pip – error: invalid command ‘bdist_wheel’

    原文@http://software-engineer.gatsbylee.com/python-pip-error-invalid-command-bdist_wheel/ Python pip – ...

  5. PHP 500 -Invalid command RewriteEngine的解决

    转自:http://blog.csdn.net/wang02011/article/details/8205903 环境:   wampserver-2.1a 系统 :  win8 错误 :  500 ...

  6. zip error: Invalid command arguments

    在编译使用svn管理的android代码时,会出现如下错误: zip error: Invalid command arguments (cannot repeat names in zip file ...

  7. .htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

    php项目 .htaccess文件配置如下: #文件缓存时间配置 <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css)$"& ...

  8. sed: 1: “…”: invalid command code on Mac OS

    昨天因为项目中有很多文件的同一个变量需要批量替换成另一个,想用sed做这个.Linux 这样其实就可以了 ~# sed -i “s/string_old/string_new/g” grep -rl ...

  9. Win7系统64位环境下使用Apache——安装Apache2.4时报错“Invalid command Order”问题的解决

    之前在文章Win7系统64位环境下使用Apache--Apache2.4整合Tomcat与mod_jk提到了安装Apache2.4时有可能报错: Invalid command 'Order', pe ...

随机推荐

  1. 更新几篇之前写在公众号上的文章:线性可分时SVM理论推导;关联分析做捆绑销售和推荐;分词、去停用词和画词云

    适合阅读人群:有一定的数学基础. 这几篇文章是16年写的,之前发布在个人公众号上,公众号现已弃用.回过头来再看这几篇文章,发现写的过于稚嫩,思考也不全面,这说明我又进步了,但还是作为学习笔记记在这里了 ...

  2. Professional C# 6 and .NET Core 1.0 - Chapter 41 ASP.NET MVC

    What's In This Chapter? Features of ASP.NET MVC 6 Routing Creating Controllers Creating Views Valida ...

  3. USTC 1119 graph 图的同构

    USTC 1119 图的同构的严格定义可以参考离散数学:The simple graphs G1=(V1,E1) and G2=(V2,E2)are isomorphic if there exist ...

  4. List实现行转列的通用方案

    最近在做报表统计方面的需求,涉及到行转列报表.根据以往经验使用SQL可以比较容易完成,这次决定挑战一下直接通过代码方式完成行转列.期间遇到几个问题和用到的新知识这里整理记录一下. 阅读目录 问题介绍 ...

  5. 启程、对C的继承

    Cocoa和Object-c是苹果公司OS X和IOS操作系统的核心.   .m扩展名表示文件使用的是Objective-c代码.   与C语言一样,Objective-c使用头文件来包含结构体.符号 ...

  6. php和js中,utf-8编码转成base64编码

    1.php下转化base64编码 php中,文本文件的编码决定了程序变量的编码,比如以下代码在不同编码的php文件中,展示的效果也是不一样的 <?php $word = '严'; echo ba ...

  7. TCP四个计数器

    持续计时器 TCP 为每一个连接设有一个持续计时器. 只要 TCP 连接的一方收到对方的零窗口通知,就启动持续计时器. 若持续计时器设置的时间到期,就发送一个零窗口探测报文段(仅携带 1 字节的数据) ...

  8. 计算机网络之HTTP(上)基础知识点

    计算机网络,应该是我们编程开发.产品上线到正常的运行维护需要考虑的基本条件之一.之前我记录了一篇很简单的计算机的组成(http://www.cnblogs.com/zhangxiongcn/p/636 ...

  9. linux中添加环境变量(python为例)

    最近想用Django搭建个人博客,之前学了些python基础语法,准备边学习Django边实战操作.自己有一个阿里云服务器,用的centOS,自带的是python2.7版本,我直接安装了python3 ...

  10. HTML5之地理位置

    在HTML5中,为window.navigator对象新增了一个geolocation属性,可以使用Geolocation API来对该属性进行访问,该属性存在以下三个方法. 获取当前地理位置 voi ...