首頁  >  問答  >  主體

centos6.3 nginx 設定redmine 的過程中 使用 bundle install --without development test 報錯

雷雷
大家讲道理大家讲道理2712 天前701

全部回覆(1)我來回復

  • 大家讲道理

    大家讲道理2017-05-16 17:31:48

    這個錯誤的原因是沒有PostgreSql的dev包,不能成功編譯PostgreSql的客戶端;解決方法有兩個:

    1)安裝dev包

    用套件管理來安裝,RedHat係是

    yum install postgresql-devel

    Debian係是:

    apt-get install libpg-dev

    2)如果你不打算用PostgreSql來當Redmine的資料庫,可以用下面的指令來忽略對應的gem:

    bundle install --without development test postgresql

    你還可以忽略sqlite和rmagick(都有依賴的):

    bundle install --without development test postgresql sqlite rmagick

    回覆
    0
  • 取消回覆