nodejs-phplike icon indicating copy to clipboard operation
nodejs-phplike copied to clipboard

PHPlike will not install on Synology 213j

Open FM57 opened this issue 8 years ago • 10 comments

No compiler, make command fails. node-gyp is installed but still does not execute make command. I tried to manually install 'make' through opkg but it fails too.

So I would need a way to install pre compiled version of PHPlike or another way to compile cleanly on Synology with armada 370 processor.

Thanks

Fred

FM57 avatar Oct 19 '17 21:10 FM57

Could you type "uname -a" on Synology to show the kernel version of linux?

puritys avatar Oct 24 '17 15:10 puritys

Hello,

This is so great to answer ! Here it is

[image: Images intégrées 1]

I tried to install Make through opkg but I have a build issue. That version of make does not seem compatible with the code.

Thanks in advance

Fred

2017-10-24 17:56 GMT+02:00 Jackie Chen [email protected]:

Could you type "uname -a" on Synology to show the kernel version of linux?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/puritys/nodejs-phplike/issues/10#issuecomment-339039711, or mute the thread https://github.com/notifications/unsubscribe-auth/AfaqjDFUosUM0fVNF9rxgqaik5hroFuRks5svgilgaJpZM4P_4sk .

FM57 avatar Oct 24 '17 16:10 FM57

Sorry, I could not find out the version of linux image from the string "[image: Images intégrées 1]".

Could you type the following two commands to show more Synology OS information.

cat /proc/version
dmesg | grep Linux

Also you could show me the error message when you install the Phplike. Make sure the libcurl-devel is already installed on your system if you want to compile by yourselves

puritys avatar Oct 25 '17 14:10 puritys

Hi M. Chen,

Sure, anything you require !

[image: Images intégrées 1]

It seems that there is an issue with the grep function on the Synology.

As for the libcurl-devel, it is not available on Synology though curl is and is installed of course.

So not sure how to move from here.

Best

Fred

2017-10-25 16:00 GMT+02:00 Jackie Chen [email protected]:

Sorry, I could not find out the version of linux image from the string "[image: Images intégrées 1]".

Could you type the following two command to show more Synology OS information.

cat /proc/version dmesg | grep Linux

Also you could show me the error message when you install the Phplike. Make sure the libcurl-devel is already installed on your system if you want to compile by yourselves

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/puritys/nodejs-phplike/issues/10#issuecomment-339339302, or mute the thread https://github.com/notifications/unsubscribe-auth/AfaqjPpQJcb43T9WomBgCZqFbhd47xAgks5svz70gaJpZM4P_4sk .

FM57 avatar Oct 25 '17 17:10 FM57

Hello again,

And the error message below FM57@DiskStation:/var/services/web/node.js$ sudo npm install phplike |

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library.

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp" /volume1/web/node.js/node_modules/make/bin/make.js:7 const { existsSync: exists } = fs; ^

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:140:18) at node.js:1043:3 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) FM57@DiskStation:/var/services/web/node.js$

2017-10-25 19:56 GMT+02:00 Frederic Martin [email protected]:

Hi M. Chen,

Sure, anything you require !

[image: Images intégrées 1]

It seems that there is an issue with the grep function on the Synology.

As for the libcurl-devel, it is not available on Synology though curl is and is installed of course.

So not sure how to move from here.

Best

Fred

2017-10-25 16:00 GMT+02:00 Jackie Chen [email protected]:

Sorry, I could not find out the version of linux image from the string "[image: Images intégrées 1]".

Could you type the following two command to show more Synology OS information.

cat /proc/version dmesg | grep Linux

Also you could show me the error message when you install the Phplike. Make sure the libcurl-devel is already installed on your system if you want to compile by yourselves

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/puritys/nodejs-phplike/issues/10#issuecomment-339339302, or mute the thread https://github.com/notifications/unsubscribe-auth/AfaqjPpQJcb43T9WomBgCZqFbhd47xAgks5svz70gaJpZM4P_4sk .

FM57 avatar Oct 26 '17 07:10 FM57

And by removing folder make (fom opkg) inside node_modules

FM57@DiskStation:/var/services/web/node.js$ sudo npm install phplike

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library. make: Entering directory '/volume1/web/node.js/node_modules/phplike/build' make: Leaving directory '/volume1/web/node.js/node_modules/phplike/build'

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp" Makefile:1: /env.mak: No such file or directory make: *** No rule to make target '/env.mak'. Stop. gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) FM57@DiskStation:/var/services/web/node.js$

2017-10-26 9:29 GMT+02:00 Frederic Martin [email protected]:

Hello again,

And the error message below FM57@DiskStation:/var/services/web/node.js$ sudo npm install phplike |

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library.

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp" /volume1/web/node.js/node_modules/make/bin/make.js:7 const { existsSync: exists } = fs; ^

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:140:18) at node.js:1043:3 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/ npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) FM57@DiskStation:/var/services/web/node.js$

2017-10-25 19:56 GMT+02:00 Frederic Martin [email protected]:

Hi M. Chen,

Sure, anything you require !

[image: Images intégrées 1]

It seems that there is an issue with the grep function on the Synology.

As for the libcurl-devel, it is not available on Synology though curl is and is installed of course.

So not sure how to move from here.

Best

Fred

2017-10-25 16:00 GMT+02:00 Jackie Chen [email protected]:

Sorry, I could not find out the version of linux image from the string "[image: Images intégrées 1]".

Could you type the following two command to show more Synology OS information.

cat /proc/version dmesg | grep Linux

Also you could show me the error message when you install the Phplike. Make sure the libcurl-devel is already installed on your system if you want to compile by yourselves

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/puritys/nodejs-phplike/issues/10#issuecomment-339339302, or mute the thread https://github.com/notifications/unsubscribe-auth/AfaqjPpQJcb43T9WomBgCZqFbhd47xAgks5svz70gaJpZM4P_4sk .

FM57 avatar Oct 26 '17 07:10 FM57

You have not permission to modify the dir "/root/".

Try to change the node module dir by this command:

npm config set prefix /volume1/web/node.js/

puritys avatar Oct 28 '17 08:10 puritys

Hi M. Chen,

It did not work but my path was a bit different so I adapted the command to

npm config set prefix /var/services/web/node.js/

I then tried to reinstall phplike and got a different error message:

FM57@DiskStation:/var/services/web/node.js$ npm install phplike /

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library. make: Entering directory '/volume1/web/node.js/node_modules/phplike/build' make: Leaving directory '/volume1/web/node.js/node_modules/phplike/build'

Makefile:1: /env.mak: No such file or directory make: *** No rule to make target '/env.mak'. Stop. gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

I see that it tried to install into /volume1/web/node.js/node_modules/phplike while my path is /var/services/web/node.js/.

Is it something I can change from my end or in the phplike install script ?

Thanks much. We are making progress !

Fred

2017-10-28 10:58 GMT+02:00 Jackie Chen [email protected]:

You have not permission to modify dir "/root/".

Try to change the node module dir by this command:

npm config set prefix /volume1/web/node.js/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/puritys/nodejs-phplike/issues/10#issuecomment-340161573, or mute the thread https://github.com/notifications/unsubscribe-auth/AfaqjOUOFYAz_a51RH1Cl2RpUgnx8AdFks5swuy8gaJpZM4P_4sk .

FM57 avatar Oct 28 '17 09:10 FM57

I forgot to mention that I had the same message with your recommendation

FM57@DiskStation:/var/services/web/node.js$ npm config set prefix /volume1/web/node.js/ FM57@DiskStation:/var/services/web/node.js$ npm install phplike

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library. make: Entering directory '/volume1/web/node.js/node_modules/phplike/build' make: Leaving directory '/volume1/web/node.js/node_modules/phplike/build'

