I was wondering what you recommended for Rails as it relates to working
on
Windows / present configuration recommendations for Windows? Use the
older
version for now? Run it without DevKit / SQLite, etc.? See the below:
and associated:
opened 09:19PM - 07 Nov 14 UTC
closed 10:48PM - 24 Aug 15 UTC
platform/windows
Something still isn't correct in your build tooling for windows as I get the fol… lowing failure when building on a win8.1 64bit with mri 2.1.5 32bit using a 32bit mingw-w64 4.9.2 compiler.
I know zlib easily builds on windows using the mingw-w64 toolchains because I do it all the time with [helpers like this](https://github.com/jonforums/buildlets/blob/master/build_zlib.ps1).
From the last part of mkmf.log below (e.g. - missing `-o conftest.exe`, no lib info to gcc) I think you guys are sooooo close I can taste it :)
```
C:\>uru ls
17161 : jruby 1.7.16.1 (1.9.3p392) 2014-10-28 4e93f31 on Java HotSpot(TM...
200p597-x32 : ruby 2.0.0p597 (2014-11-06 revision 48296) [i386-mingw32]
215-test : ruby 2.1.5p267 (2014-10-28 revision 48177) [i386-mingw32]
=> 215p272-x32 : ruby 2.1.5p272 (2014-11-06 revision 48303) [i386-mingw32]
C:\>gem up nokogiri --platform=ruby
Updating installed gems
Updating nokogiri
Fetching: nokogiri-1.6.4.1.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
C:/Apps/rubies/ruby-2.1/bin/ruby.exe -r ./siteconf20141107-876-ixu5gn.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
************************************************************************
IMPORTANT NOTICE:
Buidling Nokogiri with a packaged version of zlib-1.2.8.
...SNIP...
Downloading zlib-1.2.8.tar.gz (100%)
Extracting zlib-1.2.8.tar.gz into tmp/i686-pc-mingw32/ports/zlib/1.2.8... ERROR
*** extconf.rb failed ***
...SNIP...
C:/Apps/rubies/ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.1/lib/mini_portile.rb:262:in `extract_file': Failed to complete extract task (RuntimeError)
from C:/Apps/rubies/ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.1/lib/mini_portile.rb:35:in `block in extract'
from C:/Apps/rubies/ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.1/lib/mini_portile.rb:33:in `each'
from C:/Apps/rubies/ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.1/lib/mini_portile.rb:33:in `extract'
from C:/Apps/rubies/ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.1/lib/mini_portile.rb:107:in `cook'
from extconf.rb:268:in `block in process_recipe'
from extconf.rb:167:in `tap'
from extconf.rb:167:in `process_recipe'
from extconf.rb:394:in `<main>'
extconf failed, exit code 1
```
And here's mkmf.log in it's entirety. The second test looks like the gcc command did not get generated correctly
```
"gcc -o conftest.exe -IC:/Apps/rubies/ruby-2.1/include/ruby-2.1.0/i386-mingw32 -IC:/Apps/rubies/ruby-2.1/include/ruby-2.1.0/ruby/backward -IC:/Apps/rubies/ruby-2.1/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 conftest.c -L. -LC:/Apps/rubies/ruby-2.1/lib -L. -lmsvcrt-ruby210 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return 0;
8: }
/* end */
"gcc -IC:/Apps/rubies/ruby-2.1/include/ruby-2.1.0/i386-mingw32 -IC:/Apps/rubies/ruby-2.1/include/ruby-2.1.0/ruby/backward -IC:/Apps/rubies/ruby-2.1/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main() {return 0;}
/* end */
```
opened 02:40PM - 02 Mar 15 UTC
closed 04:39AM - 30 Nov 15 UTC
platform/windows
Currently (1.6.6.2) we only cross-compile for 1.9.3, 2.0.0 and 2.1.3.
On 25 March 2015 at 01:20, [email protected] wrote:
I was wondering what you recommended for Rails as it relates to working on
Windows / present configuration recommendations for Windows? Use the older
version for now? Run it without DevKit / SQLite, etc.? See the below:
My recommendation would be to not work on Windows. I know that may
help you. Sorry.
Colin