Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in run "bundle install" #80

Open
ChristopherASuarez opened this issue Dec 9, 2021 · 1 comment
Open

Errors in run "bundle install" #80

ChristopherASuarez opened this issue Dec 9, 2021 · 1 comment

Comments

@ChristopherASuarez
Copy link

Hi all.
When I run "bundle install", failed, and see these errors:
"checking for rb_io_t in ruby.h,rubyio.h... no
checking for OpenFile.fd in ruby.h,rubyio.h... no
checking for OpenFile in ruby.h,rubyio.h... no
creating Makefile

current directory: /home/lenovo/.gem/gems/ruby-termios-0.9.6
make DESTDIR= clean

current directory: /home/lenovo/.gem/gems/ruby-termios-0.9.6
make DESTDIR=
compiling termios.c
termios.c: In function ‘termios_tcgetattr’:
termios.c:311:5: error: unknown type name ‘OpenFile’; did you mean
‘GetOpenFile’?
311 | OpenFile *fptr;
| ^~~~~~~~
| GetOpenFile
In file included from termios.c:10:
/snap/ruby/242/include/ruby-3.0.0/ruby/io.h:124:55: warning: assignment to ‘int
*’ from incompatible pointer type ‘struct rb_io_t *’
[-Wincompatible-pointer-types]
124 | #define RB_IO_POINTER(obj,fp) rb_io_check_closed((fp) =
RFILE(rb_io_taint_check(obj))->fptr)
"

What can I do?

@ChristopherASuarez
Copy link
Author

Hi, all.

This is because of the ruby's installation version. Reinstalling Ruby 2.4 with RVM will solve the problem.

Installing RVM:

$sudo apt install gnupg2
$gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$url -sSL https://get.rvm.io | bash -s stable
$source ~/.rvm/scripts/rvm

Installing ruby 2.4

$rvm install 2.4
$rvm use 2.4.10 --default

Everything is OK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant