프로젝트

일반

사용자정보

레드마인 2.3.3 설치기-실행로그 포함

김 종열이(가) 2013-11-02에 추가

기준문서를 바탕으로 레드마인드를 설치했고 문제점을 보완했습니다.
참고로 mysql, ruby 64bit로 설치는 안됨

기준 문서 :
http://www.redmine.or.kr/projects/community/wiki/%EB%A0%88%EB%93%9C%EB%A7%88%EC%9D%B8_%EC%84%A4%EC%B9%98(Windows)

설치환경
OS: Windows 7 64
DB: Mysql 5.5
32
Ruby: 1.9.3-p448 32
Redmine: 2.3.3
1. Ruby Install
http://rubyinstaller.org/downloads
rubyinstaller-1.9.3-p448.exe 버전을 다운 받는다.
D:193 에 설치
환경변수등록 path=D:193\bin
2. bundler 설치
gem install bundler
D:193>gem install bundler
Fetching: bundler-1.3.5.gem
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5…
Installing RDoc documentation for bundler-1.3.5…
3. Redmine Download
https://github.com/redmine/redmine/tags
redmine-2.3.3.zip
D:
2.3.3 으로 압축 해제

4. devkit 설치
http://rubyinstaller.org/downloads
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe를 다운 받는다.
D:으로 압축 해제

D:으로 이동
ruby dk.rb init
ruby dk.rb install
환경변수등록 path=D:

D:>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at D:/SERVER/redmine/Ruby193

Initialization complete! Please review and modify the auto-generated
‘config.yml’ file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

D:>ruby dk.rb install
[INFO] Updating convenience notice gem override for ‘D:/SERVER/redmine/Ruby193’
[INFO] Installing ‘D:/SERVER/redmine/Ruby193/lib/ruby/site_ruby/devkit.rb’

5. gem 설치
D:2.3.3\Gemfile 수정
Mysql2 의 버젼이 맞지 않음
#gem “mysql2”, “~> 0.3.11”, :platforms =>
gem “mysql2”, “= 0.3.11”, :platforms =>
cd D:
2.3.3
bundle install without development test postgresql sqlite rmagick
D:
2.3.3>bundle install
without development test postgr
esql sqlite rmagick
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake
Installing i18n
Installing multi_json
Installing activesupport
Installing builder
Installing activemodel
Installing erubis
Installing journey
Installing rack
Installing rack-cache
Installing rack-test
Installing hike
Installing tilt
Installing sprockets
Installing actionpack
Installing mime-types
Installing polyglot
Installing treetop
Installing mail
Installing actionmailer
Installing arel
Installing tzinfo
Installing activerecord
Installing activeresource
Installing coderay
Installing rack-ssl
Installing json
Installing rdoc
Installing thor
Installing railties
Installing jquery-rails
Installing mysql2
Installing net-ldap
Installing ruby-openid
Installing rack-openid
Using bundler
Installing rails
Your bundle is complete!
Gems in the groups development, test, postgresql, sqlite and rmagick were not in
stalled.
Use `bundle show ` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data
install
= 1.9.1 : gem install rdoc-data; rdoc-data
install
>= 1.9.2 : nothing to do! Yay!
Post-install message from mysql2:

You've installed the binary version of mysql2. It was built using MySQL Connector/C version 6.0.2. It's recommended to use the exact same version to avoid potential issues. At the time of building this gem, the necessary DLL files where available in the following download: http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0 .2-win32.zip/from/pick And put lib\libmysql.dll file in your Ruby bin directory, for example C:\Ruby\ bin
D:
2.3.3>

6. Mysql database & user 생성
create database redmine character set utf8;
create user ‘redmine’'localhost' identified by 'my_password'; grant all privileges on redmine.* to 'redmine'‘localhost’;

D:2.3.3>mysqlu root -p
Enter password: *
Welcome to the MySQL monitor. Commands end with ; or .
Your MySQL connection id is 2
Server version: 5.5.34 MySQL Community Server
Copyright 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘’ for help. Type ‘’ to clear the current input statement.
mysql> create database redmine character set utf8;
Query OK, 1 row affected
mysql> create user ‘redmine’'localhost' identified by 'redmine'; Query OK, 0 rows affected (0.02 sec) mysql> grant all privileges on redmine.* to 'redmine'‘localhost’;
Query OK, 0 rows affected
mysql> exit
Bye
D:2.3.3>
7. libmysql.dll
설치한 Mysql의 LIB폴더에 있는 D:Server 5.5\lib\libmysql.dll를
D:193\bin 으로 복사
8. database.yml
D:
2.3.3\config\database.yml
Localhost > 127.0.0.1
production:
adapter: mysql2
database: redmine
host: 127.0.0.1
username: redmine
password: my_password
9. session 생성
rake generate_secret_token
D:
2.3.3>rake generate_secret_token
rake aborted!
Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the
client library is 5.5.34.
D:/SERVER/redmine/redmine-2.3.3/config/application.rb:7:in `’
D:/SERVER/redmine/redmine-2.3.3/Rakefile:5:in `’

