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

This doesn't seem to generate any views for any options #32

Open
edharve opened this issue Apr 27, 2017 · 6 comments
Open

This doesn't seem to generate any views for any options #32

edharve opened this issue Apr 27, 2017 · 6 comments

Comments

@edharve
Copy link

edharve commented Apr 27, 2017

I've ran this generator a number of times with various options, and it doesn't seem to generate any views. I've left one of the repositories on my page - the 'academicessays' repo. I don't really know why this is happening, but bundler is failing to install 'nio4r' gem at first attempt. Anyone have any ideas?

@DanielKehoe
Copy link
Member

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'?

@edharve
Copy link
Author

edharve commented Apr 27, 2017

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 */

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

@DanielKehoe
Copy link
Member

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

@edharve
Copy link
Author

edharve commented Apr 27, 2017

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

@DanielKehoe
Copy link
Member

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

@edharve
Copy link
Author

edharve commented May 1, 2017

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 :)

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

2 participants