install problems creating database structure
Added by Sebastian Kopf over 16 years ago
hi guys,
i'm sory for such a newbie question but i have problems createing the database struc with rake db:migrate RAILS_ENV="production". You can barly call me a developer more like a Business Engineer who is stunned by your outstanding work..
My goal is just to setup a virtual machine with redmine running to give my company a demonstration (and hopefully convince them to implement it in our workflow)
here is what i did so far.
create virtual machine Kubuntu 8.04 using virtulbox host windows xp
installed rails 2.0.2 (ruby 1.8.6 already installed)
installed mysql 5.0
created the database
checked out redmine 7.0 (checkout folder is /home/sebastianjonas/redmine-0.7)
now im stuck with creating the initial database structure.
i dont know in wich folder i should execute rake db:migrate RAILS_ENV="production"
i tried it in /home/sebastianjonas/redmine-0.7 with the following result:
rake aborted!
no such file to load -- initializer
/home/sebastianjonas/redmine-0.7/Rakefile:4:in `require'
(See full trace by running task with --trace)
any tips where to execute the command (kubuntu) or if i missed any installstep?
thanks in advance.
Best regs
Sebastian
Replies (4)
RE: install problems creating database structure - Added by Sebastian Kopf over 16 years ago
okay. i just downloaded 0.7.3 and here is what happend.
(in /home/sebastianjonas/redmine-0.7.3)
Rails Error: Unable to access log file. Please ensure that /home/sebastianjonas/redmine-0.7.3/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
Select language: bg, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sr, sv, th, uk, zh, zh-tw [en] de
====================================
Error: No such file or directory - /tmp/mysql.sock
Default configuration data was not loaded.
i suppose i have to change something with my mysql config or with redmine folders?
anybody any idea?
regs
sebastian
RE: install problems creating database structure - Added by Thomas Lecavelier over 16 years ago
When an install guide fail, you have to read the FAQ. 5th entry:
http://www.redmine.org/wiki/redmine/FAQ#5
Better: google answer faster.
RE: install problems creating database structure - Added by Sebastian Kopf over 16 years ago
thx. for the help. worked out well. redmine is up and runnig!
mille gracie!!
RE: install problems creating database structure - Added by japan shah over 15 years ago
If your database.yml configuration is correct then and u r using mysql then u might need to install ruby mysql -
following
apt-get install libmysql-ruby