zipscene / fanny Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I'm getting an error on npm install fanny on macosx. My node and npm versions are the most up to date node: v7.7.2, npm: v4.4.1
Failed at the [email protected] preinstall script './build_fann.sh'.
Make sure you have the latest version of node.js and npm installed.
If you do, this is most likely a problem with the fanny package, not with npm itself.
Tell the author that this fails on your system: ./build_fann.sh
Here is the content of the debug file:
3743 warn [email protected] No repository field.
3744 verbose stack Error: [email protected] preinstall: ./build_fann.sh
3744 verbose stack Exit status 1
3744 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
3744 verbose stack at emitTwo (events.js:106:13)
3744 verbose stack at EventEmitter.emit (events.js:194:7)
3744 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
3744 verbose stack at emitTwo (events.js:106:13)
3744 verbose stack at ChildProcess.emit (events.js:194:7)
3744 verbose stack at maybeClose (internal/child_process.js:899:16)
3744 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
3745 verbose pkgid [email protected]
3746 verbose cwd //Documents/AITtest
3747 verbose Darwin 15.6.0
3748 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "fanny"
3749 verbose node v7.7.2
3750 verbose npm v4.4.1
3751 error code ELIFECYCLE
3752 error errno 1
Let me know if you need any other info, thanks for your help
Here is interesting part of postinstall part:
> node-gyp configure && node-gyp build
CXX(target) Release/obj.target/addon-doublefann/src/addon.o
In file included from ../src/addon.cc:2:
In file included from ../src/fanny.h:5:
In file included from ../src/fann-includes.h:12:
../fann/include/fann_cpp.h:164:18: error: no member named 'unique_ptr' in namespace 'std'
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~^
../fann/include/fann_cpp.h:164:38: error: expected '(' for function-style cast or type construction
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~~~~ ^
../fann/include/fann_cpp.h:169:17: error: use of undeclared identifier 'data'
data.get()[i] = va_arg(layers, unsigned
^
../fann/include/fann_cpp.h:175:66: error: use of undeclared identifier 'data'
ann = fann_create_standard_array(num_layers, data.get());
^
../fann/include/fann_cpp.h:178:66: error: use of undeclared identifier 'data'
ann = fann_create_shortcut_array(num_layers, data.get());
^
../fann/include/fann_cpp.h:201:18: error: no member named 'unique_ptr' in namespace 'std'
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~^
../fann/include/fann_cpp.h:201:38: error: expected '(' for function-style cast or type construction
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~~~~ ^
../fann/include/fann_cpp.h:206:17: error: use of undeclared identifier 'data'
data.get()[i] = va_arg(layers, unsigned int);
^
../fann/include/fann_cpp.h:209:73: error: use of undeclared identifier 'data'
ann = fann_create_sparse_array(connection_rate, num_layers, data.get());
^
../fann/include/fann_cpp.h:362:18: error: no member named 'unique_ptr' in namespace 'std'
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~^
../fann/include/fann_cpp.h:362:38: error: expected '(' for function-style cast or type construction
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~~~~ ^
../fann/include/fann_cpp.h:367:17: error: use of undeclared identifier 'data'
data.get()[i] = va_arg(layers, unsigned
^
../fann/include/fann_cpp.h:371:61: error: use of undeclared identifier 'data'
bool status = create_standard_array(num_layers, data.get());
^
../fann/include/fann_cpp.h:421:18: error: no member named 'unique_ptr' in namespace 'std'
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~^
../fann/include/fann_cpp.h:421:38: error: expected '(' for function-style cast or type construction
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~~~~ ^
../fann/include/fann_cpp.h:426:17: error: use of undeclared identifier 'data'
data.get()[i] = va_arg(layers, unsigned
^
../fann/include/fann_cpp.h:431:47: error: use of undeclared identifier 'data'
data.get());
^
../fann/include/fann_cpp.h:478:18: error: no member named 'unique_ptr' in namespace 'std'
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~^
../fann/include/fann_cpp.h:478:38: error: expected '(' for function-style cast or type construction
std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/addon-doublefann/src/addon.o] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.