Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing on node 12.22.10 #52

Open
Vaibhav-Agarwal06 opened this issue Feb 4, 2022 · 6 comments
Open

Error installing on node 12.22.10 #52

Vaibhav-Agarwal06 opened this issue Feb 4, 2022 · 6 comments

Comments

@Vaibhav-Agarwal06
Copy link

We are getting below error when we run sudo sh build.sh
OS: ubuntu 18.04
node version: v12.22.10
npm version: 6.14.16

agorasdk.target.mk:119: recipe for target 'Release/obj.target/agorasdk/agora_node_ext/Agor
aSdk.o' failed
make: *** [Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o] Error 1
make: Leaving directory '/home/ubuntu/record/src/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/node-gyp/lib/build.js:194
:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:1
2)
gyp ERR! System Linux 4.15.0-1021-aws
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build"
gyp ERR! cwd /home/ubuntu/record/src
gyp ERR! node -v v12.22.10
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
cp: cannot stat 'build/Release/agorasdk.node': No such file or directory

@anurag-ahead
Copy link

We are getting below error when we run sudo sh build.sh
OS: ubuntu 18.04
node version: v12.22.10
npm version: 6.14.16

agorasdk.target.mk:119: recipe for target 'Release/obj.target/agorasdk/agora_node_ext/Agor
aSdk.o' failed
make: *** [Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o] Error 1
make: Leaving directory '/home/ubuntu/record/src/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/node-gyp/lib/build.js:194
:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:1
2)
gyp ERR! System Linux 4.15.0-1021-aws
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build"
gyp ERR! cwd /home/ubuntu/record/src
gyp ERR! node -v v12.22.10
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
cp: cannot stat 'build/Release/agorasdk.node': No such file or directory

@plutoless
Copy link
Contributor

hi try using this branch if you are using nodejs12
https://github.com/AgoraIO/Basic-Recording/tree/dev/nodejs12

@Vaibhav-Agarwal06
Copy link
Author

@plutoless : Thanks. It's working on node version 12.x on Ubuntu OS. Do you have plans to make it compatible to node version 14.x?

We are getting below error when we run "sudo sh build.sh" command on centos on 12.x:
imgpsh_fullsize_anim

@plutoless
Copy link
Contributor

plutoless commented Feb 7, 2022

@Vaibhav-Agarwal06 i have supported node 14.x in dev/nodejs14 branch
i don't have centOS in hand so if that's not necessary maybe go with ubuntu first.

@Vaibhav-Agarwal06
Copy link
Author

@plutoless :
Thanks for prompt support.

Yes, issue has beed fixed for nodejs 14 on Ubuntu.

But some of our client want to setup on centos and don't want to use Ubuntu. Can you please also provide the fix for Centos OS as well.

@plutoless
Copy link
Contributor

@Vaibhav-Agarwal06 did you forget to switch branch on your centos system? i tried on centos and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants