Skip to content

Instantly share code, notes, and snippets.

@NullVoxPopuli
Created May 15, 2013 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NullVoxPopuli/5584905 to your computer and use it in GitHub Desktop.
Save NullVoxPopuli/5584905 to your computer and use it in GitHub Desktop.
bundle install after adding gem "engineyard" to my gemfile.
Installing termios (0.9.4)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
checking for termios.h... yes
checking for unistd.h... yes
creating Makefile
make
compiling termios.c
In file included from termios.c:10:0:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h" [-Wcpp]
termios.c: In function ‘Termios_to_termios’:
termios.c:182:6: error: ‘struct RArray’ has no member named ‘ptr’
termios.c:183:19: error: ‘struct RArray’ has no member named ‘ptr’
termios.c: In function ‘termios_tcgetattr’:
termios.c:200:5: error: unknown type name ‘OpenFile’
termios.c:203:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:203:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:204:30: error: request for member ‘f’ in something not a structure or union
termios.c: In function ‘termios_tcsetattr’:
termios.c:224:5: error: unknown type name ‘OpenFile’
termios.c:231:15: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
termios.c:244:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:244:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:246:30: error: request for member ‘f’ in something not a structure or union
termios.c: In function ‘termios_tcsendbreak’:
termios.c:265:5: error: unknown type name ‘OpenFile’
termios.c:270:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:270:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:271:32: error: request for member ‘f’ in something not a structure or union
termios.c: In function ‘termios_tcdrain’:
termios.c:290:5: error: unknown type name ‘OpenFile’
termios.c:294:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:294:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:295:28: error: request for member ‘f’ in something not a structure or union
termios.c: In function ‘termios_tcflush’:
termios.c:313:5: error: unknown type name ‘OpenFile’
termios.c:324:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:324:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:325:28: error: request for member ‘f’ in something not a structure or union
termios.c: In function ‘termios_tcflow’:
termios.c:343:5: error: unknown type name ‘OpenFile’
termios.c:354:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:354:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:355:27: error: request for member ‘f’ in something not a structure or union
termios.c: In function ‘termios_tcgetpgrp’:
termios.c:374:5: error: unknown type name ‘OpenFile’
termios.c:378:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:378:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:379:37: error: request for member ‘f’ in something not a structure or union
termios.c: In function ‘termios_tcsetpgrp’:
termios.c:398:5: error: unknown type name ‘OpenFile’
termios.c:403:5: warning: assignment from incompatible pointer type [enabled by default]
termios.c:403:5: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
In file included from /userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/backward/rubyio.h:6:0,
from termios.c:10:
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/io.h:169:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
termios.c:404:30: error: request for member ‘f’ in something not a structure or union
make: *** [termios.o] Error 1
Gem files will remain installed in /userhomedir/.rvm/gems/ruby-1.9.3-p392/gems/termios-0.9.4 for inspection.
Results logged to /userhomedir/.rvm/gems/ruby-1.9.3-p392/gems/termios-0.9.4/./gem_make.out
An error occurred while installing termios (0.9.4), and Bundler cannot continue.
Make sure that `gem install termios -v '0.9.4'` succeeds before bundling.
@mattscilipoti
Copy link

I had the same issue, after adding engineyard to our gemfile.
WORKAROUND: install engineyard manually.
Note: after installing manually and bundling, there is no termios (or ruby-termios) gem in Gemfile.lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment