简体   繁体   中英

Prawn requires ruby version 1.9.3

I have ruby version 1.9.2p290 installed and prawn 0.13.0 in my 2 laptops. When I tried to install the prawn on laptop A, it was successful and I'm able to use it but when I tried it to laptop B, it prompted an error that it requires ruby -v 1.9.3

在此处输入图片说明

How will I be able to solve this issue without changing the ruby version? Thanks in advance.

Reading the Changelog for prawn 0.13.0, it says it has dropped support for Ruby 1.8.7 and 1.9.2 (See Item 4 on the Changelog link), I don't know how it worked for laptop A, but did you do it before 2 days ago? It seems prawn was just recently updated for version 0.13.0 on 12/15/2013

Perhaps using an older version of prawn would work? Prawn version 0.12.0 seems to support 1.9.2.

gem install prawn -v 0.12.0

or in your project Gemfile

gem 'prawn', '0.12.0'

查找适用于ruby 1.9.2的大虾版本,并在gemfile中设置该版本

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM