Giter VIP home page Giter VIP logo

Comments (13)

seanvree avatar seanvree commented on June 16, 2024

Update - so the NEW version of Ruby does NOT require DEVKIT, however, there is still an issue with Ruby and the "MAKE" command:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\sites\plex-board

c:\Sites\Plex-Board>bundle exec puma -e production -C config/puma.rb config.ru
bundler: command not found: puma
Install missing gem executables with `bundle install`

c:\Sites\Plex-Board>bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.4
Using minitest 5.10.2
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubi 1.6.0
Using mini_portile2 2.1.0
Using rack 2.0.3
Fetching nio4r 2.1.0
Installing nio4r 2.1.0 with native extensions
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 8.0.0
Using bundler 1.15.1
Using method_source 0.8.2
Using thor 0.19.4
Using sqlite3 1.3.13 (x64-mingw32)
Using sass 3.4.24
Using tilt 2.0.7
Using execjs 2.7.0
Using coffee-script-source 1.12.2
Using turbolinks-source 5.0.3
Using multi_json 1.12.1
Fetching json 1.8.6
Installing json 1.8.6 with native extensions
Using rdoc 4.3.0
Using ffi 1.9.18 (x64-mingw32)
Using unf_ext 0.0.7.4 (x64-mingw32)
Using netrc 0.11.0
Using parallel 1.11.2
Using multipart-post 2.0.0
Using hashie 3.5.5
Using geocoder 1.4.4
Fetching puma 3.8.2
Installing puma 3.8.2 with native extensions
Using tzinfo 1.2.3
Fetching nokogiri 1.7.2 (x64-mingw32)
Installing nokogiri 1.7.2 (x64-mingw32)
Using rack-test 0.6.3
Using sprockets 3.7.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20170602-13128-19d7ig5.rb extconf.rb
checking for unistd.h... yes
checking for sys/select.h... no
checking for poll.h... no
checking for sys/epoll.h... no
checking for sys/event.h... no
checking for port.h... no
checking for sys/resource.h... no
creating Makefile

current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r
make "DESTDIR=" clean

current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r
make "DESTDIR="
generating nio4r_ext-x64-mingw32.def
make: *** No rule to make target '/C/Ruby24-x64/include/ruby-2.4.0/ruby.h',
needed by 'bytebuffer.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/nio4r-2.1.0/gem_make.out

An error occurred while installing nio4r (2.1.0), and Bundler cannot continue.
Make sure that `gem install nio4r -v '2.1.0'` succeeds before bundling.

In Gemfile:
  rails was resolved to 5.1.1, which depends on
    actioncable was resolved to 5.1.1, which depends on
      nio4r

c:\Sites\Plex-Board>

Issue is known, however, there is a pending quesiton here:

oneclick/rubyinstaller#164

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

update:

Branch Ruby241 fails as well:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd C:\Sites\Plex-Board

C:\Sites\Plex-Board>git checkout ruby241
Switched to a new branch 'ruby241'
M       Gemfile.lock
Branch ruby241 set up to track remote branch ruby241 from origin.

C:\Sites\Plex-Board>git pull
Already up-to-date.

C:\Sites\Plex-Board>git branch
  dev
* ruby241

C:\Sites\Plex-Board>gem install bundler
Successfully installed bundler-1.15.1
Parsing documentation for bundler-1.15.1
Done installing documentation for bundler after 6 seconds
1 gem installed

C:\Sites\Plex-Board>bash serverSetup.sh
: invalid optionline 2: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
serverSetup.sh: line 3: $'\r': command not found
serverSetup.sh: line 4: syntax error near unexpected token `$'in\r''
'erverSetup.sh: line 4: `case "$(uname -s)" in

C:\Sites\Plex-Board>sh serversetup.sh
: invalid optionline 2: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]

C:\Sites\Plex-Board>serversetup.sh

C:\Sites\Plex-Board>bundle exec puma -e production -C config/puma.rb config.ru
bundler: command not found: puma
Install missing gem executables with `bundle install`

C:\Sites\Plex-Board>bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...........................
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.4
Using minitest 5.10.2
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubi 1.6.0
Using mini_portile2 2.1.0
Using rack 2.0.3
Fetching nio4r 2.1.0
Installing nio4r 2.1.0 with native extensions
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 8.0.0
Using bundler 1.15.1
Using method_source 0.8.2
Using thor 0.19.4
Using sqlite3 1.3.13 (x64-mingw32)
Using sass 3.4.24
Using tilt 2.0.7
Using execjs 2.7.0
Using coffee-script-source 1.12.2
Using turbolinks-source 5.0.3
Using multi_json 1.12.1
Fetching json 1.8.6
Installing json 1.8.6 with native extensions
Using rdoc 4.3.0
Using ffi 1.9.18 (x64-mingw32)
Using unf_ext 0.0.7.4 (x64-mingw32)
Using netrc 0.11.0
Using parallel 1.11.2
Using multipart-post 2.0.0
Using hashie 3.5.5
Using geocoder 1.4.4
Fetching puma 3.8.2
Installing puma 3.8.2 with native extensions
Using tzinfo 1.2.3
Fetching nokogiri 1.7.2 (x64-mingw32)
Installing nokogiri 1.7.2 (x64-mingw32)
Using rack-test 0.6.3
Using sprockets 3.7.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20170602-16076-14bzn0e.rb extconf.rb
checking for unistd.h... yes
checking for sys/select.h... no
checking for poll.h... no
checking for sys/epoll.h... no
checking for sys/event.h... no
checking for port.h... no
checking for sys/resource.h... no
creating Makefile

current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r
make "DESTDIR=" clean

