在Windows上安装Redmine

时间:2013-11-27 20:40:05

标签: ruby-on-rails ruby windows redmine

我尝试在Windows 7上安装Redmine 2.4.1。

我按照以下步骤操作:

  1. C:\RailsInstaller
  2. 上安装RailsInstaller-Windows-2.2.1
  3. C:\ImageMagick
  4. 上安装ImageMagick-6.8.7-7-Q16-x64-dll

    安装完成后,我将一个名为libmySQL.dll的文件放入C:\RailsInstaller\Ruby1.9.3\bin并尝试在cmd.exe中运行以下命令

    C:\Sites\redmine-master>gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include)
    

    结果是:

    Temporarily enhancing PATH to include DevKit...
    Building native extensions.  This could take a while...
    ERROR:  Error installing rmagick:
            ERROR: Failed to build gem native extension.
    

    在我这样做后,我尝试运行:

    C:\Sites\redmine-master>gem install mysql
    

    结果是:

    You've installed the binary version of mysql.
    It was built using MySQL Connector/C version 6.0.2.
    It's recommended to use the exact same version to avoid potential issues.
    At the time of building this gem, the necessary DLL files where available
    in the following URL:
     http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip/from/pick
    You can put the lib\libmysql.dll available in this package to your Ruby bin directory.
    E.g. C:\Ruby\bin
    Successfully installed mysql-2.9.1-x86-mingw32
    1 gem installed
    Installing ri documentation for mysql-2.9.1-x86-mingw32...
    Installing RDoc documentation for mysql-2.9.1-x86-mingw32...
    

    然后我安装了bundler。

    C:\Sites\redmine-master>gem install bundler
    

    结果是:

    Fetching: bundler-1.3.5.gem (100%)
    Successfully installed bundler-1.3.5
    1 gem installed
    Installing ri documentation for bundler-1.3.5...
    Installing RDoc documentation for bundler-1.3.5...
    

    最后我尝试运行

    rake generate_secret_token
    

    结果是:

    C:\Sites\redmine-master>rake generate_secret_token
    ←[31mCould not find gem 'database_cleaner (>= 0) x86-mingw32' in the gems availa
    ble on this machine.←[0m
    ←[33mRun `bundle install` to install missing gems.←[0m
    

    请告诉我如何解决这个问题。

0 个答案:

没有答案