James Edward Gray II <james / grayproductions.net> writes:

> [ ... ]
>
> $ sudo gem install termios

The gem install of highline went smoothly.  However, when I did the
install for termios, I got the errors below.  Even though I received the
"successfully installed" message, I'm not sure whether that actually
occurred.

Any ideas?

  # ruby --version
  ruby 1.9.0 (2005-02-05) [i686-linux]
  # uname -r
  2.4.20-021stab028.5.777-enterprise
  # gem install termios
  Attempting local installation of 'termios'
  Local gem file not found: termios*.gem
  Attempting remote installation of 'termios'
  Building native extensions.  This could take a while...
  Makefile:108: warning: overriding commands for target 
    `/usr/local/lib/ruby/gems/1.9/gems/termios-0.9.4/lib'
  Makefile:106: warning: ignoring old commands for target 
    `/usr/local/lib/ruby/gems/1.9/gems/termios-0.9.4/lib'
  termios.c: In function `termios_tcgetattr':
  termios.c:204: structure has no member named `f'
  termios.c: In function `termios_tcsetattr':
  termios.c:246: structure has no member named `f'
  termios.c: In function `termios_tcsendbreak':
  termios.c:271: structure has no member named `f'
  termios.c: In function `termios_tcdrain':
  termios.c:295: structure has no member named `f'
  termios.c: In function `termios_tcflush':
  termios.c:325: structure has no member named `f'
  termios.c: In function `termios_tcflow':
  termios.c:355: structure has no member named `f'
  termios.c: In function `termios_tcgetpgrp':
  termios.c:379: structure has no member named `f'
  termios.c: In function `termios_tcsetpgrp':
  termios.c:404: structure has no member named `f'
  make: *** [termios.o] Error 1
  Makefile:108: warning: overriding commands for target 
    `/usr/local/lib/ruby/gems/1.9/gems/termios-0.9.4/lib'
  Makefile:106: warning: ignoring old commands for target 
    `/usr/local/lib/ruby/gems/1.9/gems/termios-0.9.4/lib'
  termios.c: In function `termios_tcgetattr':
  termios.c:204: structure has no member named `f'
  termios.c: In function `termios_tcsetattr':
  termios.c:246: structure has no member named `f'
  termios.c: In function `termios_tcsendbreak':
  termios.c:271: structure has no member named `f'
  termios.c: In function `termios_tcdrain':
  termios.c:295: structure has no member named `f'
  termios.c: In function `termios_tcflush':
  termios.c:325: structure has no member named `f'
  termios.c: In function `termios_tcflow':
  termios.c:355: structure has no member named `f'
  termios.c: In function `termios_tcgetpgrp':
  termios.c:379: structure has no member named `f'
  termios.c: In function `termios_tcsetpgrp':
  termios.c:404: structure has no member named `f'
  make: *** [termios.o] Error 1
  ruby extconf.rb install termios
  checking for termios.h... yes
  checking for unistd.h... yes
  creating Makefile

  make
  gcc -fPIC -g -O2  -fPIC  -I. -I/usr/local/lib/ruby/1.9/i686-linux 
    -I/usr/local/lib/ruby/1.9/i686-linux -I. -DHAVE_TERMIOS_H
    -DHAVE_UNISTD_H -c termios.c

  make install
  gcc -fPIC -g -O2  -fPIC  -I. -I/usr/local/lib/ruby/1.9/i686-linux 
    -I/usr/local/lib/ruby/1.9/i686-linux -I. -DHAVE_TERMIOS_H 
    -DHAVE_UNISTD_H  -c termios.c
  Successfully installed termios-0.9.4


-- 
 Lloyd Zusman
 ljz / asfast.com
 God bless you.