current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r
make "DESTDIR="
generating nio4r_ext-x64-mingw32.def
make: *** No rule to make target '/C/Ruby24-x64/include/ruby-2.4.0/ruby.h',
needed by 'bytebuffer.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/nio4r-2.1.0/gem_make.out

An error occurred while installing nio4r (2.1.0), and Bundler cannot continue.
Make sure that `gem install nio4r -v '2.1.0'` succeeds before bundling.

In Gemfile:
  rails was resolved to 5.1.1, which depends on
    actioncable was resolved to 5.1.1, which depends on
      nio4r

C:\Sites\Plex-Board>

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

Update.

Looks like this project MAY be dead for windows until all the dependencies that Ruby with Rails uses get compatible with the new Ruby/Rails version on Windows.

oneclick/rubyinstaller#366

So, Windows users have three options at this point, which are not good.

1 - Run Plex Board from a Ruby and Rails CMD prompt, (however, the prompt will have to say open, and the user will have to stay logged on - service will NOT WORK)

2 - Docker (Even with this option, I don't think you can autostart this container in Docker? SO, you'd still be unable to run it as a service as well)

3 - Uninstall all ruby and ruby with rails, downgrade, and then run it - but I THINK we would need to create a new windows branch with the old ruby versions? Also - this MAY not work for some users as they may need updated versions of ruby/rails.

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

update:

So, now I'm not sure if this is a PlexBoard issue or a Ruby/rails issue:


current directory:
c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.13/ext/sqlite3
c:/RailsInstaller/Ruby2.3.0/bin/ruby.exe -r ./siteconf20170609-10632-1o23hjj.rb
extconf.rb
checking for sqlite3.h... yes
checking for pthread_create() in -lpthread... no
checking for sqlite3_libversion_number() in -lsqlite3... no
sqlite3 is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/RailsInstaller/Ruby2.3.0/bin/$(RUBY_BASE_NAME)
        --with-sqlite3-config
        --without-sqlite3-config
        --with-pkg-config
        --without-pkg-config
        --with-sqlite3-dir
        --without-sqlite3-dir
        --with-sqlite3-include
        --without-sqlite3-include=${sqlite3-dir}/include
        --with-sqlite3-lib
        --without-sqlite3-lib=${sqlite3-dir}/lib
        --with-pthreadlib
        --without-pthreadlib
        --with-sqlite3lib
        --without-sqlite3lib

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/sqlite3-1.3.13/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.13 for
inspection.
Results logged to
c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/sqlite3-1.3.13/gem_make.out

An error occurred while installing sqlite3 (1.3.13), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.13'` succeeds before bundling.

In Gemfile:
  sqlite3


============

C:\Sites\Plex-Board>gem install sqlite3 -v 1.3.13
Successfully installed sqlite3-1.3.13-x86-mingw32
Parsing documentation for sqlite3-1.3.13-x86-mingw32
Done installing documentation for sqlite3 after 1 seconds
1 gem installed

So, I can install Ruby 1.3.13 fine manually, but when it's done from the serversetup.sh script it fails?

Any thoughts @scytherswings ?

from plex-board.

scytherswings avatar scytherswings commented on June 16, 2024

@seanvree my only thought is that the serversetup script is somehow using a different ruby. I'm guessing your paths changed last time you installed a ruby executable? What do your path variables look like?

which ruby

and such.

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

@scytherswings - They all match (after some work figuring it out). Essentially, the new version of Ruby screwed everything up. So, right now working toward making RAILs (and anything else on the box that uses ruby) use the local Ruby installation instead of it's own. It's not as simple as updating the PATH.

Right now there's a bug in both RubyInstaller2 and RailsInstaller.

Nothing we did wrong. I'm making progress, see here:

oneclick/rubyinstaller2#47

from plex-board.

scytherswings avatar scytherswings commented on June 16, 2024

Oh sweet, glad to see you're making headway! Let me know if you need help from me.

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

Yeah, I've been down for over a week now! WTF! Make sure to subscribe to that thread and take a peek once a day to make sure I'm not screwing something up or saying something wrong.

I'd also be interested to know if you can replicate the issue on your windows box running as a service and with the latest version of ruby and rubyrails.

from plex-board.

scytherswings avatar scytherswings commented on June 16, 2024

@seanvree a week?!? I thought you said you had figured out the docker stuff? That's no good at all. I won't be able to replicate a windows environment anytime soon as I'm house sitting for my parents and I only have my macintosh laptops available. I'll see if I can figure a way to do it but if you need, let's set up a time and meet up on chat perhaps today, Thursday, sometime this evening and help get you sorted out?

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

@scytherswings - Yeah, I have fiured out the docker stuff, but there's still no option to auto-start the docker image....sooooo, yeah. Still no "service" option right now.

Yeah, right now, it's a ruby issue, so look at it when you can, but there's not a work around right now that I'm seeing. I'll let you know if the other issue on the rubyinstaller2 issue stalls.

from plex-board.

scytherswings avatar scytherswings commented on June 16, 2024

Okay. Auto-starting docker was something I had looked into and I'm convinced there's a solution out there somewhere. I'll try to get all caught up this evening once things settle down for me.

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

Yeah, I love docker and all, but you get my drift, it's ONE more piece of software that you have to leave running. just to get docker to work on windows is a PITA!

But I guess this is a PITA too, so whatevs. HA. I'm determined to make this work. Docker is for cheaters.

from plex-board.

seanvree avatar seanvree commented on June 16, 2024

@scytherswings - Still the same issue. Can't get past that MAKE error.

make: *** No rule to make target '/C/Ruby24-x64/include/ruby-2.4.0/ruby.h', needed by 'bytebuffer.o'.  Stop.

from plex-board.

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.