# First question in here

**URL:** <https://www.ruby-forum.com/t/first-question-in-here/121204>\
**Category:** Ruby\
**Created:** [November 25, 2007, 10:06am UTC](https://www.ruby-forum.com/t/first-question-in-here/121204 "2007-11-25T10:06:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcos\_rebelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@marcos\_rebelo](https://www.ruby-forum.com/u/marcos_rebelo)\
**Post date:** [November 25, 2007, 10:06am UTC](https://www.ruby-forum.com/t/first-question-in-here/121204/1 "2007-11-25T10:06:00Z")

</div>

Hy all

I’m new in here, so hi all for the first time. I’m a Perl and I’m  
trying to learn a second scripting language, and I liked Ruby.

I’m getting crazy with one thing, documentation. Where did you set it?

Do Ruby as support to JASON, I didn’t found it.

Best Regards  
MArcos

---

<div class="post-metadata">

**Author:** ![marcos\_rebelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@marcos\_rebelo](https://www.ruby-forum.com/u/marcos_rebelo)\
**Post date:** [November 25, 2007, 10:13am UTC](https://www.ruby-forum.com/t/first-question-in-here/121204/2 "2007-11-25T10:13:01Z")

</div>

marcos rebelo wrote:

> Best Regards  
> MArcos

> **[Ruby-Doc.org: Documenting the Ruby Language](https://ruby-doc.org/)**
>
> Fast, searchable Ruby documentation for core and standard libraries. Plus, links to tutorials, guides, books, and related sites.

If you mean “JSON”, did you try Googling “ruby+json”?

---

<div class="post-metadata">

**Author:** ![marcos\_rebelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@marcos\_rebelo](https://www.ruby-forum.com/u/marcos_rebelo)\
**Post date:** [November 25, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/first-question-in-here/121204/3 "2007-11-25T12:02:55Z")

</div>

trying to install JSON

I get diferent errors

> gem install json  
> Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> ERROR: While executing gem … (Gem::GemNotFoundException)  
> Could not find json (\> 0) in any repository

or

> gem install json  
> Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> Select which gem to install for your platform (i486-linux)

1. json 1.1.1 (mswin32)
2. json 1.1.1 (ruby)
3. json 1.1.0 (mswin32)
4. json 1.1.0 (ruby)
5. Skip this gem
6. Cancel installation

> 2  
> Building native extensions. This could take a while…  
> ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)  
> ERROR: Failed to build gem native extension.

ruby extconf.rb install json  
creating Makefile

make  
cc -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux  
-I. -fPIC -fno-strict-aliasing -g -O2 -fPIC -c unicode.c  
In file included from unicode.h:5,  
from unicode.c:3:  
/usr/lib/ruby/1.8/i486-linux/ruby.h:40:21: error: stdlib.h: No such  
file or directory  
/usr/lib/ruby/1.8/i486-linux/ruby.h:44:21: error: string.h: No such  
file or directory  
/usr/lib/ruby/1.8/i486-linux/ruby.h:54:19: error: stdio.h: No such  
file or directory  
/usr/lib/ruby/1.8/i486-linux/ruby.h:71:20: error: alloca.h: No such  
file or directory  
In file included from  
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/syslimits.h:7,  
from  
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:11,  
from /usr/lib/ruby/1.8/i486-linux/ruby.h:91,  
from unicode.h:5,  
from unicode.c:3:  
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: error:  
limits.h: No such file or directory  
In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:718,  
from unicode.h:5,  
from unicode.c:3:  
/usr/lib/ruby/1.8/i486-linux/missing.h:16:24: error: sys/time.h: No  
such file or directory  
/usr/lib/ruby/1.8/i486-linux/missing.h:25:25: error: sys/types.h: No  
such file or directory  
In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:719,  
from unicode.h:5,  
from unicode.c:3:  
/usr/lib/ruby/1.8/i486-linux/intern.h:218: error: expected declaration  
specifiers or ‘…’ before ‘fd\_set’  
/usr/lib/ruby/1.8/i486-linux/intern.h:218: error: expected declaration  
specifiers or ‘…’ before ‘fd\_set’  
/usr/lib/ruby/1.8/i486-linux/intern.h:218: error: expected declaration  
specifiers or ‘…’ before ‘fd\_set’  
/usr/lib/ruby/1.8/i486-linux/intern.h:218: warning: ‘struct timeval’  
declared inside parameter list  
/usr/lib/ruby/1.8/i486-linux/intern.h:218: warning: its scope is only  
this definition or declaration, which is probably not what you want  
/usr/lib/ruby/1.8/i486-linux/intern.h:219: warning: ‘struct timeval’  
declared inside parameter list  
/usr/lib/ruby/1.8/i486-linux/intern.h:453: warning: parameter names  
(without types) in function declaration  
In file included from unicode.h:5,  
from unicode.c:3:  
/usr/lib/ruby/1.8/i486-linux/ruby.h:728:21: error: pthread.h: No such  
file or directory  
In file included from unicode.h:5,  
from unicode.c:3:  
/usr/lib/ruby/1.8/i486-linux/ruby.h:730: error: expected ‘=’, ‘,’,  
‘;’, ‘asm’ or ‘ **attribute** ’ before ‘rb\_nativethread\_t’  
make: \*\*\* [unicode.o] Error 1

Gem files will remain installed in /var/lib/gems/1.8/gems/json-1.1.1  
for inspection.  
Results logged to  
/var/lib/gems/1.8/gems/json-1.1.1/ext/json/ext/parser/gem\_make.out

I’m using the last Ubuntu, and I’m not understanding how to install  
this JSON libraries.

Someone can help me?

thanks  
MArcos

---

<div class="post-metadata">

**Author:** ![marcos\_rebelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@marcos\_rebelo](https://www.ruby-forum.com/u/marcos_rebelo)\
**Post date:** [November 25, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/first-question-in-here/121204/4 "2007-11-25T12:15:48Z")

</div>

Hi Marcos,

On Sun, 25 Nov 2007 06:02:29 -0500  
marcos rebelo [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> trying to install JSON
> 
> I get diferent errors
> 
> > gem install json

> > gem install json

> ruby extconf.rb install json  
> creating Makefile

If you’re using Gutsy, there’s a libjson-ruby in the repositories if  
that’s any help?

cheers,

---

<div class="post-metadata">

**Author:** ![marcos\_rebelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@marcos\_rebelo](https://www.ruby-forum.com/u/marcos_rebelo)\
**Post date:** [November 26, 2007, 6:01am UTC](https://www.ruby-forum.com/t/first-question-in-here/121204/5 "2007-11-26T06:01:08Z")

</div>

Mark W. wrote:

> 

I would follow my nose in search of headers and examine the makefile.

Despite ruby gems, I find using my operating systems package management  
usually  
works best. I also prefer pure ruby implementations where possible,  
because  
it’s  
less bugger (for me) to fetch via gem. And if I was worried about  
performance  
I’d have waited for skipped ‘scripting’ languages…

Terry@Dixie$ gem search json -b  
4:51

\*\*\* LOCAL GEMS \*\*\*

\*\*\* REMOTE GEMS \*\*\*  
Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)

fjson (0.1.2, 0.1.1, 0.1.0, 0.0.9, 0.0.8, 0.0.7, 0.0.6, 0.0.5, 0.0.4,  
0.0.3,  
0.0.2, 0.0.1)  
This library is for parsing JSON strings and unparsing ruby data  
structures. This library is a fork of Florian F.'s JSON library  
with key parts implemented in C for performance improvements.

json (1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.4.3, 0.4.2,  
0.4.1,  
0.4.0)  
A JSON implementation as a Ruby extension

json\_pure (1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0)  
A JSON implementation in Ruby

Orbjson (0.0.4, 0.0.3, 0.0.2, 0.0.1)  
Lib for creating JSON-RPC server applications.

ruby-json (1.1.2, 1.1.1)  
ruby-json is a library for using JavaScript Object Notation (JSON)  
under Ruby.  
Terry@Dixie$  
4:52
