Project

General

Profile

Redmine installation - NEED HELP Please..

Added by Jeff Chan almost 11 years ago

Hi all,

I am new to the forums and hoping to get some direction with this.

So far, I've:

1) wget http://jruby.org.s3.amazonaws.com/downloads/1.6.6/jruby-bin-1.6.6.tar.gz

2) tar xvzf jruby-bin-1.6.6.tar.gz
sudo mv jruby-1.6.6/ /usr/share/jruby-1.6.6

3) export PATH=$PATH:/usr/share/jruby-1.6.6/bin

4) jruby -v
jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (OpenJDK 64-Bit Server VM 1.7.0_25) [linux-amd64-java]

5) install gems

gem install rack -v=1.1.1
gem install rails -v=2.3.14
gem install rdoc -v=2.4.2
gem install activerecord-jdbcmysql-adapter -v=1.2.2
gem install warbler -v=1.3.2
gem install jruby-openssl -v=0.7.5
gem install rubytree -v=0.8.2
gem install i18n -v=0.4.2
gem install tree -v=0.2.1
gem install bundler

6) wget http://rubyforge.org/frs/download.php/75597/redmine-2.3.2.tar.gz
tar xvzf redmine-1.3.0.tar.gz
sudo mv redmine-1.3.0 /usr/share/redmine-1.3.0

7) cp database.yml.example database.yml

production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: redmine

8) Grant permissions

create database redmine character set utf8;
create user ‘redmine’’localhost’ IDENTIFIED BY ‘redmine’;
grant all privileges on redmine.* to ‘redmine’
’localhost’;

9 ) cd /usr/share/redmine-2.3.2
rake generate_session_store <------------- And here is the problem

WHICH OUTPUTS:

(in /usr/share/redmine-2.3.2)
Could not find gem 'rails (= 3.2.13) java' in the gems available on this machine.
Run `bundle install` to install missing gems.

So I try to "bundle install"

WHICH OUTPUTS:

OpenSSL ASN1/PKey/X509/Netscape/PKCS7 implementation unavailable
gem install bouncy-castle-java for full support.
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
NoMethodError: undefined method `add_file' for #<OpenSSL::X509::Store:0x378d0811>
bundler_cert_store at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/fetcher.rb:295
each at org/jruby/RubyArray.java:1614
bundler_cert_store at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/fetcher.rb:295
initialize at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/fetcher.rb:75
remote_specs at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:223
collect at org/jruby/RubyArray.java:2324
remote_specs at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:223
fetch_specs at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:163
specs at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:67
index at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:192
each at org/jruby/RubyArray.java:1614
index at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:189
build at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/index.rb:9
index at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:185
resolve at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:179
specs at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:114
resolve_remotely! at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:109
run at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/installer.rb:81
install at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/installer.rb:14
install at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/cli.rb:247
send at org/jruby/RubyKernel.java:2074
run at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27
invoke_task at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120
dispatch at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344
start at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434
(root) at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/bin/bundle:20
with_friendly_errors at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3
(root) at /usr/share/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.3.5/bin/bundle:20
load at org/jruby/RubyKernel.java:1052
(root) at /usr/share/jruby-1.6.6/bin/bundle:19

I also tried:

gem install bouncy-castle-java
OpenSSL ASN1/PKey/X509/Netscape/PKCS7 implementation unavailable
gem install bouncy-castle-java for full support.
ERROR: While executing gem ... (NoMethodError)
undefined method `add_file' for #<OpenSSL::X509::Store:0x5f5db8f>

Been struggling with this for a bit and would appreciate any help. Thanks in advance!


Replies (1)

RE: Redmine installation - NEED HELP Please.. - Added by Jeff Chan almost 11 years ago

I found the problem:

I was installing redmine 2.3.2 but was following a tutorial for 1.3. Instead of running:

rake generate_session_store

I needed to run:

rake generate_secret_token

    (1-1/1)