install redmine on Linux, and get rake aborted error.
Added by woodx 99 over 15 years ago
install redmine on Redhat Linux Enterprise advance Server 4 Update 3, I get an error like this:
$ rake db:migrate RAILS_ENV="production"
(in /home/webapp/running/redmine/redmine-0.8.0)
rake aborted!
no such file to load -- test/unit/error
/home/webapp/running/redmine/redmine-0.8.0/Rakefile:10:in `require'
(See full trace by running task with --trace)
how can I do? and I try the redmine-0.8.1, and I get the same error. Can anyone help me?
Replies (8)
RE: install redmine on Linux, and get rake aborted error. - Added by woodx 99 over 15 years ago
Can anyone help me?
RE: install redmine on Linux, and get rake aborted error. - Added by Jean-Baptiste Barth over 15 years ago
Try to give us a "script/about", and/or your ruby, rake, and gems version (minimum).
RE: install redmine on Linux, and get rake aborted error. - Added by woodx 99 over 15 years ago
Redmine Version: redmine-0.8.1.tar.gz or redmine-0.8.0.tar.gz
==== all blow install under user webapp ===
1. install ruby-1.9.1-p0.tar.gz
gunzip ruby-1.9.1-p0.tar.gz
tar -xvf ruby-1.9.1-p0.tar
cd ruby-1.9.1-p0
./configure --prefix=/home/webapp/appsoft/ruby
make
make install
add /home/webapp/appsoft/ruby to path in ~/.bash_profile file like this:
export PATH=/home/webapp/appsoft/ruby/bin:$PATH
and run commandline: export PATH=/home/webapp/appsoft/ruby/bin:$PATH
2 install rubygems-1.3.1.tgz
tar zxvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
ruby setup.rb
3.
gem install rails --include-dependencies
(and I try "gem install rails -v=2.1.2" too.)
4. redmine:
gunzip redmine-0.8.1.tar.gz
tar -xvf redmine-0.8.1.tar
4.
mysql> create database redmine default character set UTF8;
5. copy and edit file config/database.yml:
production:
adapter: mysql
database:redmine
host: localhost
username: myusername
password: mypassword
encoding: utf8
6. run blow:
cd redmine-0.8.1
rake db:migrate RAILS_ENV="production"
and I get and error here like above. Pls help me, thanks.
RE: install redmine on Linux, and get rake aborted error. - Added by Jean-Baptiste Barth over 15 years ago
I don't know if it is related to your problem, but if I'm not wrong ruby1.9 is not supported for the moment.
Did the "gem install rails" succeed ? I don't think you're forced to do that, since rails is provided with the tarball in "./vendor/rails" directory.
Is your rake version up to date ? (try "rake --version" and see if you have a 0.8.3)
RE: install redmine on Linux, and get rake aborted error. - Added by Eric Davis over 15 years ago
Jean-Baptiste Barth wrote:
I don't know if it is related to your problem, but if I'm not wrong ruby1.9 is not supported for the moment.
Yep, Ruby 1.9 is not supported by Redmine, Rails, and probably a few of the support libraries. Install the latest 1.8.x version of Ruby.
Eric
RE: install redmine on Linux, and get rake aborted error. - Added by woodx 99 over 15 years ago
Thanks for your reply. And I am successed for executing "gem install rails".
Later, I have try ruby 1.8.1, now: rake --version, I will get the version is ruby 1.8.1. but when I execute rake db:migrate RAILS_ENV="production" , I get the same error above.
I am new for ruby. you said that rails is provided with the tarball in "./vendor/rails" directory, but I don't know how to install rails from "./vendor/rails" directory. Please let me know, thank you very much.
RE: install redmine on Linux, and get rake aborted error. - Added by Jean-Baptiste Barth over 15 years ago
You should have a Ruby 1.8.6 or 1.8.7.
For the vendor/rails directory, it comes in your redmine main directory (you said you typed gunzip redmine-0.8.1.tar.gz and tar -xvf redmine-0.8.1.tar, it creates a directory where you will have a vendor/rails/). If rails is not installed on your machine, or with a wrong version, the rails distribution contained in "vendor/rails/" will be used. In fact you don't have to install rails if you use a stable release with a .tar.gz...
RE: install redmine on Linux, and get rake aborted error. - Added by woodx 99 over 15 years ago
Thank you very much.
I have change to Ruby 1.8.7, and all things work ok, thanks.