http://dev.mysql.com/downloads/connector/c/6.0.html#downloads 사이트에서 mysql-connector-c-noinstall-6.0.2.zip을 받아서 lib 밑에 있는 libmysql.dll을 넣어 준다.
D:2.3.3>cp c:connector-c-noinstall-6.0.2
win32\lib\libmysql.dll D:193\bin
D:
2.3.3>rake generate_secret_token
10. DB migrate 실행
rake db:migrate RAILS_ENV=production
….
- change_column_default
> 0.0110s
- change_column_default
> 0.0120s
RemoveIssuesDefaultFkValues: migrated (0.0700s) =
D:2.3.3>
11. 기본 데이터 입력
rake redmine:load_default_data RAILS_ENV=production
명령어 실행중에 언어선택을 하라는 메시지가 나오는데 한국어는 ko라고 입력한다.
D:
2.3.3>rake redmine:load_default_data RAILS_ENV=product
ion
Select language: ar, az, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa,
fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, r
o, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW ko

Default configuration data loaded.
D:2.3.3>
12. 서버기동
ruby script/rails server webrick
e production
D:2.3.3>ruby script/rails server webricke production
=> Booting WEBrick
=> Rails 3.2.13 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
INFO WEBrick 1.3.1
INFO ruby 1.9.3
INFO WEBrick::HTTPServer#start: pid=4228 port=3000
13. 확인
http://localhost:3000
화면이 열리면 성공 ^^


답글 (10)

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 커뮤니티 관리자이(가) 2013-11-06에 추가

안녕하세요? 커뮤니티 관리자입니다.

먼저 레드마인 커뮤니티에 많은 관심에 감사의 말씀을 드립니다.

또한 현재 최신버전에 대한 설치과정을 실행로그까지 포함해서 정리해 주셔서 감사합니다.

관리자 입장에서 이렇게 적극 협조해 주시는 분들이 계시다는 것은 참 행복한 일입니다.

저도 좀 더 분발해서 커뮤니티를 잘 관리하도록 하겠습니다.

조만간 새단장?을 할 계획인데 많은 관심과 격려 부탁드리겠습니다.

감사합니다.

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 임 용택이(가) 2014-03-25에 추가

9번 세션 생성 시에 아래와 같은 오류가 발생합니다. (물론 libmysql.dll은 교체한 상태입니다.)

C:2.5.0>rake generate_secret_token
rake aborted!
LoadError: cannot load such file
- mysql2/2.0/mysql2
C:/Server/Redmine/redmine-2.5.0/config/application.rb:7:in `’
C:/Server/Redmine/redmine-2.5.0/Rakefile:5:in `’
(See full trace by running task with trace)
아래 로그가 문제인 것 같은데 어떻게 대처를 해야하는지 모르겠네요.
LoadError: cannot load such file
mysql2/2.0/mysql2

조언 부탁 드립니다.

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 커뮤니티 관리자이(가) 2014-03-25에 추가

안녕하세요? 레드마인 커뮤니티 관리자입니다.

말씀하신 에러를 확인하기 위해서 먼저 아래와 같은 절차로 확인과 실행을 해 보시기 바랍니다.

1. mysql2 설치 확인

C:2.5.0>gem list mysql2 엔터
<pre>
* LOCAL GEMS*
mysql2
</pre>
이렇게 설치된 내역이 나오는지 확인해 보시고 아무것도 설치가 안되었다고 하면
2. mysql2 설치
C:
2.5.0>gem install mysql2 엔터

이렇게 해서 설치를 해 보시기 바랍니다.

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 임 용택이(가) 2014-03-25에 추가

우선 빠른 답변 감사합니다.

C:2.5.0>gem list mysql2
* LOCAL GEMS*
mysql2
설치가 되어 있는 것으로 출력 됩니다.
버전이 낮아서 그런가 하고 업데이트를 시도해 보니 오류가 뜨네요.
C:
2.5.0>gem update mysql2
Updating installed gems
Updating mysql2
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.

