Attempting to set bro pages: mime-types requires Ruby version> = 1.9.2

I try to install bro pages , but I click on the wall.

I managed to upgrade to Ruby 2.1.0:

craig@Craig-loaf:~$ ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
craig@Craig-loaf:~$ gem -v
2.2.1

But I'm trying to install bro pages, for example:

craig@Craig-loaf:~$ sudo gem install bropages
ERROR:  Error installing bropages:
    mime-types requires Ruby version >= 1.9.2.

Which doesn't make sense to me.

I found something where a similar problem occurred in Stackoverflow when another stone had problems with installation, it is recommended to add it --pre --no-ri --no-rdocto the end, but instead we get this error:

craig@Craig-loaf:~$ sudo gem install bropages --pre --no-ri --no-rdoc
[sudo] password for craig: 
ERROR:  Could not find a valid gem 'bropages' (>= 0) in any repository
ERROR:  Possible alternatives: bropages
craig@Craig-loaf:~$ sudo gem install mime-types --pre --no-ri --no-rdoc
ERROR:  Could not find a valid gem 'mime-types' (>= 0) in any repository
ERROR:  Possible alternatives: mime-types

So how can I get around this and install bropages?

+4
source share
2 answers

sudo ruby ​​( Ruby- )? UNIX, , sudo - . , , , > gem install {something} , > sudo gem install {something} , "gem".

sudo. Linux, , Mac .

'sudo ruby ​​-v' 'sudo gem -v'. , , .

+5

Ubuntu 12.10 64bit.

bropages Ruby 1.9.2, 1.8.7. , ruby ​​ bropages, .

, , , .

sudo apt-get update

sudo apt-get install curl

curl -L https://get.rvm.io | bash -s stable

source ~/.rvm/scripts/rvm

rvm requirements

rvm install ruby

rvm use ruby --default

rvm rubygems current

gem install rails

gem install bropages

, , :

bro curl
9 entries for curl -- submit your own example with "bro add curl"

# get the contents of a web page
curl http://bropages.org

        bro thanks      to upvote (22)
        bro ...no       to downvote (2)

: https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm

http://bropages.org/

+3

Source: https://habr.com/ru/post/1523718/


All Articles