Comments (14)
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.
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.
May I ask what locks you pre nodejs v4.2.1?
from hdf5.node.
Legacy installation. Need to stay pre-ES6.
from hdf5.node.
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.
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.
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.
if you vi the binding.gyp if there is a crlf it shows up as ^M
from hdf5.node.
what does the error look like?
from hdf5.node.
your machine is 32 or 64 bit?
from hdf5.node.
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.
64 bit
from hdf5.node.
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.
That did it. 'npm install [email protected] --build-from-source --python=$path_to_python2.7' worked.
from hdf5.node.
Related Issues (20)
- Support for Single Writer Multiple Reader (SWMR)? HOT 7
- Getting dataset attribute (getDatasetAttribute) on a 32 bit floating point in NODE/javascript returns a totally different value HOT 6
- hdf5_home_win does not get set HOT 2
- Read dataset with 2d array stored fails on reading chunks HOT 10
- issues reading 4 dimensional dataset HOT 2
- SyntaxError: unsupported data type on compound datasets HOT 5
- Node 12? HOT 32
- Delete attribute HOT 6
- Tutorial: "Writing & Reading subsets" is not working. HOT 3
- Segfault reading HOT 4
- issue with appending to tables on windows 10
- Error: The specified procedure could not be found. (process.dlopen) HOT 1
- `hdf5.File is not a constructor` when bundled with webpack HOT 2
- cannot install HOT 3
- Win10+Node v14.15.5 Compilation errors HOT 6
- Getting data from Buffer
- Compile Error HOT 12
- install with yarn? HOT 2
- windows-build-tools / vs2017? HOT 37
- Error with handling variable length data (H5T_VLEN) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hdf5.node.