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 acodex-server #56

Closed
Imlalit-007 opened this issue Feb 24, 2024 · 8 comments
Closed

Error installing acodex-server #56

Imlalit-007 opened this issue Feb 24, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Imlalit-007
Copy link

acodex-server package is not installing
when I try to install it I got some errors.

This is the error in my termux terminal

~ $ npm install -g acodex-server
[##################] / reify:hono: timing rei

[email protected] install
node-gyp rebuild

gyp info it worked if it ends with okming rei
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 rei
gyp info spawn /data/data/com.termux/files/usr/bin/python3
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 rei
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess. (/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.191+
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-24T09_05_24_586Z-debug-0.log
~ $

please fix it as soon as possible

@Imlalit-007 Imlalit-007 added the bug Something isn't working label Feb 24, 2024
@bajrangCoder
Copy link
Owner

Currently I don't have any working solution

But very soon I will come up with a solution ☹️

Stay tuned! Sorry for Inconvenience 😔

@bajrangCoder bajrangCoder pinned this issue Feb 25, 2024
@bajrangCoder
Copy link
Owner

termux/termux-app#3858

@harsha1-2-3
Copy link

I also have same issue
Screenshot_2024-02-24-22-37-32-98_84d3000e3f4017145260f7618db1d683

Please provide step by step solution i tried lot of ways by searching about this but never worked

@KJoo
Copy link

KJoo commented Feb 27, 2024

Having problems downloading too ans its my first time :/ honestly thought I should just Uninstall acode all together cause there are better apps that I can quickly compile without going through all this

@bajrangCoder
Copy link
Owner

bajrangCoder commented Feb 28, 2024

@harsha1-2-3 @Imlalit-007
You can try the following temporary solution:

  • Open Termux
  • Create a folder in termux home directory (by default termux always opens in its home directory), using : mkdir .gyp
  • Create a file inside .gyp folder , name: include.gypi
  • and paste the following code inside the include.gypi file:
{
 'variables': {
  'android_ndk_path': ''
 }
}
  • after that you can install acodex-server easily without any problem with the official script mentioned in readme

Or use following command to fix the issue:

cd $HOME && mkdir -p .gyp && echo "{'variables': {'android_ndk_path': ''}}" > .gyp/include.gypi

Then install acodex-server :)

Edit:
Now you can use the install command that is given in readme (script is updated and there will no problem in installing):

curl -sL https://raw.githubusercontent.com/bajrangCoder/acode-plugin-acodex/main/installServer.sh | bash

@harsha1-2-3
Copy link

harsha1-2-3 commented Feb 29, 2024

Thanks Bro package installed with out errors.
But while trying to start the server with acodex-server , acodeX-server ,axs ,
it's showing this error
Screenshot_2024-02-29-16-54-49-40_84d3000e3f4017145260f7618db1d683
What happened bro please provide step by step solution to resolve issue....

@bajrangCoder
Copy link
Owner

Just update the server,
USING :

npm update -g acodex-server

@webmaster-exit-1
Copy link

webmaster-exit-1 commented Apr 12, 2024

Works for me, ty.
Screenshot_2024-04-12-12-46-45-26_84d3000e3f4017145260f7618db1d683.jpg

Screenshot_2024-04-12-13-09-45-66_a2cf8efcdd42a8e6f7906303f104fb67.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants