Giter VIP home page Giter VIP logo

Comments (14)

rimmartin avatar rimmartin commented on July 22, 2024

Hi

npm install [email protected] --build-from-source

worked for me on ubuntu; I'l try tomorrow on a windows box at work. I don't see any eol=crlf or on linux those show as ^M in binding.gyp.

0.0.20 as to make prebuilts with hdf5-1.8.15-patch1. Otherwise it is the same as 0.0.19 as far as source code.

Which version of the native hdf5 library are you working with?

from hdf5.node.

mrfitz42 avatar mrfitz42 commented on July 22, 2024

Hi,
Sorry if this is a setup issue, but I'm new to git, npm, and node.
I'm running on a Redhat 6.7 VM and have hdf5-1.8.16 installed.

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

May I ask what locks you pre nodejs v4.2.1?

from hdf5.node.

mrfitz42 avatar mrfitz42 commented on July 22, 2024

Legacy installation. Need to stay pre-ES6.

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

ah, let me know if you'll need changes in the 0.0.19 branch; it is the same as 0.0.20

from hdf5.node.

mrfitz42 avatar mrfitz42 commented on July 22, 2024

Right now I just need to figure out a way to force the 'npm install ...' to download binding.gyp with lf instead of crlf. I'd change it after download, but when the install fails the files are deleted.

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

https://github.com/ryancole/hdf5.node/blob/v0.0.19/binding.gyp
has crlf's in it?

have you tried

npm install [email protected] --build-from-source

I did it with

npm install [email protected] --build-from-source

and checked for ^M and saw none

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

if you vi the binding.gyp if there is a crlf it shows up as ^M

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

what does the error look like?

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

your machine is 32 or 64 bit?

from hdf5.node.

mrfitz42 avatar mrfitz42 commented on July 22, 2024

node-pre-gyp install --fallback-to-build

Traceback (most recent call last):
File "/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py", line 18, in
sys.exit(gyp.script_main())
File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 533, in script_main
return main(sys.argv[1:])
File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 526, in main
return gyp_main(args)
File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 502, in gyp_main
params, options.check, options.circular_check)
File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 129, in Load
params['parallel'], params['root_targets'])
File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2736, in Load
variables, includes, depth, check, True)
File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 386, in LoadTargetBuildFile
includes, True, check)
File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 238, in LoadOneBuildFile
None)
File "binding.gyp", line 1
{
^
SyntaxError: invalid syntax
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/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 2.6.32-573.8.1.el6.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=$NODE_PATH/node_modules/hdf5/lib/binding/hdf5.node" "--module_name=hdf5" "--module_path=$NODE_PATH/node_modules/hdf5/lib/binding" "--python=/usr/bin/python2"

from hdf5.node.

mrfitz42 avatar mrfitz42 commented on July 22, 2024

64 bit

from hdf5.node.

mrfitz42 avatar mrfitz42 commented on July 22, 2024

My bad, I should have searched for "syntax error on binding.gyp line 1". First result tells me it's a python version problem. This VM has Python 2.6.6, node-gyp wants 2.7. Now to get python 2.7 installed.

from hdf5.node.

mrfitz42 avatar mrfitz42 commented on July 22, 2024

That did it. 'npm install [email protected] --build-from-source --python=$path_to_python2.7' worked.

from hdf5.node.

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.