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

Unable to install acodex-server in termux #6

Closed
pixelguy106 opened this issue Feb 22, 2024 · 16 comments
Closed

Unable to install acodex-server in termux #6

pixelguy106 opened this issue Feb 22, 2024 · 16 comments

Comments

@pixelguy106
Copy link

It's seems the new update cause major error on installation on acodex-server, before everything fine there is no any error when installing it but the new update cause to break the installation process, it seems it required the android_ndk now but before it doesn't need that. can you fix this issues.

$ npm i -g acodex-server
[##################] - reify:hono: timing reifyNode:node_modules/acod
> [email protected] install
> node-gyp rebuild

gyp info it worked if it ends with okming reifyNode:node_modules/acod
gyp info using [email protected]
gyp info using [email protected] | android | arm
gyp info find Python using Python version 3.11.8 found at "/data/data/com.termux/files/usr/bin/python3"
[##################] / reify:hono: timing reifyNode:node_modules/acod
gyp info spawn /data/data/com.termux/files/usr/bin/python3odules/acod
gyp info spawn args [
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/home/.cache/node-gyp/21.6.2/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/data/data/com.termux/files/home/.cache/node-gyp/21.6.2',
gyp info spawn args '-Dnode_gyp_dir=/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/data/data/com.termux/files/home/.cache/node-gyp/21.6.2/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyp
gyp ERR! configure error ify:hono: timing reifyNode:node_modules/acod
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18)
gyp ERR! stack at ChildProcess.emit (node:events:519:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 4.19.127-gfc2fca064b48-dirty
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty
gyp ERR! node -v v21.6.2
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild

npm ERR! A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2024-02-22T14_21_15_030Z-debug-0.log
@caferx0
Copy link

caferx0 commented Feb 23, 2024

I'm having the same problem too, please fix it

@deviaze
Copy link

deviaze commented Feb 24, 2024

Same issue here; failed to launch and now fails to reinstall.

@bajrangCoder
Copy link
Owner

Try this

cd /data/data/com.termux/files/usr/lib/node_modules
npm i node-pre-gyp rebuild
pkg install nodejs
pkg install nodejs-lts
npm i -g acodex-server

Run the commands
Issue: nodejs/node-gyp#508

@pixelguy106
Copy link
Author

Try this

cd /data/data/com.termux/files/usr/lib/node_modules
npm i node-pre-gyp rebuild
pkg install nodejs
pkg install nodejs-lts
npm i -g acodex-server

Run the commands
Issue: nodejs/node-gyp#508

Screenshot_20240224-100126

@deviaze
Copy link

deviaze commented Feb 24, 2024

Try this

cd /data/data/com.termux/files/usr/lib/node_modules
npm i node-pre-gyp rebuild
pkg install nodejs
pkg install nodejs-lts
npm i -g acodex-server

Run the commands
Issue: nodejs/node-gyp#508

Also failed here:

cd /data/data/com.termux/files/usr/lib/node_modules
npm i node-pre-gyp rebuild
pkg install nodejs
pkg install nodejs-lts
npm i -g acodex-server
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

added 70 packages, and removed 238 packages in 878ms

3 packages are looking for funding
  run `npm fund` for details
Checking availability of current mirror:
[*] https://mirror.fcix.net/termux/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nodejs is already the newest version (21.6.2-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Checking availability of current mirror:
[*] https://mirror.fcix.net/termux/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  nodejs
The following NEW packages will be installed:
  nodejs-lts
0 upgraded, 1 newly installed, 1 to remove and 2 not upgraded.
Need to get 9873 kB of archives.
After this operation, 5796 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 https://mirror.fcix.net/termux/termux-main stable/main aarch64 nodejs-lts aarch64 20.11.1-1 [9873 kB]
Fetched 9873 kB in 1s (6860 kB/s)
(Reading database ... 30761 files and directories currently installed.)
Removing nodejs (21.6.2-1) ...
dpkg: warning: while removing nodejs, directory '/data/data/com.termux/files/usr/lib/node_modules' not empty so not removed
Selecting previously unselected package nodejs-lts.
(Reading database ... 27961 files and directories currently installed.)
Preparing to unpack .../nodejs-lts_20.11.1-1_aarch64.deb ...
Unpacking nodejs-lts (20.11.1-1) ...
Setting up nodejs-lts (20.11.1-1) ...
[#################.] - reify:node-pty: timing reifyNode:node_
> [email protected] install
> node-gyp rebuild

gyp info it worked if it ends with okming reifyNode:node_modu
gyp info using [email protected]
gyp info using [email protected] | android | arm64
gyp info find Python using Python version 3.11.8 found at "/data/data/com.termux/files/usr/bin/python3"
[##################] / reify:hono: timing reifyNode:node_modu
gyp http GET https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v20.11.1/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v20.11.1/SHASUMS256.txt
gyp info spawn /data/data/com.termux/files/usr/bin/python3odu
gyp info spawn args [
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/home/.cache/node-gyp/20.11.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/data/data/com.termux/files/home/.cache/node-gyp/20.11.1',
gyp info spawn args '-Dnode_gyp_dir=/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/data/data/com.termux/files/home/.cache/node-gyp/20.11.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18)
gyp ERR! stack at ChildProcess.emit (node:events:518:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 5.15.94-android13-8-27763874-abS911U1UES2BXAD
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty
gyp ERR! node -v v20.11.1
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild

npm ERR! A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2024-02-24T02_03_46_644Z-debug-0.log

(image upload failed (thanks github mobile))

@Haerbin23456
Copy link

Relate to issue termux/termux-app#3858

@bajrangCoder
Copy link
Owner

Try this solution: bajrangCoder/acode-plugin-acodex#56 (comment)

@pixelguy106
Copy link
Author

It installed but a error thrown when I try to use the acodex-server
Screenshot_20240228-200753

@bajrangCoder
Copy link
Owner

Ahh, there is a small bug in server , within an hour I am gonna publish a patch for it.

Thanks for Reporting!

@daniuwo
Copy link

daniuwo commented Feb 29, 2024

Ahh, there is a small bug in server , within an hour I am gonna publish a patch for it.

Thanks for Reporting!

Has it been fixed

@1Code-0
Copy link

1Code-0 commented Feb 29, 2024

Ahh, there is a small bug in server , within an hour I am gonna publish a patch for it.
Thanks for Reporting!

Has it been fixed

Not yet

@bajrangCoder
Copy link
Owner

Ahh, there is a small bug in server , within an hour I am gonna publish a patch for it.
Thanks for Reporting!

Has it been fixed

Yes, Update your acodex-server to v1.1.4

Using :

npm update -g acodex-server

@1Code-0
Copy link

1Code-0 commented Mar 1, 2024

Screenshot_20240301-073703_Termux
It worked, thanks

@harsha1-2-3
Copy link

harsha1-2-3 commented Mar 1, 2024

It's working bajrangCoder thanks for the instant support 🙂.Keep Inspiring.

@bajrangCoder
Copy link
Owner

Glad to see 🥹🥹

@pixelguy106
Copy link
Author

Thank you @bajrangCoder for fixing the bugs, you're truly a Chad 🗿🗿🗿

Screenshot_20240301-150203

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

8 participants