Ruby on Rails 개발 환경 구축

개발 노트 2008. 3. 27. 09:57 posted by 무병장수권력자


Ruby on Rails 개발 환경 구축하기

작성자 : 김문규
최초 작성일 : 2008. 3.27

1. One Click Ruby Installer 를 설치한다.
http://rubyinstaller.rubyforge.org

2. rails를 설치한다.
gem (ruby의 package manager)를 이용함
gem install rails -p
http://(proxy_server_ip):(proxy_server_port) --include-dependencies

3. MySQL 설치
Vista에서 문제(side-by-side 관련 에러)가 발생한다. 아래와 같은 과정으로 해결한다.

To install MySQL Server 5.0.51a in Vista
1. Disable the UAC in Windows Control Panel->User Accounts
2. Use mysql-essential-5.0.51a-win32.msi
3. In the final step uncheck "Configure MySQL Server now"
4. Download and run Resource Hacker http://www.angusj.com/resourcehacker/
5. Open ...\MySQL Server 5.0\bin\MySQLInstanceConfig.exe with Resource Hacker
6. Navigate to 24\1\1033
7. Change
<requestedExecutionLevel level="asAdministrator" uiAccess="false">
to
<requestedExecutionLevel level="requireAdministrator" uiAccess="false">
8. Press "Compile script"
9. Exit Resource Hacker and save the result (overwrite the initial MySQLInstanceConfig.exe)
10. Now MySQLInstanceConfig.exe should start normally.
11. Configure the server.
12. Sometimes the server doesn't start:
a) Check Windows Firewall settings (3306/TCP)
b) Try changing the compability mode for the file ...\MySQL Server 5.0\bin\mysqld-nt.exe to Windows XP-SP2.
13. That's all.
- from @ http://forums.mysql.com/read.php?11,195569,195569#msg-195569 -

MySQL port : 3306

4. ruby MySQL 드라이버를 설치한다.
이미 설치된 드라이버에 비하여 성능이 더 좋은 것이다. 되도록이면 설치하도록 하자.
gem install mysql -p
http://(proxy_server_ip):(proxy_server_port)