in linux instance to aws:
i make step by step this tutorial http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/ but when i went to install npm i couldn't the console show me this error:
scripts/doc-build.sh doc/cli/npm-help-search.md man/man1/npm-help-search.1
make[1]: Entering directory `/var/www/html/npm'
node cli.js install marked-man --no-global
bash: node: command not found
make[1]: *** [node_modules/.bin/marked-man] Error 127
make[1]: Leaving directory `/var/www/html/npm'
make: *** [man/man1/npm-help-search.1] Error 2
I am guessing that you started with a new instance and did not update it with latest updates or package sources first. You are missing the source for NodeJS packages.
This will add the source and install nodejs:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
Follow this: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Related
When I try to use the "nvm install" command, it seems to run fine but at the very end I get the following long error message:
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: Missing input files:
/home/Dinghy/.nvm/.cache/src/node-v10.20.1/files/tools\msvs\genfiles\node_etw_provider.rc
/home/Dinghy/.nvm/.cache/src/node-v10.20.1/files/tools\msvs\genfiles\node_etw_provider.h
/home/Dinghy/.nvm/.cache/src/node-v10.20.1/files/deps/v8/gypfiles/..\src\parsing\preparse-data-format.h
/home/Dinghy/.nvm/.cache/src/node-v10.20.1/files/tools\msvs\genfiles\node_perfctr_provider.rc
/usr/bin/python2.7 tools/gyp_node.py -f make
make -C out BUILDTYPE=Release V=1
touch 7943452e36215487f7a1b8edf63ca06ddfd83538.intermediate
LD_LIBRARY_PATH=/home/Dinghy/.nvm/.cache/src/node-v10.20.1/files/out/Release/lib.host:/home/Dinghy/.nvm/.cache/src/node-v10.20.1/files/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p tools/msvs/genfiles; "mc src/res/node_etw_provider.man -h tools/msvs/genfiles -r tools/msvs/genfiles"
/bin/sh: mc src/res/node_etw_provider.man -h tools/msvs/genfiles -r tools/msvs/genfiles: No such file or directory
make[1]: *** [node_etw.target.mk:17: 7943452e36215487f7a1b8edf63ca06ddfd83538.intermediate] Error 127
rm 7943452e36215487f7a1b8edf63ca06ddfd83538.intermediate
make: *** [Makefile:99: node] Error 2
nvm: install v10.20.1 failed!
I've also tried installing it manually but haven't had any success that way either. This worked fine on an old install of cygwin I had, so I'm not sure what the problem is on this new install.
Following John Papa's post on 'How to use npm global without sudo on OSX' and I am running
brew install node --without-npm
I get this info/error(s):
/usr/local > brew install node --without-npm
==> Downloading https://nodejs.org/dist/v5.10.1/node-v5.10.1.tar.xz
Already downloaded: /Library/Caches/Homebrew/node-5.10.1.tar.xz
==> Downloading https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz
Already downloaded: /Library/Caches/Homebrew/node--icu4c-56.1.tgz
==> ./configure --prefix=/usr/local/Cellar/node/5.10.1 --without-npm --with-intl
==> make install
Last 15 lines from /Users/justin/Library/Logs/Homebrew/node/02.make:
#include <limits>
^
In file included from ../deps/gtest/src/gtest-death-test.cc:34:
In file included from ../deps/gtest/include/gtest/gtest-death-test.h:41:
In file included from ../deps/gtest/include/gtest/internal/gtest-death-test-internal.h:40:
In file included from ../deps/gtest/include/gtest/internal/gtest-internal.h:40:
../deps/gtest/include/gtest/internal/gtest-port.h:259:10: fatal error: 'ctype.h' file not found
#include <ctype.h> // for isspace, etc
^
1 error generated.
make[1]: *** [/private/tmp/node20160410-11435-157r8bn/node-v5.10.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-filepath.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[1]: *** [/private/tmp/node20160410-11435-157r8bn/node-v5.10.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o] Error 1
make: *** [node] Error 2
Following Homebrew's troubleshooting instructions, I ran brew update twice and brew doctor -- but still no luck. I'm not familiar with homebrew and haven't messed with this stuff in a while. Any ideas what these errors mean?
It seems you did not install command line developer tools. Before installing Node with Homebrew, try executing this command in your Terminal:
xcode-select --install
If it is installed successfully this message will be shown:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
After the installation, run the brew command again.
The ctype.h file should be somewhere like /usr/include/ctype.h.
I just bought a virtual private server and I'm trying to install the latest version of node (which is node-v4.0.0).
Here what I have done :
apt-get update
apt-get install build-essential
apt-get install python
wget http://nodejs.org/dist/latest/node-v4.0.0.tar.gz
tar xfz node-v4.0.0.tar.gz
cd node-v4.0.0
./configure
make
Unfortunately, the make failed with this error message :
(...)
In file included from ../src/js_stream.h:6:0,
from ../src/js_stream.cc:1:
../src/stream_base.h:218:11: error: overriding ‘virtual node::StreamBase::~StreamBase() noexcept (true)’
make[1]: *** [/root/node-v4.0.0/out/Release/obj.target/node/src/js_stream.o] Error 1
make[1]: Leaving directory `/root/node-v4.0.0/out'
make: *** [node] Error 2
I don't really know how to fix it as I thought Error 2 was caught when you forgot to install any compiler (but I did with build-essential & python, didn't I?)
Thanks a lot
I fixed it downgrading node version to v0.12.7
Probably you have old GCC. Node.js 4.0.0 requires version 4.8 or newer.
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
https://nodejs.org/en/download/package-manager/
I am trying to build caffe after the instructions on http://caffe.berkeleyvision.org/installation.html#prerequisites
When compiling i get the following error:
(I use Fedora 22)
$make all
CXX src/caffe/data_transformer.cpp
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/data_transformer.hpp:6,
from src/caffe/data_transformer.cpp:6:
./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
Makefile:516: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
What am i doin wrong?
You have to install missing dependencies (gflags).
Fedora/RHEL/CentOS: sudo yum install gflags-devel
Ubuntu: sudo apt-get install libgflags-dev
There are also instructions for other dependencies:
Fedora/RHEL/CentOS :http://caffe.berkeleyvision.org/install_yum.html
Ubuntu: http://caffe.berkeleyvision.org/install_apt.html
To install missing gflag dependencies
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make
sudo make install
I wish to install redis on my red-hat environment. I do the following:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
I got the next error:
make[3]: *** [net.o] Error 127
make[3]: Leaving directory `/tmp/redis-stable/deps/hiredis'
make[2]: *** [hiredis] Error 2
make[2]: Leaving directory `/tmp/redis-stable/deps'
make[1]: [persist-settings] Error 2 (ignored)
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/tmp/redis-stable/src'
make: *** [all] Error 2
How can I fix it?
You are trying to install redis from source code. What this process do is to compile and create executable on your machine and then install it. For doing this you need various tools like gcc etc. Best way is to install all of them together by installing that group. Run this from terminal
yum grouplist
This will show all groups available and then choose group you want to install or run directly
yum groupinstall 'Development Tools'
This will save you from other problems which might come in future while installing from source.
for those of you who encounter this error
check this github issue
before make run this command
$ cd deps; make hiredis lua jemalloc linenoise
Install build essential first
sudo apt-get install build-essential
then install the dependencies
cd deps
make hiredis lua jemalloc linenoise
If you're not an advanced user maybe it is not a good idea to install REDIS from the source.
Instead you should install a packaged version. For example on Fedora / Centos / RHEL:
sudo yum install redis
Come out from your extracted folder/Dir and remove the extracted redis-x.x.x folder with rm -rf redis-x.x.x
now again extract the redis folder with tar xzf redis-x.x.x.tar.gz
go to redis directory again and run the make or make test again. it works for me.