# Problems installing termios

**URL:** <https://www.ruby-forum.com/t/problems-installing-termios/155132>\
**Category:** Rails\
**Created:** [December 8, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/problems-installing-termios/155132 "2008-12-08T14:07:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miquel\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Post date:** [December 8, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/problems-installing-termios/155132/1 "2008-12-08T14:07:03Z")

</div>

Hi there

In trying to install termios in my home server (which uses Debian  
testing) using gem and I get the following error:

# gem install --include-dependencies termios

/usr/bin/ruby1.9 extconf.rb install --include-dependencies termios  
checking for termios.h… yes  
checking for unistd.h… yes  
creating Makefile

make  
cc -I. -I/usr/include/ruby-1.9.0/i486-linux -I/usr/include/ruby-1.9.0  
-I. -DHAVE\_TERMIOS\_H -DHAVE\_UNISTD\_H -D\_FILE\_OFFSET\_BITS=64 -fPIC  
-fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses -fPIC -o  
termios.o -c termios.c termios.c: In function ?termios\_tcgetattr?:  
termios.c:200: error: ?OpenFile? undeclared (first use in this  
function) termios.c:200: error: (Each undeclared identifier is reported  
only once termios.c:200: error: for each function it appears in.)  
termios.c:200: error: ?fptr? undeclared (first use in this function)  
termios.c: In function ?termios\_tcsetattr?: termios.c:224:  
error: ?OpenFile? undeclared (first use in this function)  
termios.c:224: error: ?fptr? undeclared (first use in this function)  
termios.c:231: warning: initialization discards qualifiers from pointer  
target type termios.c: In function ?termios\_tcsendbreak?:  
termios.c:265: error: ?OpenFile? undeclared (first use in this  
function) termios.c:265: error: ?fptr? undeclared (first use in this  
function) termios.c: In function ?termios\_tcdrain?: termios.c:290:  
error: ?OpenFile? undeclared (first use in this function)  
termios.c:290: error: ?fptr? undeclared (first use in this function)  
termios.c: In function ?termios\_tcflush?: termios.c:313:  
error: ?OpenFile? undeclared (first use in this function)  
termios.c:313: error: ?fptr? undeclared (first use in this function)  
termios.c: In function ?termios\_tcflow?: termios.c:343:  
error: ?OpenFile? undeclared (first use in this function)  
termios.c:343: error: ?fptr? undeclared (first use in this function)  
termios.c: In function ?termios\_tcgetpgrp?: termios.c:374:  
error: ?OpenFile? undeclared (first use in this function)  
termios.c:374: error: ?fptr? undeclared (first use in this function)  
termios.c: In function ?termios\_tcsetpgrp?: termios.c:398:  
error: ?OpenFile? undeclared (first use in this function)  
termios.c:398: error: ?fptr? undeclared (first use in this function)  
make: \*\*\* [termios.o] Error 1

Gem files will remain installed  
in /var/lib/gems/1.9.0/gems/termios-0.9.4 for inspection. Results  
logged to /var/lib/gems/1.9.0/gems/termios-0.9.4/gem\_make.out

I don’t know where OpenFile is located in Debian, can you help me  
please?

Thanks in advance

Regards

Miquel

–

Miquel (a.k.a. Ktalà a.k.a. Ton)  
Linux User #286784  
GPG Key : 4D91EF7F  
Debian GNU/Linux (Linux wolverine 2.6.23.1)

Welcome to the jungle, we got fun and games  
Guns n’ Roses
