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

[js-templates] Error 127 /usr/bin/env: ‘node’: No such file or directory Makefile:106: recipe for target 'js-templates' failed #223

Closed
Snake883 opened this issue Feb 5, 2020 · 5 comments

Comments

@Snake883
Copy link

Snake883 commented Feb 5, 2020

I'm trying to upgrade to the latest master...

Instructions:

cd nextcloud/apps/facerecognition/
git pull
make

Log:

/var/www/nextcloud/apps/facerecognition# git pull
remote: Enumerating objects: 200, done.
remote: Counting objects: 100% (200/200), done.
remote: Compressing objects: 100% (121/121), done.
remote: Total 200 (delta 140), reused 134 (delta 79), pack-reused 0
Receiving objects: 100% (200/200), 50.20 KiB | 0 bytes/s, done.
Resolving deltas: 100% (140/140), completed with 23 local objects.
From https://github.com/matiasdelellis/facerecognition
   d110c31..aa81bce  master     -> origin/master
 * [new branch]      memory-logic -> origin/memory-logic
   94058a3..3f3b2d0  settings-service -> origin/settings-service
Updating d110c31..aa81bce
Fast-forward
 appinfo/info.xml                                    |   2 +-
 appinfo/routes.php                                  |   8 ++--
 js/admin.js                                         |   5 +--
 js/files-tabview.js                                 |   2 +-
 js/personal.js                                      |   2 +-
 lib/AppInfo/Application.php                         |   5 ++-
 lib/BackgroundJob/Tasks/AddMissingImagesTask.php    |  40 ++++++++++----------
 lib/BackgroundJob/Tasks/CheckRequirementsTask.php   |  70 +++++++++++++++++++++--------------
 lib/BackgroundJob/Tasks/CreateClustersTask.php      |  52 +++++++++++++-------------
 lib/BackgroundJob/Tasks/DisabledUserRemovalTask.php |  35 +++++++++---------
 lib/BackgroundJob/Tasks/ImageProcessingTask.php     |  37 +++++++++---------
 lib/BackgroundJob/Tasks/StaleImagesRemovalTask.php  |  62 +++++++++++++++----------------
 lib/Command/ResetAllCommand.php                     |   2 +-
 lib/Controller/FileController.php                   |  82 +++++++++++++++++++++++-----------------
 lib/Controller/PersonController.php                 | 115 ++++++++++++++++++++++++++++++++++++++------------------
 lib/Controller/ProcessController.php                |  53 +++++++++++++++++++-------
 lib/Controller/SettingController.php                | 233 ------------------------------------------------------------------------------------------------------------------
 lib/Controller/SettingsController.php               | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/Helper/MemoryLimits.php                         |  63 ++++++++++++++++++++++---------
 lib/Helper/Requirements.php                         |   8 ++++
 lib/Search/Provider.php                             |  42 ++++++++++++++-------
 lib/{ => Service}/FaceManagementService.php         |  37 ++++++++++--------
 lib/Service/FileService.php                         |  31 ++++++++--------
 lib/Service/SettingsService.php                     | 245 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/Settings/Admin.php                              |  56 +++++++++++++++++++---------
 lib/Watcher.php                                     |  54 ++++++++++++---------------
 tests/Integration/AddMissingImagesTaskTest.php      |   4 +-
 tests/Integration/CreateClustersTaskTest.php        |   7 ++--
 tests/Integration/DisabledUserRemovalTaskTest.php   |   8 ++--
 tests/Integration/ImageProcessingTaskTest.php       |   6 ++-
 tests/Integration/IntegrationTestCase.php           |   2 +-
 tests/Integration/ResetAllTest.php                  |   5 ++-
 tests/Integration/StaleImagesRemovalTaskTest.php    |   9 +++--
 tests/unit/MergeClustersTest.php                    |   8 ++--
 tests/unit/ResizeTest.php                           |   7 +++-
 35 files changed, 1040 insertions(+), 599 deletions(-)
 delete mode 100644 lib/Controller/SettingController.php
 create mode 100644 lib/Controller/SettingsController.php
 rename lib/{ => Service}/FaceManagementService.php (76%)
 create mode 100644 lib/Service/SettingsService.php

/var/www/nextcloud/apps/facerecognition# make
Checking binaries needed to build the application
Testing npm, curl, wget and bzip2. If one is missing, install it with the tools of your system.
npm -v
3.5.2
curl -V
curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
wget -V
GNU Wget 1.17.1 built on linux-gnu.

+digest -gpgme +https +ipv6 +iri +large-file -metalink +nls +ntlm
+opie -psl +ssl/openssl

Wgetrc:
    /etc/wgetrc (system)
Locale:
    /usr/share/locale
Compile:
    gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
    -DLOCALEDIR="/usr/share/locale" -I. -I../../src -I../lib
    -I../../lib -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include
    -DHAVE_LIBSSL -DNDEBUG -g -O2 -fPIE -fstack-protector-strong
    -Wformat -Werror=format-security -DNO_SSLv2 -D_FILE_OFFSET_BITS=64
    -g -Wall
Link:
    gcc -DHAVE_LIBSSL -DNDEBUG -g -O2 -fPIE -fstack-protector-strong
    -Wformat -Werror=format-security -DNO_SSLv2 -D_FILE_OFFSET_BITS=64
    -g -Wall -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro
    -Wl,-z,now -L/usr/lib -lpcre -luuid -lssl -lcrypto -lz -lidn
    ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
composer install --prefer-dist
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
composer update --prefer-dist
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
npm i
npm WARN facerecognition@0.5.8 license should be a valid SPDX license expression
mkdir -p vendor/js
cp node_modules/handlebars/dist/handlebars.js -f vendor/js/handlebars.js
mkdir -p vendor/js
cp node_modules/lozad/dist/lozad.js -f vendor/js/lozad.js
node_modules/handlebars/bin/handlebars js/templates -f js/templates.js
/usr/bin/env: ‘node’: No such file or directory
Makefile:106: recipe for target 'js-templates' failed
make: *** [js-templates] Error 127
@matiasdelellis
Copy link
Owner

It is still a bug that you already reported but let's continue here.

/usr/bin/env: ‘node’: No such file or directory

According to this you don't have instalated nodejs.. Check this and in any case try to install it.

[matias@ideapad ~]$ node -v
v10.16.3

@matiasdelellis
Copy link
Owner

And then always: make clean & make 😉

@Snake883
Copy link
Author

Snake883 commented Feb 5, 2020

Trying...

#node -v
bash: /usr/bin/node: No such file or directory

# apt install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I then tried this:

# apt install nodejs-legacy
# node -v
v4.2.6

Next:

# sudo ln -s /usr/bin/nodejs /usr/bin/node
ln: failed to create symbolic link '/usr/bin/node': File exists

Finally:
make clean & make

THANK YOU...for the help and patience.

@matiasdelellis
Copy link
Owner

Wow.. It seems that this package just has that symbolic link.
I'll keep that in mind when others report something similar .. 😉

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

2 participants