imathis / octopress

Octopress is an obsessively designed framework for Jekyll blogging. It’s easy to configure and easy to deploy. Sweet huh?
http://github.com/imathis/octopress
9.31k stars 2.62k forks source link

Can't install on windows #1783

Open ardalis opened 7 years ago

ardalis commented 7 years ago

I've tried to install Octopress on Windows a couple of times, the most recent using chocolatey and the instructions shown here: http://thaiat.github.io/blog/2014/03/13/how-to-install-and-use-octopress-on-windows/

I get through the various installs but when I run bundle install it fails: image

The issue mentions "You have to install development tools first" but of course they are. The gem_make.out file has the same text as what is shown in the Powershell output above. The mkmf.log file referenced looks like this:

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32 -IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward -IC:/Ruby23-x64/include/ruby-2.3.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 -Wdeprecated-declarations -Wno-packed-bitfield-compat -O0 -Wall  conftest.c  -L. -LC:/Ruby23-x64/lib -L.      -lx64-msvcrt-ruby230  -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 */

Is this a known issue and in any case what should I do to troubleshoot and proceed?

ardalis commented 7 years ago

And FYI, I get the same error when following these instructions: https://github.com/imathis/octopress/wiki/Installation-Instructions-2.0-on-Windows @dazinator