docpad-archive / website

The DocPad Website. Replaced by GitBook: https://docpad.bevry.me
Other
22 stars 14 forks source link

"md" to "html" not rendering? #39

Closed fizzvr closed 11 years ago

fizzvr commented 11 years ago

I check #192 but cant solve the problem... which is the final solution???? thxs Docpad -v6.21.10, npm -v1.2.1

fizzvr commented 11 years ago

added "docpad-plugin-marked": "~2.1.0" to package.json and work well! :+1:

chase commented 11 years ago

This seemed to actually be an issue with the docpad-plugin-roboskirt which uses robotskirt, a slightly faster Markdown renderer.

Earlier today it seems that the C library was not compiling correctly, so the binding was not functioning:

warning: Failed to load the plugin: docpad-plugin-robotskirt at /Users/chase/Development/docpad-website/node_modules/docpad-plugin-robotskirt
The error follows:
warning: An error occured:
Error: dlopen(/Users/chase/Development/docpad-website/node_modules/docpad-plugin-robotskirt/node_modules/robotskirt/build/Release/robotskirt.node, 1): no suitable image found.  Did find:
    /Users/chase/Development/docpad-website/node_modules/docpad-plugin-robotskirt/node_modules/robotskirt/build/Release/robotskirt.node: mach-o, but wrong architecture
    at Object.Module._extensions..node (module.js:485:11)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at module.exports (/Users/chase/Development/docpad-website/node_modules/docpad-plugin-robotskirt/out/robotskirt.plugin.js:8:10)
    at PluginLoader.load (/usr/local/lib/node_modules/docpad/out/lib/plugin-loader.js:144:50)
    at DocPad.loadPlugin (/usr/local/lib/node_modules/docpad/out/lib/docpad.js:1844:25)
    at PluginLoader.unsupported (/usr/local/lib/node_modules/docpad/out/lib/plugin-loader.js:119:5)
    at DocPad.loadPlugin (/usr/local/lib/node_modules/docpad/out/lib/docpad.js:1828:23)

Later on, after removing the node_modules directory and doing a fresh npm install, everything was functioning fine.

fizzvr commented 11 years ago

Agree; on windows still errors occurs

  • 13721 error robotskirt@2.7.1 install: node-gyp rebuild
  • 13721 error cmd "/c" "node-gyp rebuild" failed with 1
  • 13722 error Failed at the robotskirt@2.7.1 install script.
  • 13722 error This is most likely a problem with the robotskirt package,
  • 13722 error not with npm itself.
  • 13722 error Tell the author that this fails on your system:
  • 13722 error node-gyp rebuild
  • 13722 error You can get their info via:
  • 13722 error npm owner ls robotskirt
  • 13722 error There is likely additional logging output above.
  • 13723 error System Windows_NT 5.1.2600
  • 13724 error command "c:\Archivos de programa\nodejs\node.exe" "c:\Archivos de programa\nodejs\node_modules\npm\bin\npm-cli.js" "install"
  • 13725 error cwd h:\Node\docpad-website
  • 13726 error node -v v0.8.20
  • 13727 error npm -v 1.2.11
  • 13728 error code ELIFECYCLE

also installed Python 2.7 and npm install -g node-gyp now installing express c++ 2010 this is the problem I think, but better still working with marked. :): so hard to use robotskirt fu win2s

Full error log

fizzvr commented 11 years ago

The compilation is an OPTIONAL step, the module will still be correctly installed when it fails to compile.

fizzvr commented 10 years ago

Hi guys together get the same problem now on ubuntu 14

The log!!

> robotskirt@2.7.1 install /media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me/node_modules/docpad-plugin-robotskirt/node_modules/robotskirt
> node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me/node_modules/docpad-plugin-robotskirt/node_modules/robotskirt
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! robotskirt@2.7.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the robotskirt@2.7.1 install script.
npm ERR! This is most likely a problem with the robotskirt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls robotskirt
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "--save-dev" "docpad-plugin-robotskirt"
npm ERR! cwd /media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.8
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me/npm-debug.log
npm ERR! not ok code 0

Whos the C compiler i missing??? Whos dependencie need to install to solve this...

greduan commented 10 years ago

It seems you are having trouble compiling Robotskirt, not sure why. However, to avoid this issue altogether, I would suggest switching to docpad-plugin-marked for the Markdown rendering. This is now the preferred method to do this stuff on DocPad. :)

fizzvr commented 10 years ago

ohh.... IDK how i solve this.... now compile and running... :+1: I do these steps in console:

