Skip to content

npm install pru fails #5

@kj800x

Description

@kj800x
debian@beaglebone:~/TEST1$ sudo npm install pru
npm http GET https://registry.npmjs.org/pru
npm http 304 https://registry.npmjs.org/pru

> pru@0.1.3 install /home/debian/TEST1/node_modules/pru
> node-gyp rebuild

make: Entering directory `/home/debian/TEST1/node_modules/pru/build'
  CXX(target) Release/obj.target/pru/src/pru.o
../src/pru.cpp: In function ‘v8::Handle<v8::Value> clearInterrupt(const v8::Arguments&)’:
../src/pru.cpp:240:45: error: too few arguments to function ‘int prussdrv_pru_clear_event(unsigned int, unsigned int)’
/usr/include/prussdrv.h:182:9: note: declared here
make: *** [Release/obj.target/pru/src/pru.o] Error 1
make: Leaving directory `/home/debian/TEST1/node_modules/pru/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.8.13-bone47
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/debian/TEST1/node_modules/pru
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok 
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1
npm ERR! not ok code 0

I have patched my dtb file based on the instructions here, and I can run c code that uses the pruss, and pypruss programs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions