Linux(CentOS7)にRedmineを導入していました。参考にしたのは以下のサイトです。
Redmine.jp 自動インストール方法
しかし最後にbundleをインストールする部分で失敗してしまいました。(gemで失敗?エラーログを残し忘れました。。。)
そこでこちらのサイトを参考にbundleのみのインストールを試みましたが、以下のエラーが発生しました。
[root@localhost ~]# cd /var/lib/redmine/ [root@localhost redmine]# bundle install --without development test --path vendor/bundle Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. [!] There was an error parsing `Gemfile`: (<unknown>): did not find expected key while parsing a block mapping at line 2 column 3. Bundler cannot continue. # from /var/lib/redmine/Gemfile:62 # ------------------------------------------- # if File.exist?(database_file) > database_config = YAML::load(ERB.new(IO.read(database_file)).result) # adapters = database_config.values.map {|c| c['adapter']}.compact.uniq # -------------------------------------------
試しにrootではない通常ユーザーでもインストールしてみましたが、以下のエラーが出ました。
There was an error while trying to write to `/var/lib/redmine/.bundle/config`. It is likely that you need to grant write permissions for that path.
/var/lib/redmine/Gemfile:62というファイルをvimで開いても白紙ですし、GUIで探しても見当たりません。
何が原因でしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。