2012.03.04
일단 기초책을 좀 사서 익히고
설치 환경
OS : WINDOW
APM : XAMPP 1.7.7 ( 2011.12. 15
Redmine Version : 1.3.0 ( 2011.12.15)
SVN Server : VisualSVN
추가 : 개인적 취향으로 무설치 portable을 좋아하기 때문에
가능한한 portable로 설치 위주로 한다.
1.설치전 준비사항 보기
1.xampp 설치 및 다운(난 포터블 버전 받아서 사용 했음)
홈페이지 : http://www.apachefriends.org/en/xampp-windows.html
다운로드 : http://www.apachefriends.org/download.php?xampp-win32-1.7.7-VC9.zip
설치파일 :
2.redmine 1.3.0 (zip)
홈페이지 :
다운로드 : http://rubyforge.org/frs/?group_id=1850
설치파일 :
| Redmine version | Supported Ruby versions | Required Rails version | Required Rack version |
|---|---|---|---|
| current trunk | ruby 1.8.7, 1.9.2, 1.9.3 | Rails 2.3.14 | Rack 1.1.1 |
| trunk from r2887 to r4903 | ruby 1.8.6, 1.8.7 | Rails 2.3.5 | Rack 1.0.1 |
| trunk from r2493 to r2886 | ruby 1.8.6, 1.8.7 | Rails 2.2.2 | |
| trunk before r2493 | ruby 1.8.6, 1.8.7 | Rails 2.1.2 | |
| 1.3.x | ruby 1.8.6, 1.8.7 | Rails 2.3.14 | Rack 1.1.1 |
| 1.2.x | ruby 1.8.6, 1.8.7 | Rails 2.3.11 | Rack 1.1.1 |
| 1.1.x | ruby 1.8.6, 1.8.7 | Rails 2.3.5 | Rack 1.0.1 |
| 1.0.x | ruby 1.8.6, 1.8.7 | Rails 2.3.5 | Rack 1.0.1 |
| 0.9.x | ruby 1.8.6, 1.8.7 | Rails 2.3.5 | Rack 1.0.1 |
| 0.8.x | ruby 1.8.6, 1.8.7 | Rails 2.1.2 |
Official releases include the appropriate Rails version in their vendor directory so you only need to make sure
config/environment.rbfirst).3.ruby ( ruby 1.8.7) <-- 조심해라
홈페이지 : http://rubyforge.org/
다운로드 : http://rubyforge.org/frs/download.php/74296/ruby-1.8.7-p334-i386-mingw32.7z
설치파일 :
4.VisualSVN (VERSION 2.5.2 ) <-- 아쉽게도 설치본 ㅠㅠ
홈페이지 : http://www.visualsvn.com
다운로드 :
설치파일 :
2.각종 경로 및 설치 보기
1.xampp : 적당한 경로( c:\ 말고 )에 압축 푼다.
2.ruby : xampp\ruby 폴더 만들어서 거기 압축 푼다.
3.redmine : 나같은 경우는 xampp\project\redmine에 압축 풀었음.
4.visualsvn : 그냥 install 후 repo는 c:\아닌곳 아무곳
3.각종 셋팅 보기
1.xampp 설정
setup_xampp.bat 한번 실행 해주고 뭐 특별히 해줄 건 없음.
2.ruby
2-1.윈도우 환경 변수에 ruby/bin 폴더 등록한다.
2-2.환경 변수에 등록 해놔서 굳이 이동 하지 않아도 되지만
편의상 cmd에서 ruby/bin폴더로 이동한다.
2-2이후부턴 ruby/bin폴더에서 cmd로 작업한다.
2-3. ruby -v 쳐본다
출력 : ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
2-4.gem -v 쳐본다
출력 : 1.5.2
2-5. 업데이트 한번
gem update --system
출력 :
Updating rubygems-update
Fetching: rubygems-update-1.8.12.gem (100%)
Successfully installed rubygems-update-1.8.12
Installing RubyGems 1.8.12
RubyGems 1.8.12 installed
== 1.8.12 / 2011-12-02
* Bug fix:
* Handle more cases where Syck's DefaultKey showed up in requirements
and wasn't cleaned out.
------------------------------------------------------------------------------
RubyGems installed the following executables:
Fetching: rake-0.9.2.2.gem (100%)
Fetching: activesupport-2.3.14.gem (100%)
Fetching: activerecord-2.3.14.gem (100%)
Fetching: rack-1.1.2.gem (100%)
Fetching: actionpack-2.3.14.gem (100%)
Fetching: actionmailer-2.3.14.gem (100%)
Fetching: activeresource-2.3.14.gem (100%)
Fetching: rails-2.3.14.gem (100%)
Successfully installed rake-0.9.2.2
Successfully installed activesupport-2.3.14
Successfully installed activerecord-2.3.14
Successfully installed rack-1.1.2
Successfully installed actionpack-2.3.14
Successfully installed actionmailer-2.3.14
Successfully installed activeresource-2.3.14
Successfully installed rails-2.3.14
8 gems installed
Installing ri documentation for rake-0.9.2.2...
Installing ri documentation for activesupport-2.3.14...
Installing ri documentation for activerecord-2.3.14...
Installing ri documentation for rack-1.1.2...
Installing ri documentation for actionpack-2.3.14...
Installing ri documentation for actionmailer-2.3.14...
Installing ri documentation for activeresource-2.3.14...
Installing ri documentation for rails-2.3.14...
Installing RDoc documentation for rake-0.9.2.2...
Installing RDoc documentation for activesupport-2.3.14...
Installing RDoc documentation for activerecord-2.3.14...
Installing RDoc documentation for rack-1.1.2...
Installing RDoc documentation for actionpack-2.3.14...
Installing RDoc documentation for actionmailer-2.3.14...
Installing RDoc documentation for activeresource-2.3.14...
Installing RDoc documentation for rails-2.3.14...
위와 같이 설치 되는데 아주 중요한게..
이후에 설치 할 것이 gem install rack인데 위쪽 빨간 글씨보다 시피 rails 설치 시 자동으로
추가 설치가 된다.
추가 설치가 되는 건 참 고마운데 문제는 rack 자동 설치 되는 버전이 1.1.2라는 것이다.
이게 뭐가 문제가 되냐면 상단에 버전 요구사항 보면 rack은 v.1.1.1을 요구한다
고작 0.1 버전 차이인데 내 경우는 이후에 뭔가르르 할떄 죄다 에러가 났다.
그러니 걍 속편하게 초장부터 요구 버전을 철저히 맞춰 준다.
1.먼저 인스톨 된 rack 버전 확인해 본다
gem list -d rack
*** LOCAL GEMS ***
rack (1.1.2)
You have requested to uninstall the gem:
rack-1.1.2
actionpack-2.3.14 depends on [rack (~> 1.1.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] Y
Remove executables:
rackup
in addition to the gem? [Yn] Y
Removing rackup
Successfully uninstalled rack-1.1.2
*** LOCAL GEMS ***
*** LOCAL GEMS ***
F:\work\xampp\ruby\bin>gem install rack -v=1.1.1
Fetching: rack-1.1.1.gem (100%)
Successfully installed rack-1.1.1
1 gem installed
Installing ri documentation for rack-1.1.1...
Installing RDoc documentation for rack-1.1.1...
*** LOCAL GEMS ***
rack (1.1.1)
Author: Christian Neukirchen
Rubyforge: http://rubyforge.org/projects/rack
Homepage: http://rack.rubyforge.org
Installed at: F:/work/xampp/ruby/lib/ruby/gems/1.8
a modular Ruby webserver interface
Fetching: i18n-0.4.2.gem (100%)
Successfully installed i18n-0.4.2
1 gem installed
Installing ri documentation for i18n-0.4.2...
Installing RDoc documentation for i18n-0.4.2...
Fetching: gem_plugin-0.2.3.gem (100%)
Fetching: cgi_multipart_eof_fix-2.5.0.gem (100%)
Fetching: mongrel-1.1.5-x86-mingw32.gem (100%)
Successfully installed gem_plugin-0.2.3
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5-x86-mingw32
3 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5-x86-mingw32...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5-x86-mingw32...
Fetching: mysql-2.8.1-x86-mingw32.gem (100%)
Successfully installed mysql-2.8.1-x86-mingw32
1 gem installed
Installing ri documentation for mysql-2.8.1-x86-mingw32...
No definition for next_result
No definition for field_name
.......
참조 사이트 주소 :
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
참조 사이트 내용 보기
Following the steps below exactly as listed will produce a working Redmine installation hosted under http://localhost/redminesub-URI on Windows XP/2003/2008 x86/x64 with Apache HTTP Server 2.2.x, MySQL 5.1.x, PHP 5.3.x and Ruby 1.8.7.
This walk-through was tested with Redmine 1.0.4.devel.4543 but should work with any version >= 0.8 .
The intended audience for this walk-through are Windows users.
In case you encounter problems, please look at this forum thread for information about some known issues and their workarounds
ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
gem -v
1.3.7
gem install rake
Successfully installed rake-0.8.7
gem install rails -v=2.3.5
Successfully installed activesupport-2.3.5 Successfully installed activerecord-2.3.5 Successfully installed rack-1.0.1 Successfully installed actionpack-2.3.5 Successfully installed actionmailer-2.3.5 Successfully installed activeresource-2.3.5 Successfully installed rails-2.3.5 7 gems installed
gem install -v=0.4.2 i18n
Successfully installed i18n-0.4.2 1 gem installed
gem install mongrel
Successfully installed gem_plugin-0.2.3 Successfully installed cgi_multipart_eof_fix-2.5.0 Successfully installed mongrel-1.1.5-x86-mingw32 3 gems installed
gem install mysql
Successfully installed mysql-2.8.1-x86-mingw32 1 gem installed Installing ri documentation for mysql-2.8.1-x86-mingw32... No definition for (...)
cd C:\webserver\ gem install mongrel_service
Successfully installed win32-service-0.5.2-x86-mswin32 Successfully installed mongrel_service-0.3.4-x86-mswin32 2 gems installed
create database redmine character set utf8; create user 'redmineUser'@'localhost' identified by 'myPassword'; grant all privileges on redmine.* to 'redmineUser'@'localhost';
production: adapter: mysql database: redmine host: localhost username: redmineUser password: myPassword encoding: utf8
cd C:\webserver\Redmine set RAILS_ENV=production rake generate_session_store rake db:migrate
rake db:migrate
rake redmine:load_default_data
Redmine::Utils::relative_url_root = "/redmine"
# Fix for mongrel which still doesn't know about Rails 2.2's changes,
# We provide a backwards compatible wrapper around the new
# ActionController::base.relative_url_root,
# so it can still be called off of the actually non-existing
# AbstractRequest class.
module ActionController
class AbstractRequest < ActionController::Request
def self.relative_url_root=(path)
ActionController::Base.relative_url_root=(path)
end
def self.relative_url_root
ActionController::Base.relative_url_root
end
end
end
#
# Thanks to http://www.ruby-forum.com/topic/190287
mongrel_rails service::install -N mongrel_redmine_3001 -D "Mongrel serving Redmine on 3001" -p 3001 -e production -c C:\webserver\Redmine mongrel_rails service::install -N mongrel_redmine_3002 -D "Mongrel serving Redmine on 3002" -p 3002 -e production -c C:\webserver\Redmine mongrel_rails service::install -N mongrel_redmine_3003 -D "Mongrel serving Redmine on 3003" -p 3003 -e production -c C:\webserver\Redmine
net start mongrel_redmine_3001 net start mongrel_redmine_3002 net start mongrel_redmine_3003
services.msc /s
sc config mongrel_redmine_3001 start= auto
Include conf/httpd-proxy-mongrel.conf
<IfModule !mod_proxy.c>
LoadModule proxy_module modules/mod_proxy.so
</IfModule>
<IfModule !mod_proxy_http.c>
LoadModule proxy_http_module modules/mod_proxy_http.so
</IfModule>
<IfModule !mod_proxy_balancer.c>
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
</IfModule>
ProxyPass /redmine balancer://redmine_cluster
ProxyPassReverse /redmine balancer://redmine_cluster
<Proxy balancer://redmine_cluster>
BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002
BalancerMember http://127.0.0.1:3003
</Proxy>
C:\webserver\Apache\bin\httpd.exe -w -n "Apache2.2" -k stop C:\webserver\Apache\bin\httpd.exe -w -n "Apache2.2" -k start
DONE!
Your local installation of Redmine is now accessible at http://localhost/redmine
WARNING: win32-service-0.5.2-x86-mswin32 has an invalid nil value for @cert_chai
n
Successfully installed win32-service-0.5.2-x86-mswin32
Successfully installed mongrel_service-0.3.4-x86-mswin32
2 gems installed
Installing ri documentation for win32-service-0.5.2-x86-mswin32...
Installing ri documentation for mongrel_service-0.3.4-x86-mswin32...
Installing RDoc documentation for win32-service-0.5.2-x86-mswin32...
Installing RDoc documentation for mongrel_service-0.3.4-x86-mswin32...
3.redmine 설정
3-1.xampp에 apache / mysql on
3-2.mysql에 redmine 디비 생성 / 계정 생성
create database redmine character set utf8;
create user 'redmineUser'@'localhost' identified by 'myPassword';
grant all privileges on redmine.* to 'redmineUser'@'localhost';
# MySQL (default setup).
production:
adapter: mysql
database: redmine
host: localhost
username: 만든 mysql계정
password: 만든 비밀번호
encoding: utf8
문제 상황 #1.
1. 만일 rake generate_session_store 시
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on o
r after 2011-11-01.
Gem.source_index called from F:/work/xampp/project/redmine/config/../vendor/rail
s/railties/lib/rails/gem_dependency.rb:21.
rake aborted!
uninitialized constant Gem::SyckDefaultKey
(See full trace by running task with --trace)
*** LOCAL GEMS ***
rake (0.9.2.2)
Author: Jim Weirich
Rubyforge: http://rubyforge.org/projects/rake
Homepage: http://rake.rubyforge.org
Installed at: F:/work/xampp/ruby/lib/ruby/gems/1.8
You have requested to uninstall the gem:
rake-0.9.2.2
rails-2.3.14 depends on [rake (>= 0.8.3)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Remove executables:
rake
in addition to the gem? [Yn] y
Removing rake
Successfully uninstalled rake-0.9.2.2
*** LOCAL GEMS ***
Fetching: rake-0.8.7.gem (100%)
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
*** LOCAL GEMS ***
rake (0.8.7)
Author: Jim Weirich
Rubyforge: http://rubyforge.org/projects/rake
Homepage: http://rake.rubyforge.org
Installed at: F:/work/xampp/ruby/lib/ruby/gems/1.8
Ruby based make-like utility.
rake generate_session_store
rake db:migrate
해본다.
문제 상황 #2.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on o
r after 2011-11-01.
Gem.source_index called from F:/work/xampp/project/redmine/config/../vendor/rail
s/railties/lib/rails/gem_dependency.rb:21.
rake aborted!
uninitialized constant Gem::SyckDefaultKey
(See full trace by running task with --trace)
Installing RubyGems 1.3.7
RubyGems 1.3.7 installed
癤?== 1.3.7 / 2010-05-13
NOTE:
http://rubygems.org is now the default source for downloading gems.
You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org
http://gems.rubyforge.org will continue to work for the forseeable future.
New features:
* `gem` commands
* `gem install` and `gem fetch` now report alternate platforms when a
matching one couldn't be found.
* `gem contents` --prefix is now the default as specified in --help. Bug
#27211 by Mamoru Tasaka.
* `gem fetch` can fetch of old versions again. Bug #27960 by Eric Hankins.
* `gem query` and friends output now lists platforms. Bug #27856 by Greg
Hazel.
* `gem server` now allows specification of multiple gem dirs for
documentation. Bug #27573 by Yuki Sonoda.
* `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones.
* `gem unpack` now unpacks remote gems.
* --user-install is no longer the default. If you really liked it, see
Gem::ConfigFile to learn how to set it by default. (This change was made
in 1.3.6)
* RubyGems now has platform support for IronRuby. Patch #27951 by Will Green.
Bug fixes:
* Require rubygems/custom_require if --disable-gem was set. Bug #27700 by
Roger Pack.
* RubyGems now protects against exceptions being raised by plugins.
* rubygems/builder now requires user_interaction. Ruby Bug #1040 by Phillip
Toland.
* Gem::Dependency support #version_requirements= with a warning. Fix for old
Rails versions. Bug #27868 by Wei Jen Lu.
* Gem::PackageTask depends on the package dir like the other rake package
tasks so dependencies can be hooked up correctly.
------------------------------------------------------------------------------
RubyGems installed the following executables:
F:/work/xampp/ruby/bin/gem
RubyGems system software updated
Please install RDoc 2.4.2+ to generate documentation
rake db:migrate 시
문제 상황 #3.
libmysql.dll이 에러가 나서 xampp 1.7.7/mysql/lib(대략 용량이 3.81M) 의 것을 복사해서 ruby/bin에 붙여놓고
다시 해보니 이번엔 연결을 할 수 없다고 에러가 나온다.
Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version`
varchar(255) NOT NULL) ENGINE=InnoDB
참고 내것의 redmine/config/database.yml의 설정은
# MySQL (default setup).
production:
adapter: mysql
database: redmine
host: localhost
username: 아이디
password: 비번
encoding: utf8
development:
adapter: mysql
database: redmine
host: localhost
username: 아이디
password: 비번
encoding: utf8== CreateChangesetParents: migrated (0.3281s) ================================
libmysql.dll 참조한 페이지
http://railsforum.com/viewtopic.php?id=34012
ruby script/server -e production
=> Booting Mongrel
=> Rails 2.3.14 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
4.mongrel_service 남았따.
| redmine 1.3.0 설치 for window (0) | 2011/12/15 |
|---|---|
| [완료]xampp + redmine + svn(VisualSVN Server) (0) | 2011/01/04 |
| [설정]남은것 (0) | 2011/01/04 |
| [설정] 3.[이슈]redmine with VisualSVN Server 문제 (0) | 2011/01/04 |
| [설치] 2.xampp + VisualSVN 문제 (0) | 2011/01/03 |
| [설치] 1.수동설치 xampp + redmine + visualsvn for window (0) | 2011/01/01 |
1.(355p)programmatic sprite scale9Grid
2.(367p)DisplayObject.Contains(child:DisplayObject):Boolean
3.(393p)about Sprite
4.(548p)좌표간 거리
5.(751p) 각도와 삼각함수
6.(825p) 바운싱 : 축구공 포물선 궤적 후 바운싱 응용하면 좋을듯.
7.(907p) Matrix3D
8.(931p) PointAt
기타 4부 액션스크립트 응용은 좋은 내용 많음.
2011.11.26
| okgosu의 액션스크립트 정석 (0) | 2011/11/26 |
|---|
| XAMPP relocate시 WScript.Shell 에러 날 때 (0) | 2011/11/03 |
|---|
| 싱글 더블 쿼트 처리 (0) | 2011/11/03 |
|---|---|
| 특정 기호 사이 문자열 가져오기 (0) | 2010/04/30 |
| 캐릭터셋 테스팅(euc-kr, utf8) (0) | 2010/04/30 |
| php mysql에 insert시 싱글쿼츠(홑따옴표) 입력 처리 (1) | 2010/04/30 |
| [PHP]원격 프로젝트 설정 (0) | 2009/11/30 |
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 |