Coder Social home page Coder Social logo

Comments (6)

DanielKehoe avatar DanielKehoe commented on June 29, 2024

I've run Rails Composer with the same settings as yours and have been unable to reproduce the issue. There's no problem installing the 'nio4r' gem when I run 'bundle install.'

What happens when you select the option to build the example application 'learn-rails'?

from rails-bootstrap.

edharve avatar edharve commented on June 29, 2024

The 'learn'rails' build works fine.

It's very strange. I've tried with a number of different settings, and they all return an error with 'nio4r' gem and am asked to run 'bundle exec spring binstub --all'

This also happens if I try and 'devise' options,

Many thanks for any assistance.

The log file returns the following , which I am not able to understand what this means:

"have_header: checking for unistd.h... -------------------- yes

"gcc -o conftest -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -L. -L/home/eddie/.rvm/rubies/ruby-2.3.3/lib -Wl,-R/home/eddie/.rvm/rubies/ruby-2.3.3/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/home/eddie/.rvm/rubies/ruby-2.3.3/lib -L/home/eddie/.rvm/rubies/ruby-2.3.3/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char *argv)
4: {
5: return 0;
6: }
/
end */

"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <unistd.h>
/
end */


have_header: checking for sys/select.h... -------------------- yes

"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <sys/select.h>
/
end */


have_header: checking for poll.h... -------------------- yes

"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <poll.h>
/
end */


have_header: checking for sys/epoll.h... -------------------- yes

"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <sys/epoll.h>
/
end */


have_header: checking for sys/event.h... -------------------- no

"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i"
conftest.c:3:23: fatal error: sys/event.h: No such file or directory
#include <sys/event.h>
^
compilation terminated.
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <sys/event.h>
/
end */


have_header: checking for port.h... -------------------- no

"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i"
conftest.c:3:18: fatal error: port.h: No such file or directory
#include <port.h>
^
compilation terminated.
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <port.h>
/
end */


have_header: checking for sys/resource.h... -------------------- yes

"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <sys/resource.h>
/
end */

--------------------"

from rails-bootstrap.

DanielKehoe avatar DanielKehoe commented on June 29, 2024

What OS? Should be fine on a Mac. On Windows you can have typical problems with difficulty compiling gems that require native extensions.

from rails-bootstrap.

edharve avatar edharve commented on June 29, 2024

I'm using Ubuntu 17.04. I gave up using Windows as it is terrible with Rails!

from rails-bootstrap.

DanielKehoe avatar DanielKehoe commented on June 29, 2024

Check to see if the 'nio4r' gem has issues on Linux.

from rails-bootstrap.

edharve avatar edharve commented on June 29, 2024

It seems like it was a problem with my OS somewhere. I think possibly conflicts somewhere caused by rvm, but I have reinstalled it and using rbenv instead and all is working fine now. Thanks for the help :)

from rails-bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.