我正在尝试在Dockerfile
中安装Jekyll,扩展Jenkins官方图片(2.19.1)
以下命令:
RUN apt-get install -y ruby-full rubygems
RUN gem install jekyll
产生以下错误:
Step 2 : RUN gem install jekyll
---> Running in 197cb23c8bce
Successfully installed liquid-3.0.6
Successfully installed kramdown-1.12.0
Successfully installed mercenary-0.3.6
Successfully installed safe_yaml-1.0.4
Successfully installed colorator-1.1.0
Successfully installed rouge-1.11.1
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
"listen" from listen conflicts with installed executable from sass-listen
Successfully installed ffi-1.9.14
Successfully installed rb-inotify-0.9.7
Successfully installed rb-fsevent-0.9.7
Successfully installed sass-listen-3.0.7
Successfully installed sass-3.5.0.pre.rc.1
Successfully installed jekyll-sass-converter-1.4.0
有没有人遇到同样的错误?怎么修 ? 感谢。
答案 0 :(得分:1)
错误归因于listen
的{{3}}:
重要说明:Ruby 2.1正式过时且不受支持!请 在安装Listen之前升级到Ruby 2.2.5。
包管理器安装的ruby版本为ruby-2.1
。所以我最终通过RVM安装Ruby:
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
&& curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=jekyll
它安装了ruby-2.3和jekyll,它就像一个魅力。