2012-05-21 98 views
0

everyone。在bitnami redmine上安裝redmine-hudson插件的麻煩1.4.1

我試圖在bitnami redmine 1.4.1上安裝redmine-hudson插件(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」時,它顯示出我這樣的錯誤。

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

,然後....

>[[email protected] 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. 
> 

所以,我試圖安裝 'PG' 使用寶石。但...!

>[[email protected] 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,哈德森正常工作。

我該怎麼做才能使用它?

回答

-2

呃,錯誤輸出說:

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

您需要聽從這一建議。