RedmineをWindows11にインストール
前回はの続き。
前回はVisualSVN Serverのインストールを実施。今回はRedmine Serverのインストール。
インストール先はWindows11 pro 23H2のデスクトップPC。
Windows11 pro 23H2
Ruby 3.2.2-1
MySQL 5.7.44.0
Redmine 5.1.1
Rubyのインストール
Ruby+Devkit 3.2.2-1 (x64)をダウンロード。
https://rubyinstaller.org/downloads/
ダウンロードしたrubyinstaller-devkit-3.2.2-1-x64.exeを実行。
![](https://sugizo.info/wp-content/uploads/2023/12/ruby1.png)
![](https://sugizo.info/wp-content/uploads/2023/12/ruby2.png)
![](https://sugizo.info/wp-content/uploads/2023/12/ruby3.png)
![](https://sugizo.info/wp-content/uploads/2023/12/ruby4.png)
![](https://sugizo.info/wp-content/uploads/2023/12/ruby5.png)
![](https://sugizo.info/wp-content/uploads/2023/12/ruby6-1024x575.png)
順番に 1 2 3 Enter
Microsoft Visual C++ 再頒布可能パッケージをインストール
サポートされている最新の x64 バージョンの固定リンクからMicrosoft Visual C++ 再頒布可能パッケージをインストール。
https://aka.ms/vs/17/release/vc_redist.x64.exe
![](https://sugizo.info/wp-content/uploads/2023/12/visualC.png)
MySQLのインストール
Windows (x86, 32-bit), MSI Installer(mysql-installer-web-community-5.7.44.0.msi)をダウンロード。
https://dev.mysql.com/downloads/windows/installer/5.7.html
ダウンロードしたmysql-installer-web-community-5.7.44.0.msiを実行。
![](https://sugizo.info/wp-content/uploads/2023/12/mysql1.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql2.png)
ダウンロードが複数回失敗したが、リトライして
![](https://sugizo.info/wp-content/uploads/2023/12/mysql3.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql4.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql5.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql6.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql7.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql8.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql9.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql10.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql11.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql12.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql13.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql14.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql15.jpg)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql16.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql17.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql18.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql19.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql20.png)
![](https://sugizo.info/wp-content/uploads/2023/12/mysql21.png)
データベース作成
![](https://sugizo.info/wp-content/uploads/2023/12/mysql22.png)
CREATE DATABASE redmine CHARACTER SET utf8mb4;
![](https://sugizo.info/wp-content/uploads/2023/12/mysql23.png)
GRANT ALL PRIVILEGES ON redmine.* TO 'test1’@’localhost’;
Redmineのダウンロード
https://www.redmine.org/projects/redmine/wiki/Download
![](https://sugizo.info/wp-content/uploads/2023/12/redmine1.jpg)
ダウンロードしたredmine-5.1.1.zipをC:\app\redmineへ展開
Redmineのデータベース設定ファイル config/database.ymlの設定
C:\app\redmine\config\database.ymlの値を編集
![](https://sugizo.info/wp-content/uploads/2023/12/redmine2-1024x480.png)
Bundlerのインストール
コマンドプロンプトを管理者として実行。
cd C:\app\redmine
gem install bundler
thinの設定
gem “thin"
gem “thin_service"
pgの設定
gem “thin"
gem “thin_service"
開発キットのインストール
ridk enable
ridk install 1 2 3
ridk exec pacman -S mingw-w64-x86_64-dlfcn –-noconfirm
mysql2のgemをインストール
bundle config –local build.mysql2 –with-mysql-dir="C:\app\redmine\mysql-connector-c++-8.0.33-win32″
bundle installの実行
bundle install –without development test
秘密鍵の生成
set RUBY_DLL_PATH=C:\Program Files\MySQL\MySQL Server 5.7\bin
bundle exec rake generate_secret_token
データベースのマイグレーション
set RAILS_ENV=production
bundle exec rake db:migrate
Redmineの起動
bundle exec thin start -e production -p 3000 -a 0.0.0.0 “C:\app\redmine"
Redmineの確認
http://localhost:3000
![](https://sugizo.info/wp-content/uploads/2023/12/redmine4.png)
![](https://sugizo.info/wp-content/uploads/2023/12/redmine5.png)
![](https://sugizo.info/wp-content/uploads/2023/12/redmine6.jpg)
![](https://sugizo.info/wp-content/uploads/2023/12/redmine7.png)
プロジェクトの新規作成
![](https://sugizo.info/wp-content/uploads/2023/12/redmine8-1024x468.png)
![](https://sugizo.info/wp-content/uploads/2023/12/redmine9.png)
リポジトリ設定
![](https://sugizo.info/wp-content/uploads/2023/12/redmine10-1.png)
![](https://sugizo.info/wp-content/uploads/2023/12/redmine11.png)
リポジトリ確認
![](https://sugizo.info/wp-content/uploads/2023/12/redmine12.png)
RedmineのプロジェクトからSubversionのリポジトリを確認できました。
ただし、Webでリポジトリを確認したいだけの目的のため、今回はRedmineは使用せずに、VisualSVNのみを使用します。
以上です。
ディスカッション
コメント一覧
まだ、コメントがありません