Code Monkey home page Code Monkey logo

Comments (14)

zdne avatar zdne commented on July 28, 2024

Have you tried to build this from MSVC command prompt?

from protagonist.

tbremeyer avatar tbremeyer commented on July 28, 2024

I just tried that, but I get the same error (only with a little different formatting).

from protagonist.

tbremeyer avatar tbremeyer commented on July 28, 2024

I tried to upgrade the snowcrash solution with Visual Studio 2013, but I get build errors:
Error 1 error C1083: Cannot open source file: '..\ext\markdown-parser\src\ByteBuffer.cc': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1xx libmarkdownparser
Error 2 error C1083: Cannot open source file: '..\ext\markdown-parser\src\MarkdownNode.cc': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1xx libmarkdownparser
Error 3 error C1083: Cannot open source file: '..\ext\markdown-parser\src\MarkdownParser.cc': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1xx libmarkdownparser
Error 4 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\src\autolink.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 5 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 libsnowcrash
Error 6 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\src\buffer.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 7 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\src\markdown.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 8 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\src\src_map.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 9 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\src\stack.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 10 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\html\houdini_href_e.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 11 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\html\houdini_html_e.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 12 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\html\html.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 13 error C1083: Cannot open source file: '..\ext\markdown-parser\ext\sundown\html\html_smartypants.c': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\build\c1 libsundown
Error 14 error C1083: Cannot open include file: 'MarkdownParser.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\MSON.h 19 1 libsnowcrash
Error 15 error C1083: Cannot open include file: 'ByteBuffer.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\ModelTable.h 14 1 libsnowcrash
Error 16 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 libsnowcrash
Error 17 error C1083: Cannot open include file: 'ByteBuffer.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\ModelTable.h 14 1 libsnowcrash
Error 18 error C1083: Cannot open include file: 'ByteBuffer.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\ModelTable.h 14 1 libsnowcrash
Error 19 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 libsnowcrash
Error 20 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 libsnowcrash
Error 21 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Signature.h 12 1 libsnowcrash
Error 22 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 libsnowcrash
Error 23 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 libsnowcrash
Error 24 error C1083: Cannot open include file: 'ByteBuffer.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\ModelTable.h 14 1 libsnowcrash
Error 25 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 perf-libsnowcrash
Error 26 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 test-libsnowcrash
Error 27 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 28 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 29 error C1083: Cannot open include file: 'catch.hpp': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\test\test-Blueprint.cc 9 1 test-libsnowcrash
Error 30 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 31 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 32 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 33 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 34 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 test-libsnowcrash
Error 35 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 test-libsnowcrash
Error 36 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 37 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 38 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 39 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 40 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 41 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 42 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 43 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 44 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 45 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 46 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 47 error C1083: Cannot open include file: 'catch.hpp': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\test\test-RegexMatch.cc 9 1 test-libsnowcrash
Error 48 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 49 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 50 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 51 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 52 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 53 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 54 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 test-libsnowcrash
Error 55 error C1083: Cannot open include file: 'catch.hpp': No such file or directory C:\Users\torsten.bremeyer\Projects\Apiary\test\test-UriTemplateParser.cc 9 1 test-libsnowcrash
Error 56 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash
Error 57 error C1083: Cannot open include file: 'MarkdownNode.h': No such file or directory c:\users\torsten.bremeyer\projects\apiary\src\Blueprint.h 16 1 test-libsnowcrash
Error 58 error C1083: Cannot open include file: 'catch.hpp': No such file or directory c:\users\torsten.bremeyer\projects\apiary\test\snowcrashtest.h 12 1 test-libsnowcrash

from protagonist.

XVincentX avatar XVincentX commented on July 28, 2024

Hey @tbremeyer,
I just made a local test using Windows 8.1, Visual Studio 2013, node 0.12.4, npm 2.10.1 and Python 2.7

Could you please share more information about your system configuration?

