[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem + libxml

Mikael Larsson

3/10/2006 8:45:00 PM

Hi

Wat is wrong here ?? Do I need ruby source?

linux:~ #
linux:~ # ruby -v
ruby 1.8.2 (2004-12-25) [i586-linux]
linux:~ # gem -v
0.8.11
linux:~ # gem install libxml-ruby
Attempting local installation of 'libxml-ruby'
Local gem file not found: libxml-ruby*.gem
Attempting remote installation of 'libxml-ruby'
Building native extensions. This could take a while...
can't find header files for ruby.
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6 for inspection.
ruby extconf.rb install libxml-ruby\n

Results logged to
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out
linux:~ # cat
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out
ruby extconf.rb install libxml-ruby
linux:~ #

Thanks

//Mike


5 Answers

Ross Bamford

3/11/2006 8:38:00 AM

0

On Sat, 2006-03-11 at 05:45 +0900, Mikael Larsson wrote:
> Hi
>
> Wat is wrong here ?? Do I need ruby source?
>
> linux:~ #
> linux:~ # ruby -v
> ruby 1.8.2 (2004-12-25) [i586-linux]
> linux:~ # gem -v
> 0.8.11
> linux:~ # gem install libxml-ruby
> Attempting local installation of 'libxml-ruby'
> Local gem file not found: libxml-ruby*.gem
> Attempting remote installation of 'libxml-ruby'
> Building native extensions. This could take a while...
> can't find header files for ruby.
> ERROR: While executing gem ... (RuntimeError)
> ERROR: Failed to build gem native extension.
> Gem files will remain installed in
> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6 for inspection.
> ruby extconf.rb install libxml-ruby\n
>
> Results logged to
> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out
> linux:~ # cat
> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out
> ruby extconf.rb install libxml-ruby
> linux:~ #

Hmm, I think that the Ruby headers should always be installed, in your
case it looks like they should be at:

/usr/lib/ruby/1.8/i586-linux/

Could you verify the presence (or absence) of a bunch of .h files at
that location? If they're not there, then you should probably grab a new
Ruby install (is this one a package from your distro?).

--
Ross Bamford - rosco@roscopeco.REMOVE.co.uk



Mikael Larsson

3/11/2006 9:22:00 AM

0

Ross Bamford wrote:
> On Sat, 2006-03-11 at 05:45 +0900, Mikael Larsson wrote:
>
>> Hi
>>
>> Wat is wrong here ?? Do I need ruby source?
>>
>> linux:~ #
>> linux:~ # ruby -v
>> ruby 1.8.2 (2004-12-25) [i586-linux]
>> linux:~ # gem -v
>> 0.8.11
>> linux:~ # gem install libxml-ruby
>> Attempting local installation of 'libxml-ruby'
>> Local gem file not found: libxml-ruby*.gem
>> Attempting remote installation of 'libxml-ruby'
>> Building native extensions. This could take a while...
>> can't find header files for ruby.
>> ERROR: While executing gem ... (RuntimeError)
>> ERROR: Failed to build gem native extension.
>> Gem files will remain installed in
>> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6 for inspection.
>> ruby extconf.rb install libxml-ruby\n
>>
>> Results logged to
>> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out
>> linux:~ # cat
>> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out
>> ruby extconf.rb install libxml-ruby
>> linux:~ #micke@linux:~/dvl/nexus/nexpre> ll /usr/lib/ruby/1.8/i586-linux/
>> total 864
>> -rwxr-xr-x 1 root root 39492 2006-01-26 15:02 bigdecimal.so
>> -rwxr-xr-x 1 root root 43408 2006-01-26 15:02 curses.so
>> -rwxr-xr-x 1 root root 17212 2006-01-26 15:02 dbm.so
>> drwxr-xr-x 2 root root 152 2006-03-03 09:30 digest
>> -rwxr-xr-x 1 root root 7236 2006-01-26 15:02 digest.so
>> -rwxr-xr-x 1 root root 72872 2006-01-26 15:02 dl.so
>> -rwxr-xr-x 1 root root 6904 2006-01-26 15:02 enumerator.so
>> -rwxr-xr-x 1 root root 8144 2006-01-26 15:02 etc.so
>> -rwxr-xr-x 1 root root 4364 2006-01-26 15:02 fcntl.so
>> -rwxr-xr-x 1 root root 18552 2006-01-26 15:02 gdbm.so
>> -rwxr-xr-x 1 root root 13036 2006-01-26 15:02 iconv.so
>> drwxr-xr-x 2 root root 72 2006-03-03 09:30 io
>> -rwxr-xr-x 1 root root 135712 2006-01-26 15:02 nkf.so
>> -rwxr-xr-x 1 root root 217928 2006-01-26 15:02 openssl.so
>> -rwxr-xr-x 1 root root 8960 2006-01-26 15:02 pty.so
>> drwxr-xr-x 2 root root 80 2006-03-03 09:30 racc
>> -rw-r--r-- 1 root root 6619 2006-01-26 15:00 rbconfig.rb
>> -rwxr-xr-x 1 root root 14972 2006-01-26 15:02 readline.so
>> -rwxr-xr-x 1 root root 22940 2006-01-26 15:02 sdbm.so
>> -rwxr-xr-x 1 root root 35688 2006-01-26 15:02 socket.so
>> -rwxr-xr-x 1 root root 16708 2006-01-26 15:02 stringio.so
>> -rwxr-xr-x 1 root root 15552 2006-01-26 15:02 strscan.so
>> -rwxr-xr-x 1 root root 89536 2006-01-26 15:02 syck.so
>> -rwxr-xr-x 1 root root 10560 2006-01-26 15:02 syslog.so
>> -rwxr-xr-x 1 root root 33008 2006-01-26 15:02 zlib.so
>>
>>
>
> Hmm, I think that the Ruby headers should always be installed, in your
> case it looks like they should be at:
>
> /usr/lib/ruby/1.8/i586-linux/
>
> Could you verify the presence (or absence) of a bunch of .h files at
> that location? If they're not there, then you should probably grab a new
> Ruby install (is this one a package from your distro?).
>
>
found this
micke@linux:~/dvl/nexus/nexpre> ll /usr/lib/ruby/1.8/i586-linux/
total 864
-rwxr-xr-x 1 root root 39492 2006-01-26 15:02 bigdecimal.so
-rwxr-xr-x 1 root root 43408 2006-01-26 15:02 curses.so
-rwxr-xr-x 1 root root 17212 2006-01-26 15:02 dbm.so
drwxr-xr-x 2 root root 152 2006-03-03 09:30 digest
-rwxr-xr-x 1 root root 7236 2006-01-26 15:02 digest.so
-rwxr-xr-x 1 root root 72872 2006-01-26 15:02 dl.so
-rwxr-xr-x 1 root root 6904 2006-01-26 15:02 enumerator.so
-rwxr-xr-x 1 root root 8144 2006-01-26 15:02 etc.so
-rwxr-xr-x 1 root root 4364 2006-01-26 15:02 fcntl.so
-rwxr-xr-x 1 root root 18552 2006-01-26 15:02 gdbm.so
-rwxr-xr-x 1 root root 13036 2006-01-26 15:02 iconv.so
drwxr-xr-x 2 root root 72 2006-03-03 09:30 io
-rwxr-xr-x 1 root root 135712 2006-01-26 15:02 nkf.so
-rwxr-xr-x 1 root root 217928 2006-01-26 15:02 openssl.so
-rwxr-xr-x 1 root root 8960 2006-01-26 15:02 pty.so
drwxr-xr-x 2 root root 80 2006-03-03 09:30 racc
-rw-r--r-- 1 root root 6619 2006-01-26 15:00 rbconfig.rb
-rwxr-xr-x 1 root root 14972 2006-01-26 15:02 readline.so
-rwxr-xr-x 1 root root 22940 2006-01-26 15:02 sdbm.so
-rwxr-xr-x 1 root root 35688 2006-01-26 15:02 socket.so
-rwxr-xr-x 1 root root 16708 2006-01-26 15:02 stringio.so
-rwxr-xr-x 1 root root 15552 2006-01-26 15:02 strscan.so
-rwxr-xr-x 1 root root 89536 2006-01-26 15:02 syck.so
-rwxr-xr-x 1 root root 10560 2006-01-26 15:02 syslog.so
-rwxr-xr-x 1 root root 33008 2006-01-26 15:02 zlib.so

Ruby comes with distro ( SUSE 10)

//Mike


Ross Bamford

3/11/2006 9:35:00 AM

0

On Sat, 2006-03-11 at 18:22 +0900, Mikael Larsson wrote:
> Ross Bamford wrote:
> > On Sat, 2006-03-11 at 05:45 +0900, Mikael Larsson wrote:
> >
> >> Hi
> >>
> >> Wat is wrong here ?? Do I need ruby source?
> >>
> >> linux:~ #
> >> linux:~ # ruby -v
> >> ruby 1.8.2 (2004-12-25) [i586-linux]
> >> linux:~ # gem -v
> >> 0.8.11
> >> linux:~ # gem install libxml-ruby
> >> Attempting local installation of 'libxml-ruby'
> >> Local gem file not found: libxml-ruby*.gem
> >> Attempting remote installation of 'libxml-ruby'
> >> Building native extensions. This could take a while...
> >> can't find header files for ruby.
> >> ERROR: While executing gem ... (RuntimeError)
> >> ERROR: Failed to build gem native extension.
> >> Gem files will remain installed in
> >> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6 for inspection.
> >> ruby extconf.rb install libxml-ruby\n
> >>
> >
> > Hmm, I think that the Ruby headers should always be installed, in your
> > case it looks like they should be at:
> >
> > /usr/lib/ruby/1.8/i586-linux/
> >
> > Could you verify the presence (or absence) of a bunch of .h files at
> > that location? If they're not there, then you should probably grab a new
> > Ruby install (is this one a package from your distro?).
> >
> >
> found this
> micke@linux:~/dvl/nexus/nexpre> ll /usr/lib/ruby/1.8/i586-linux/
> total 864
> -rwxr-xr-x 1 root root 39492 2006-01-26 15:02 bigdecimal.so
> -rwxr-xr-x 1 root root 43408 2006-01-26 15:02 curses.so
> -rwxr-xr-x 1 root root 17212 2006-01-26 15:02 dbm.so
> drwxr-xr-x 2 root root 152 2006-03-03 09:30 digest
> -rwxr-xr-x 1 root root 7236 2006-01-26 15:02 digest.so
> -rwxr-xr-x 1 root root 72872 2006-01-26 15:02 dl.so
> -rwxr-xr-x 1 root root 6904 2006-01-26 15:02 enumerator.so
> -rwxr-xr-x 1 root root 8144 2006-01-26 15:02 etc.so
> -rwxr-xr-x 1 root root 4364 2006-01-26 15:02 fcntl.so
> -rwxr-xr-x 1 root root 18552 2006-01-26 15:02 gdbm.so
> -rwxr-xr-x 1 root root 13036 2006-01-26 15:02 iconv.so
> drwxr-xr-x 2 root root 72 2006-03-03 09:30 io
> -rwxr-xr-x 1 root root 135712 2006-01-26 15:02 nkf.so
> -rwxr-xr-x 1 root root 217928 2006-01-26 15:02 openssl.so
> -rwxr-xr-x 1 root root 8960 2006-01-26 15:02 pty.so
> drwxr-xr-x 2 root root 80 2006-03-03 09:30 racc
> -rw-r--r-- 1 root root 6619 2006-01-26 15:00 rbconfig.rb
> -rwxr-xr-x 1 root root 14972 2006-01-26 15:02 readline.so
> -rwxr-xr-x 1 root root 22940 2006-01-26 15:02 sdbm.so
> -rwxr-xr-x 1 root root 35688 2006-01-26 15:02 socket.so
> -rwxr-xr-x 1 root root 16708 2006-01-26 15:02 stringio.so
> -rwxr-xr-x 1 root root 15552 2006-01-26 15:02 strscan.so
> -rwxr-xr-x 1 root root 89536 2006-01-26 15:02 syck.so
> -rwxr-xr-x 1 root root 10560 2006-01-26 15:02 syslog.so
> -rwxr-xr-x 1 root root 33008 2006-01-26 15:02 zlib.so
>
> Ruby comes with distro ( SUSE 10)
>
> //Mike

Okay, it seems you're missing the headers. Couple of things you might
try:

+ Does Suse have a ruby-devel package ? If so, get that.

+ Beg/borrow/steal the appropriate headers, and copy them to
that directory (maybe not a good idea).

+ Alternatively, grab a copy of the source and build it
yourself. You could upgrade to 1.8.4 at the same time ;)

