# Error "unrecognized option --protected" when running "gem install bluecloth"

**URL:** <https://www.ruby-forum.com/t/error-unrecognized-option-protected-when-running-gem-install-bluecloth/203820>\
**Category:** Ruby\
**Created:** [February 28, 2011, 7:10am UTC](https://www.ruby-forum.com/t/error-unrecognized-option-protected-when-running-gem-install-bluecloth/203820 "2011-02-28T07:10:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 28, 2011, 7:10am UTC](https://www.ruby-forum.com/t/error-unrecognized-option-protected-when-running-gem-install-bluecloth/203820/1 "2011-02-28T07:10:52Z")

</div>

I am running Fedora core 14 and trying to install bluecloth and am  
having problems.  
The first problem was with strcasecmp and I solved that my recompiling  
ruby to the latest 1.8.7 version, patch 334.

Now when I try to install bluecloth I get the error:  
gem install bluecloth  
Building native extensions. This could take a while…  
…

```
 Successfully installed bluecloth-2.0.11
 1 gem installed
 Installing ri documentation for bluecloth-2.0.11...

 unrecognized option `--protected'

```

If I turn on debugging I get:  
. . .  
Installing ri documentation for bluecloth-2.0.11…  
Exception `GetoptLong::InvalidOption' at /usr/lib/ruby/1.8/ getoptlong.rb:403 - unrecognized option`–protected’

Any suggestions?  
RLH

---

<div class="post-metadata">

**Author:** ![rlh100](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@rlh100](https://www.ruby-forum.com/u/rlh100)\
**Post date:** [February 28, 2011, 10:53am UTC](https://www.ruby-forum.com/t/error-unrecognized-option-protected-when-running-gem-install-bluecloth/203820/2 "2011-02-28T10:53:31Z")

</div>

On 02/27/2011 10:10 PM, rlh100 wrote:

> ```
> Successfully installed bluecloth-2.0.11
> 
> ```
> 
> Any suggestions?  
> RLH

If you just want to use the gem then you can ignore that error and read  
documentation online: [RubyDoc.info: File: README – Documentation for bluecloth (2.0.11) – RubyDoc.info](http://rubydoc.info/gems/bluecloth/2.0.11/frames)

Not sure about the error.

-Justin

---

<div class="post-metadata">

**Author:** ![rlh100](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@rlh100](https://www.ruby-forum.com/u/rlh100)\
**Post date:** [March 3, 2011, 9:01pm UTC](https://www.ruby-forum.com/t/error-unrecognized-option-protected-when-running-gem-install-bluecloth/203820/3 "2011-03-03T21:01:02Z")

</div>

On Feb 27, 2011, at 10:10 PM, rlh100 wrote:

> ```
> Successfully installed bluecloth-2.0.11
> 1 gem installed
> Installing ri documentation for bluecloth-2.0.11...
> 
> unrecognized option `--protected'
> 
> ```

This happens because the gem has an invalid RDoc option in its  
rdoc\_options. I’ll have this fixed in the next release.
