Docker Community Forums

Share and learn in the Docker community.

Error in running training/sinatra

(docker learner) #1

when I tried run this root@0b2616b0e5a8:/# gem install json getting error as Error installing json: json requires Ruby version ~> 2.0.

(Rhdsmnd) #2

Try running ‘sudo apt-get install ruby2.0-dev’ first, then ‘gem2.0 install json’. That did the trick for me. See for more info.

(John Harris) #3

Fixed with this PR.

apt-get install ruby2.0-dev didn’t work for me, had to use ruby2.0.

(Vslobody) #4

to be able to run gem2.0 you need to install ruby2.0, si the command in the example should look like:
apt-get install -y ruby2.0-dev ruby2.0