no such file to load -- rubygems
Added by Steven J about 16 years ago
Hello,
I used redmine 0.5.1 and actually try to update it to 0.7
My OS is Debian Etch and Ruby is the last version available on it with apt-get (1.8.5)
I downloaded the latest version of redmine using this command :
cd /
svn co svn://rubyforge.org/var/svn/redmine/branches/0.7-stable technique
Then I made a copy of my database configuration file :
cd /technique
cp /redmine-0.5.1/config/database.yml .
I also the informations about SMTP in : /technique/config/environement.rb
Now if I'm right I must use the command from the new redmine directory :
rake db:migrate RAILS_ENV="production" --trace
..but I obtain this message :
(in /technique)
rake aborted!
no such file to load -- rubygems
/technique/config/boot.rb:15:in `require'
/technique/config/boot.rb:15
/technique/Rakefile:4:in `require'
/technique/Rakefile:4
/usr/lib/ruby/1.8/rake.rb:1828:in `load'
/usr/lib/ruby/1.8/rake.rb:1828:in `load_rakefile'
/usr/lib/ruby/1.8/rake.rb:1900:in `run'
/usr/bin/rake:4
If I try the same command from /redmine-0.5.1 directory It seam to works :
(in /redmine-0.5.1)
Invoke db:migrate (first_time)
Invoke environment (first_time)
Execute environment
Execute db:migrate
Invoke db:schema:dump (first_time)
Invoke environment
Execute db:schema:dump
This is how looks my /technique/config/database.yml :
production:
adapter: mysql
socket: /var/run/mysqld/mysqld.sock
database: redmine
host: localhost
username: root
password:
I'm searching informations on google but found nothing that helped me.
Is someone could help me ?
thank you.
Replies (1)
RE: no such file to load -- rubygems
-
Added by Steven J about 16 years ago
Ok, I saw that there is a folder in my old redmine directory that doesn't exist in my new redmine directory.
So I had do this :
cd /technique/vendor
cp /redmine-0.5.1/vendor/rails -rf .
...and I have no error.
Is that normal ?