--
Ross Bamford - rosco@roscopeco.REMOVE.co.uk



Mikael Larsson

3/11/2006 9:51:00 AM

0

Ross Bamford wrote:
> On Sat, 2006-03-11 at 18:22 +0900, Mikael Larsson wrote:
>
>> Ross Bamford wrote:
>>
>>> On Sat, 2006-03-11 at 05:45 +0900, Mikael Larsson wrote:
>>>
>>>
>>>> Hi
>>>>
>>>> Wat is wrong here ?? Do I need ruby source?
>>>>
>>>> linux:~ #
>>>> linux:~ # ruby -v
>>>> ruby 1.8.2 (2004-12-25) [i586-linux]
>>>> linux:~ # gem -v
>>>> 0.8.11
>>>> linux:~ # gem install libxml-ruby
>>>> Attempting local installation of 'libxml-ruby'
>>>> Local gem file not found: libxml-ruby*.gem
>>>> Attempting remote installation of 'libxml-ruby'
>>>> Building native extensions. This could take a while...
>>>> can't find header files for ruby.
>>>> ERROR: While executing gem ... (RuntimeError)
>>>> ERROR: Failed to build gem native extension.
>>>> Gem files will remain installed in
>>>> /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6 for inspection.
>>>> ruby extconf.rb install libxml-ruby\n
>>>>
>>>>
>>> Hmm, I think that the Ruby headers should always be installed, in your
>>> case it looks like they should be at:
>>>
>>> /usr/lib/ruby/1.8/i586-linux/
>>>
>>> Could you verify the presence (or absence) of a bunch of .h files at
>>> that location? If they're not there, then you should probably grab a new
>>> Ruby install (is this one a package from your distro?).
>>>
>>>
>>>
>> found this
>> micke@linux:~/dvl/nexus/nexpre> ll /usr/lib/ruby/1.8/i586-linux/
>> total 864
>> -rwxr-xr-x 1 root root 39492 2006-01-26 15:02 bigdecimal.so
>> -rwxr-xr-x 1 root root 43408 2006-01-26 15:02 curses.so
>> -rwxr-xr-x 1 root root 17212 2006-01-26 15:02 dbm.so
>> drwxr-xr-x 2 root root 152 2006-03-03 09:30 digest
>> -rwxr-xr-x 1 root root 7236 2006-01-26 15:02 digest.so
>> -rwxr-xr-x 1 root root 72872 2006-01-26 15:02 dl.so
>> -rwxr-xr-x 1 root root 6904 2006-01-26 15:02 enumerator.so
>> -rwxr-xr-x 1 root root 8144 2006-01-26 15:02 etc.so
>> -rwxr-xr-x 1 root root 4364 2006-01-26 15:02 fcntl.so
>> -rwxr-xr-x 1 root root 18552 2006-01-26 15:02 gdbm.so
>> -rwxr-xr-x 1 root root 13036 2006-01-26 15:02 iconv.so
>> drwxr-xr-x 2 root root 72 2006-03-03 09:30 io
>> -rwxr-xr-x 1 root root 135712 2006-01-26 15:02 nkf.so
>> -rwxr-xr-x 1 root root 217928 2006-01-26 15:02 openssl.so
>> -rwxr-xr-x 1 root root 8960 2006-01-26 15:02 pty.so
>> drwxr-xr-x 2 root root 80 2006-03-03 09:30 racc
>> -rw-r--r-- 1 root root 6619 2006-01-26 15:00 rbconfig.rb
>> -rwxr-xr-x 1 root root 14972 2006-01-26 15:02 readline.so
>> -rwxr-xr-x 1 root root 22940 2006-01-26 15:02 sdbm.so
>> -rwxr-xr-x 1 root root 35688 2006-01-26 15:02 socket.so
>> -rwxr-xr-x 1 root root 16708 2006-01-26 15:02 stringio.so
>> -rwxr-xr-x 1 root root 15552 2006-01-26 15:02 strscan.so
>> -rwxr-xr-x 1 root root 89536 2006-01-26 15:02 syck.so
>> -rwxr-xr-x 1 root root 10560 2006-01-26 15:02 syslog.so
>> -rwxr-xr-x 1 root root 33008 2006-01-26 15:02 zlib.so
>>
>> Ruby comes with distro ( SUSE 10)
>>
>> //Mike
>>
>
> Okay, it seems you're missing the headers. Couple of things you might
> try:
>
> + Does Suse have a ruby-devel package ? If so, get that.
>
> + Beg/borrow/steal the appropriate headers, and copy them to
> that directory (maybe not a good idea).
>
> + Alternatively, grab a copy of the source and build it
> yourself. You could upgrade to 1.8.4 at the same time ;)
>
>
There was a ruby-devel pakage, now it works!! Thanks for your help

//Mike


westprog

12/5/2010 12:47:00 AM

0


"Solus" <fingal_redux@hotmail.com> wrote in message
news:99545ccb-8c80-48bc-98a2-47ba38354e12@t35g2000yqj.googlegroups.com...

>Has criminality ever presented a dilema for a sizeable chunk of the
>electorate here?
>We already have 2 ex-terrorists in the Dail and despite another
>'Disappeared' body being identified today, the good citizens of Louth
>look set to elect the visiting Cappo di tutti capi.

They don't seem to be particularly bothered by the accusation that the
person they'll be asking about their drains and bus service might have
ordered the kidnapping, torture and murder of a young mother. Accused by a
member of his own political party.

It's difficult to see just what would make a TD unelectable.