pc-ubu@pcubu-desktop:/media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me$  sudo apt-get install build-essential
[sudo] password for pc-ubu: 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
build-essential ya está en su versión más reciente.
fijado build-essential como instalado manualmente.
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
  gyp javascript-common libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev
  libssl-doc libv8-3.14-dev libv8-3.14.5 zlib1g-dev
Use 'apt-get autoremove' to remove them.

Look at this LOL

pc-ubu@pcubu-desktop:/media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me$ sudo apt-get autoremove
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
  gyp javascript-common libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev
  libssl-doc libv8-3.14-dev libv8-3.14.5 zlib1g-dev
0 actualizados, 0 se instalarán, 10 para eliminar y 25 no actualizados.
Se liberarán 13,0 MB después de esta operación.
¿Desea continuar? [S/n] s
(Leyendo la base de datos ... 185908 ficheros o directorios instalados actualmente.)
Removing gyp (0.1~svn1729-3ubuntu1) ...
Removing javascript-common (11) ...
Removing libc-ares-dev:i386 (1.10.0-2) ...
Removing libc-ares2:i386 (1.10.0-2) ...
Removing libjs-node-uuid (1.4.0-1) ...
Removing libssl-dev:i386 (1.0.1f-1ubuntu2.1) ...
Removing libssl-doc (1.0.1f-1ubuntu2.1) ...
Removing libv8-3.14-dev (3.14.5.8-5ubuntu2) ...
Removing libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
Removing zlib1g-dev:i386 (1:1.2.8.dfsg-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...

then

pc-ubu@pcubu-desktop:/media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me$ npm cache clean

Epic Win!!!

pc-ubu@pcubu-desktop:/media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me$ sudo npm install --save-dev docpad-plugin-robotskirt
npm WARN package.json nano@0.0.0 No repository field.
npm http GET https://registry.npmjs.org/docpad-plugin-robotskirt
npm http 304 https://registry.npmjs.org/docpad-plugin-robotskirt
npm http GET https://registry.npmjs.org/docpad-plugin-robotskirt/-/docpad-plugin-robotskirt-2.0.3.tgz
npm http 200 https://registry.npmjs.org/docpad-plugin-robotskirt/-/docpad-plugin-robotskirt-2.0.3.tgz
npm http GET https://registry.npmjs.org/robotskirt
npm http 200 https://registry.npmjs.org/robotskirt
npm http GET https://registry.npmjs.org/robotskirt/-/robotskirt-2.7.1.tgz
npm http 200 https://registry.npmjs.org/robotskirt/-/robotskirt-2.7.1.tgz

> robotskirt@2.7.1 install /media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me/node_modules/docpad-plugin-robotskirt/node_modules/robotskirt
> node-gyp rebuild

make: se ingresa al directorio «/media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me/node_modules/docpad-plugin-robotskirt/node_modules/robotskirt/build»
  CC(target) Release/obj.target/sundown/src/autolink.o
  CC(target) Release/obj.target/sundown/src/buffer.o
  CC(target) Release/obj.target/sundown/src/houdini_href_e.o
  CC(target) Release/obj.target/sundown/src/houdini_html_e.o
  CC(target) Release/obj.target/sundown/src/houdini_html_u.o
  CC(target) Release/obj.target/sundown/src/houdini_js_e.o
  CC(target) Release/obj.target/sundown/src/houdini_js_u.o
  CC(target) Release/obj.target/sundown/src/houdini_uri_e.o
  CC(target) Release/obj.target/sundown/src/houdini_uri_u.o
  CC(target) Release/obj.target/sundown/src/houdini_xml_e.o
  CC(target) Release/obj.target/sundown/src/html.o
  CC(target) Release/obj.target/sundown/src/html_smartypants.o
  CC(target) Release/obj.target/sundown/src/markdown.o
  CC(target) Release/obj.target/sundown/src/stack.o
  AR(target) Release/obj.target/sundown.a
  COPY Release/sundown.a
  CXX(target) Release/obj.target/robotskirt/src/robotskirt.o
  SOLINK_MODULE(target) Release/obj.target/robotskirt.node
  SOLINK_MODULE(target) Release/obj.target/robotskirt.node: Finished
  COPY Release/robotskirt.node
make: se sale del directorio «/media/pc-ubu/vrWeb/web/WorkGroupGit/blog.sapegin.me/node_modules/docpad-plugin-robotskirt/node_modules/robotskirt/build»
docpad-plugin-robotskirt@2.0.3 node_modules/docpad-plugin-robotskirt
└── robotskirt@2.7.1
greduan commented 10 years ago

¡Muy bien hecho! :)

I am from México, nice to see another Spanish speaking dev. :) (If I missed any ´ that's because I am lazy and have a US keyboard so it's hard to add them. :)