Makefile:1: /env.mak: No such file or directory make: *** No rule to make target '/env.mak'. Stop. gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

2017-10-28 11:22 GMT+02:00 Frederic Martin [email protected]:

Hi M. Chen,

It did not work but my path was a bit different so I adapted the command to

npm config set prefix /var/services/web/node.js/

I then tried to reinstall phplike and got a different error message:

FM57@DiskStation:/var/services/web/node.js$ npm install phplike /

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library. make: Entering directory '/volume1/web/node.js/node_modules/phplike/build' make: Leaving directory '/volume1/web/node.js/node_modules/phplike/build'

Makefile:1: /env.mak: No such file or directory make: *** No rule to make target '/env.mak'. Stop. gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/ npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

I see that it tried to install into /volume1/web/node.js/node_modules/phplike while my path is /var/services/web/node.js/.

Is it something I can change from my end or in the phplike install script ?

Thanks much. We are making progress !

Fred

2017-10-28 10:58 GMT+02:00 Jackie Chen [email protected]:

You have not permission to modify dir "/root/".

Try to change the node module dir by this command:

npm config set prefix /volume1/web/node.js/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/puritys/nodejs-phplike/issues/10#issuecomment-340161573, or mute the thread https://github.com/notifications/unsubscribe-auth/AfaqjOUOFYAz_a51RH1Cl2RpUgnx8AdFks5swuy8gaJpZM4P_4sk .

FM57 avatar Oct 28 '17 09:10 FM57

And :)

I tried to go directly to /volume1/web/node.js. It is actually the same path as the other. (symbolic link) ?

FM57@DiskStation:/volume1/web/node.js$

I ran again npm install phplike but still same error about the make: *** No rule to make target '/env.mak'. Stop.

Best Regards

Fred

2017-10-28 11:26 GMT+02:00 Frederic Martin [email protected]:

I forgot to mention that I had the same message with your recommendation

FM57@DiskStation:/var/services/web/node.js$ npm config set prefix /volume1/web/node.js/ FM57@DiskStation:/var/services/web/node.js$ npm install phplike

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library. make: Entering directory '/volume1/web/node.js/node_modules/phplike/build' make: Leaving directory '/volume1/web/node.js/node_modules/phplike/build'

Makefile:1: /env.mak: No such file or directory make: *** No rule to make target '/env.mak'. Stop. gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/ npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

2017-10-28 11:22 GMT+02:00 Frederic Martin [email protected]:

Hi M. Chen,

It did not work but my path was a bit different so I adapted the command to

npm config set prefix /var/services/web/node.js/

I then tried to reinstall phplike and got a different error message:

FM57@DiskStation:/var/services/web/node.js$ npm install phplike /

[email protected] install /volume1/web/node.js/node_modules/phplike node install.js

Auto Recompile C/C++ library. make: Entering directory '/volume1/web/node.js/node_mod ules/phplike/build' make: Leaving directory '/volume1/web/node.js/node_modules/phplike/build'

Makefile:1: /env.mak: No such file or directory make: *** No rule to make target '/env.mak'. Stop. gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/n pm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 3.2.40 gyp ERR! command "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/web/node.js/node_modules/phplike gyp ERR! node -v v4.8.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

[email protected] node_modules/phplike ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

I see that it tried to install into /volume1/web/node.js/node_modules/phplike while my path is /var/services/web/node.js/.

Is it something I can change from my end or in the phplike install script ?

Thanks much. We are making progress !

Fred

2017-10-28 10:58 GMT+02:00 Jackie Chen [email protected]:

You have not permission to modify dir "/root/".

Try to change the node module dir by this command:

npm config set prefix /volume1/web/node.js/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/puritys/nodejs-phplike/issues/10#issuecomment-340161573, or mute the thread https://github.com/notifications/unsubscribe-auth/AfaqjOUOFYAz_a51RH1Cl2RpUgnx8AdFks5swuy8gaJpZM4P_4sk .

FM57 avatar Oct 28 '17 09:10 FM57