0

みんな。

bitnami redmine 1.4.1 に redmine-hudson plugin(1.0.8) をインストールしてみました。

ここのインストールガイドに従ってください。

>Installing a plugin
>
>1. Copy your plugin directory into #{RAILS_ROOT}/vendor/plugins. If you are downloading the plugin directly from GitHub, you can do so by changing into your plugin directory and issuing a command like git clone git://github.com/user_name/name_of_the_plugin.git.
>
>2. If the plugin requires a migration, run the following command to upgrade your database (make a db backup before):
>>rake db:migrate_plugins RAILS_ENV=production
>
>3. Restart Redmine
>
>You should now be able to see the plugin list in Administration -> Plugins and configure the newly installed plugin (if the plugin requires to be configured).

「rake」を実行すると、このようなエラーが表示されます。

>[root@localhost ~]# rake db:migrate RAILS_ENV=production
> 
>Some gems may need to be installed or updated.
> 
>Please run 'bundle install --without development test'.

その後....

>[root@localhost redmine]# bundle install --without development test
>
>Using rake (0.9.2.2) 
>
>Using activesupport (2.3.14) 
>
>Using rack (1.1.3) 
>
>Using actionpack (2.3.14) 
>
>Using actionmailer (2.3.14) 
>
>Using activerecord (2.3.14) 
>
>Using activeresource (2.3.14) 
>
>Using cgi_multipart_eof_fix (2.5.0) 
>
>Using coderay (1.0.6) 
>
>Using daemons (1.0.10) 
>
>Using fastercsv (1.5.4) 
>
>Using fastthread (1.0.7) 
>
>Using gem_plugin (0.2.3) 
>
>Using i18n (0.4.2) 
>
>Using mongrel (1.1.5) 
>
>Using mysql (2.8.1) 
>
>Using net-ldap (0.3.1) 
>
>Installing pg (0.13.2) with native extensions
>
>Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
> 
>> /usr/local/bin/ruby extconf.rb
> 
>checking for pg_config... yes 
>
>Using config values from /usr/bin/pg_config 
>
>checking for libpq-fe.h... yes 
>
>checking for libpq/libpq-fs.h... yes 
>
>checking for pg_config_manual.h... yes
>
>checking for PQconnectdb() in -lpq... yes 
>
>checking for PQconnectionUsedPassword()... no 
>
>Your PostgreSQL is too old. Either install an older version of this gem or upgrade your database.
> 
>*** 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.
> 
>Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/pg-0.13.2 for inspection. 
>
>Results logged to /usr/local/lib/ruby/gems/1.8/gems/pg-0.13.2/ext/gem_make.out
>
>An error occured while installing pg (0.13.2), and Bundler cannot continue. 
>
>Make sure that 'gem install pg -v '0.13.2'' succeeds before bundling.
>

それで、gemを使って「pg」をインストールしようとしました。しかし...!

>[root@localhost redmine]# gem install pg -v '0.13.2'
> 
>Building native extensions.  This could take a while...
> 
>ERROR:  Error installing pg:
> 
>>ERROR: Failed to build gem native extension.
>>
>>/usr/local/bin/ruby extconf.rb
> 
>checking for pg_config... yes 
>
>Using config values from /usr/bin/pg_config 
>
>checking for libpq-fe.h... yes 
>
>checking for libpq/libpq-fs.h... yes 
>
>checking for pg_config_manual.h... yes
>
>checking for PQconnectdb() in -lpq... yes 
>
>checking for PQconnectionUsedPassword()... no
> 
>Your PostgreSQL is too old. Either install an older version of this gem or upgrade your database.
> 
>*** 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.

この後、セットアップ方法がわかりませんでした。

誰もこの問題について知っていますか?

Bitnami Redmine パッケージには、Redmine(1.4.1)、RubyGem(1.3.6)、Ruby(1.8.7)、Rails(2.3.5) が含まれています。

これらはCentOS 5.5にインストールされています。

redmine-hudson プラグインがなくても、redmine、hudson は正常に動作しています。

私はそれを使用するために何をしなければなりませんか?

4

1 に答える 1

-2

エラー出力には次のように表示されます。

Your PostgreSQL is too old. Either install an older version of this gem 
or upgrade your database.

そのアドバイスに従う必要があります。

于 2012-05-22T17:57:11.987 に答える