C:/Server/Redmine/Ruby200/bin/ruby.exe extconf.rb
checking for ruby/thread.h… yes
checking for rb_thread_call_without_gvl() in ruby/thread.h… yes
checking for rb_thread_blocking_region()… yes
checking for rb_wait_for_single_fd()… yes
checking for rb_hash_dup()… yes
checking for rb_intern3()… yes
checking for mysql_query() in lmysqlclient… no
checking for main in
lmysqlclient… no
checking for main() in lz… no
checking for mysql_query in
lsocket… no
checking for mysql_query() in lmysqlclient… no
checking for main in
lmysqlclient… no
checking for main() in lmygcc… no
checking for mysql_query
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
C:/Server/Redmine/Ruby200/bin/ruby.exe extconf.rb
checking for ruby/thread.h… yes
checking for rb_thread_call_without_gvl… yes
checking for rb_wait_for_single_fd… yes
checking for rb_intern3 in
lmysqlclient… no
checking for main() in lm… yes
checking for mysql_query in
lz… no
checking for mysql_query() in lmysqlclient… no
checking for main in
lmysqlclient… no
checking for main() in lnsl… no
checking for mysql_query in
lmygcc… no
checking for mysql_query() in lmysqlclient… no
* 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.
Provided configuration options:
with-opt-dir
without-opt-dir
with-opt-include
without-opt-include=${opt-dir}/include
with-opt-lib
without-opt-lib=${opt-dir}/lib
with-make-prog
without-make-prog
srcdir=.
curdir
ruby=C:/Server/Redmine/Ruby200/bin/ruby
with-mysql-dir
without-mysql-dir
with-mysql-include
without-mysql-include=${mysql-dir}/include
with-mysql-lib
without-mysql-lib=${mysql-dir}/
with-mysql-config
without-mysql-config
with-mysql-dir
without-mysql-dir
with-mysql-include
without-mysql-include=${mysql-dir}/include
with-mysql-lib
without-mysql-lib=${mysql-dir}/
with-mysqlclientlib
without-mysqlclientlib
with-mlib
without-mlib
with-mysqlclientlib
without-mysqlclientlib
with-zlib
without-zlib
with-mysqlclientlib
without-mysqlclientlib
with-socketlib
without-socketlib
with-mysqlclientlib
without-mysqlclientlib
with-nsllib
without-nsllib
with-mysqlclientlib
without-mysqlclientlib
with-mygcclib
without-mygcclib
with-mysqlclientlib
without-mysqlclientlib
Gem files will remain installed in C:/Server/Redmine/Ruby200/lib/ruby/gems/2.0.0
/gems/mysql2-0.3.15 for inspection.
Results logged to C:/Server/Redmine/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.
15/ext/mysql2/gem_make.out
중간에 makefile을 못만드다는 오류가 보이네요. 윈도우라서 그런거 같기는 한데…
생각보다 간단치는 않네요. 어디를 더 봐야할까요?
커뮤니티 관리자 wrote:
> 안녕하세요? 레드마인 커뮤니티 관리자입니다.
>
> 말씀하신 에러를 확인하기 위해서 먼저 아래와 같은 절차로 확인과 실행을 해 보시기 바랍니다.
>
> 1. mysql2 설치 확인
>
> C:
2.5.0>gem list mysql2 엔터
>
>
> […]
> 이렇게 설치된 내역이 나오는지 확인해 보시고 아무것도 설치가 안되었다고 하면
>
> 2. mysql2 설치
>
> C:–2.5.0>gem install mysql2 엔터
>
> 이렇게 해서 설치를 해 보시기 바랍니다.

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 임 용택이(가) 2014-03-31에 추가

제 질문이 좀 난감하죠? 여러가지 방법으로 설치를 시도하는 중이라서 문제점이 해결되면 보고드릴께요~

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 커뮤니티 관리자이(가) 2014-03-31에 추가

빨리 답변을 드렸어야 했는데 기다리게 해서 죄송합니다.
갑작스레 일이 많아져서(해외 출장도 다녀오고…) 같은 환경으로 재현을 못하고 있네요.
더욱 황당한 것은 맥북이 맛이 가서 오늘 수리 받고 왔어요. ㅜㅜ
언제 시간이 될지 모르겠습니다만 저도 알아 보고 답을 찾으면 올려 놓을께요. ^^

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 차 정현이(가) 2014-05-21에 추가

redmine 2.5.1 설치하는데 정말 많은 도움 됬습니다

감사합니다~

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 임 용택이(가) 2014-06-24에 추가

커뮤니티 관리자의 덧글:
> 빨리 답변을 드렸어야 했는데 기다리게 해서 죄송합니다.
> 갑작스레 일이 많아져서(해외 출장도 다녀오고…) 같은 환경으로 재현을 못하고 있네요.
> 더욱 황당한 것은 맥북이 맛이 가서 오늘 수리 받고 왔어요. ㅜㅜ
> 언제 시간이 될지 모르겠습니다만 저도 알아 보고 답을 찾으면 올려 놓을께요. ^^

위의 로그 문제의 해결법을 찾지는 못했지만 다시 처음 부터 진행하여 설치를 성공하였습니다.
대단히 감사합니다. Redmine 공식 사이트와 위의 가이드를 같이 확인해 가며 설치하니 성공했네요.
조만간 정리해서 글을 올리도록 하겠습니다~

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 김 상섭이(가) 2014-12-15에 추가

회사 방화벽 때문에 첫단계부터 막히네요

혹시 gem install bundler 입력 시
연결하려는 사이트가 어떻게 되나요?

회사에 얘기해서 해당 사이트 방화벽 해제해 달라고 하려고 하는데…

RE: 레드마인 2.3.3 설치기-실행로그 포함 - 이 이희주이(가) 2015-01-21에 추가

win7 64bit 에서 위 순서로 설치중에

rake generate_secret_token 실행시
Please configure your config/database.yml first 라고 뜹니다..

해결 방법 좀 문의 드리겠습니다.

캡처.PNG 보기 캡처.PNG 24.1 KB bundle 실행시 나온 항목 Capture 본 입니다.
database.yml.example database.yml.example 1.26 KB database.yml 설정한 값 입니다.
    (1-10/10)
    클립보드 이미지 추가 (최대 크기: 500 MB)