Nvm install - Warning: Failed to open the file - Permission Denied - node.js

I currently have node installed on my computer (ubuntu) with the v12.22.9 version and I'm trying to install the v10.22.0 version with the following command: nvm install v10.22.0 but I always get the error described below. How do I resolve it?
Downloading and installing node v10.22.0...
Downloading https://nodejs.org/dist/v10.22.0/node-v10.22.0-linux-x64.tar.xz...
Warning: Failed to open the file
Warning: /home/wand/.nvm/.cache/bin/node-v10.22.0-linux-x64/node-v10.22.0-linux
Warning: -x64.tar.xz: Permission denied
curl: (23) Failure writing output to destination
Binary download from https://nodejs.org/dist/v10.22.0/node-v10.22.0-linux-x64.tar.xz failed, trying source.
grep: /home/wand/.nvm/.cache/bin/node-v10.22.0-linux-x64/node-v10.22.0-linux-x64.tar.xz: Arquivo ou diretório inexistente
Provided file to checksum does not exist.
Binary download failed, trying source.
Detected that you have 12 CPU core(s)
Running with 11 threads to speed up the build
Downloading https://nodejs.org/dist/v10.22.0/node-v10.22.0.tar.xz...
Warning: Failed to open the file
Warning: /home/wand/.nvm/.cache/src/node-v10.22.0/node-v10.22.0.tar.xz:
Warning: Permission denied
0.0%curl: (23) Failure writing output to destination
Binary download from https://nodejs.org/dist/v10.22.0/node-v10.22.0.tar.xz failed, trying source.
grep: /home/wand/.nvm/.cache/src/node-v10.22.0/node-v10.22.0.tar.xz: Arquivo ou diretório inexistente
Provided file to checksum does not exist.
I tried to install a previous version of node but it gave an error.

Related

Trying to install python-mbedtls on Windows using VSCode

I am trying to install the python-mbedtls package using pip installer in my venv on Windows, but I am getting the below error:
build\3.10.2\temp.win-amd64-3.10\Release\pyrex\mbedtls\exceptions.c(685): fatal error C1083: Cannot open include file: 'mbedtls/error.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-mbedtls
Failed to build python-mbedtls
ERROR: Could not build wheels for python-mbedtls, which is required to install pyproject.toml-based projects
I know that this library uses the C lib mbedtls and I have no experience using C, or C libraries in my python code directly.
I have made sure to install the C/C++ build tools on my VSCode, and I'm using Python 3.10. I am completely lost on how to proceed

Cygwin -- installing `tcl-devel` packages does not provide header files

I have some makefile that is used to compile a program. During compilation I get an error:
In file included from kernel/driver.cc:20:
./kernel/yosys.h:81:12: fatal error: tcl.h: No such file or directory
81 | # include <tcl.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:696: kernel/driver.o] Error 1
Then I rerun Cygwin setup application and install new package tcl-devel. I restart the Cygwin terminal and try again. The same error pops up. I don't understand! Why aren't headers found?
My tcl and tcl-devel are both of version 8.6.11-1.

trying to use the gstreamer-player rust crate, I get this pkg-config error

This is the full log
error: failed to run custom build command for `glib-sys v0.10.1`
Caused by:
process didn't exit successfully: `C:\Users\Wu\Documents\RustProjects\mechanical\target\debug\build\glib-sys-b6b5049ea9ffd484\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=GLIB_2.0_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=GLIB_2.0_STATIC
cargo:rerun-if-env-changed=GLIB_2.0_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
Failed to run `"pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.42"`: The system cannot find the file specified. (os error 2)
warning: build failed, waiting for other jobs to finish...
error: build failed
I have this error when I try to build my project (it's empty but it's using the gstreamer-player crate
I was told to install pkg-config (I'm on windows) so I used MSYS2 to install it with pacman -S mingw-w64-x86_64-pkg-config
The error persisted so I added the environment variable PKG_CONFIG_PATH = H:\MSYS2\usr\lib\pkgconfig, and I added H:\MSYS2\usr\lib\pkgconfig to the path variable
The error still persists, anyone has any idea of what I could do or what am I doing wrong? Any help appreciated

installing php56w-gd error

I have installed PHP 5.6 in an amazon Instance in AWS.
PHP 5.6.22 (cli) (built: Jun 1 2016 21:46:41)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
I needed to install a module php56w-gd for image processing. However upon doing so when I run php I encounter this warnings.
PHP Warning: Module 'calendar' already loaded in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/5.6/modules/gd.so' - /usr/lib64/php/5.6/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'gettext' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/5.6/modules/gmp.so' - /usr/lib64/php/5.6/modules/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'iconv' already loaded in Unknown on line 0
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: Module 'shmop' already loaded in Unknown on line 0
PHP Warning: Module 'SimpleXML' already loaded in Unknown on line 0
PHP Warning: Module 'sockets' already loaded in Unknown on line 0
PHP Warning: Module 'tokenizer' already loaded in Unknown on line 0
PHP Warning: Module 'xml' already loaded in Unknown on line 0
PHP Warning: Module 'zip' already loaded in Unknown on line 0
I tried to uninstall it and reinstall but the same issue continues. The php56w-gd is also not working properly because the gd.so file is nowhere found.
Heres what I did to install the extension
yum install php56w-gd
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package php56w-gd.x86_64 0:5.6.22-1.w6 will be installed
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-gd-5.6.22-1.w6.x86_64
--> Running transaction check
---> Package php56w-common.x86_64 0:5.6.22-1.w6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================
Package Arch Version
====================================================================================================================================================================
Installing:
php56w-gd x86_64 5.6.22-1.w6
Installing for dependencies:
php56w-common x86_64 5.6.22-1.w6
Transaction Summary
====================================================================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 1.4 M
Installed size: 9.1 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): php56w-common-5.6.22-1.w6.x86_64.rpm
(2/2): php56w-gd-5.6.22-1.w6.x86_64.rpm
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : php56w-common-5.6.22-1.w6.x86_64
warning: /etc/php.ini created as /etc/php.ini.rpmnew
Installing : php56w-gd-5.6.22-1.w6.x86_64
Verifying : php56w-gd-5.6.22-1.w6.x86_64
Verifying : php56w-common-5.6.22-1.w6.x86_64
Installed:
php56w-gd.x86_64 0:5.6.22-1.w6
Dependency Installed:
php56w-common.x86_64 0:5.6.22-1.w6
Complete!
Please share your thoughts.
Thanks!
You must edit your php.ini (or extensions.ini) file and comment-out the extensions that are already compiled-in.
To see which extensions are compiled-in to your PHP binary, run:
php -m

Error while configuring libgraph

I have extracted the tar file of libgraph from a source and after extracting it, I have used the following command to configure it:
./configure --prefix=/usr/lib
After this command was run, it gave an error configure:
error: *** SDL version 1.2.0 not found!
Kindly help me.

Resources