I think the problem is that npm is trying to compile the native code using Visual Studio 2010 that you probably don't have installed. The best way to get rid of this is notice npm to use a different version.

You can do that simply writing npm config set msvs_version 2013 on your command line.
Please let me know it it helps/solves your issue

Thanks!

from protagonist.

Gingonic avatar Gingonic commented on July 28, 2024

Could you explain me why protagonist needs to rebuild node-gyp? This realy blocks the usage of aglio for example, as every developer would have to install visual studio on it's local machine just to install that one module.

from protagonist.

XVincentX avatar XVincentX commented on July 28, 2024

@Gingonic
Protagonist does not need to rebuild node-gyp. It uses node-gyp to build the sources according to your machine architecture and set compiler.

But I agree with you that providing prebuilt binaries would help a lot of people to use protagonist without having to install several developer tools. I am thinking about node-pre-gyp. What is your thought about, @z?

I think we can use appveyor to generate them, and then upload them somewhere.
I would be happy to work on that.

P.S: A lot of modules are used to be built on the client machine. So, as you go deeper into nodejs ecosystem, you would need Visual Studio for sure.

from protagonist.

zdne avatar zdne commented on July 28, 2024

@XVincentX unfortunately providing binary installation on Windows was and still is a huge issue do to (in)compatibility of runtime libraries amongst differ Windows versions.

from protagonist.

voor avatar voor commented on July 28, 2024

Hey guys, I know this is about Windows installation, but I wanted to point out we might be having a similar issue on more recent Linux kernels:

➜  ~  npm install -g protagonist
npm http GET https://registry.npmjs.org/protagonist
npm http 304 https://registry.npmjs.org/protagonist
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan

> [email protected] install /home/voor/.npm/lib/node_modules/protagonist
> node-gyp rebuild

gyp: drafter/drafter.gyp not found (cwd: /home/voor/.npm/lib/node_modules/protagonist)
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:428:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 4.2.3-200.fc22.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/voor/.npm/lib/node_modules/protagonist
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

from protagonist.

pksunkara avatar pksunkara commented on July 28, 2024

@voor That error log is about a different issue which occurred in our latest release. We will be fixing it soon and give a new release.

from protagonist.

pavelkornev avatar pavelkornev commented on July 28, 2024

@pksunkara any updates? I have same issue on OSX 10.11, npm 3.5.2, node 5.3.0

> [email protected] install /Users/Skay/Webserver/skaternames/api/node_modules/protagonist
> node-gyp rebuild

gyp: drafter/drafter.gyp not found (cwd: /Users/Skay/Webserver/skaternames/api/node_modules/protagonist) while loading dependencies of binding.gyp while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/usr/local/Cellar/node/5.3.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Skay/Webserver/skaternames/api/node_modules/protagonist
gyp ERR! node -v v5.3.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok 

from protagonist.

kylef avatar kylef commented on July 28, 2024

@pavelkornev please try again now, released protagonist 1.2.5 which should resolve your problem.

from protagonist.

pavelkornev avatar pavelkornev commented on July 28, 2024

@kylef that works! Thanks for a quick fix.

from protagonist.

zdne avatar zdne commented on July 28, 2024

For what it is worth, if you are on Windows with MSVS2015 there is an issue with Node building tool and native extensions. As I've found out you need to set version of MSVS for GYP:

Note: On Windows with MSVS 2015 make sure to run $ set GYP_MSVS_VERSION=2015 prior to $ apm install linter-api-blueprint.
(from https://github.com/zdne/linter-api-blueprint#installation)

This might apply to Aglio with Protagonist on Windows with MSVS2015...

from protagonist.

kylef avatar kylef commented on July 28, 2024

I'm going to close this issue out since we haven't heard from the original creator in a while, and since the bug was originally created against Protagonist 0.20. I believe that many problems when installing Protagonist on Windows have been resolved in later versions of Protagonist and Drafter.

If anyone is still having any difficulty installing Protagonist please create a separate issue and we'd be happy to take a look.

from protagonist.

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.