Saturday 11 March 2017

Install edge on CentOS 7

[idf@node3 js]$ mono --version
Mono JIT compiler version 4.8.0 (Stable 4.8.0.495/e4a3cf3 Wed Feb 22 18:07:20 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen
[idf@node3 js]$ 

[idf@node3 js]$ dotnet --info
.NET Command Line Tools (1.0.1)

Product Information:
 Version:            1.0.1
 Commit SHA-1 hash:  005db40cd1

Runtime Environment:
 OS Name:     rhel
 OS Version:  7.3
 OS Platform: Linux
 RID:         centos.7-x64
 Base Path:   /opt/dotnet/sdk/1.0.1
[idf@node3 js]$ 

When I try to install edge, I get this error: fatal error: glib.h: No such file or directory

[idf@node3 react-trader]$ npm install edge

> edge-cs@1.2.1 install /home/idf/Documents/js/react-trader/node_modules/edge-cs
> node tools/install.js

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.

> edge@6.5.1 install /home/idf/Documents/js/react-trader/node_modules/edge
> node tools/install.js

make: Entering directory `/home/idf/Documents/js/react-trader/node_modules/edge/build'
  CXX(target) Release/obj.target/edge_nativeclr/src/mono/clractioncontext.o
  CXX(target) Release/obj.target/edge_nativeclr/src/mono/clrfunc.o
In file included from ../src/mono/clrfunc.cpp:4:0:
/usr/include/mono-2.0/mono/metadata/exception.h:4:18: fatal error: glib.h: No such file or directory
 #include <glib.h>
                  ^
compilation terminated.
make: *** [Release/obj.target/edge_nativeclr/src/mono/clrfunc.o] Error 1
make: Leaving directory `/home/idf/Documents/js/react-trader/node_modules/edge/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.10.0-229.1.2.el7.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/idf/Documents/js/react-trader/node_modules/edge
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
ReactTrader@1.0.0 /home/idf/Documents/js/react-trader
└─┬ edge@6.5.1 
  ├── edge-cs@1.2.1 
  └── nan@2.5.1 

npm WARN ReactTrader@1.0.0 No repository field.
[idf@node3 react-trader]$ 



via Ivan

No comments:

Post a Comment