2

I referred to this already answered question, but it wasnt of any help. Can you tell me what I'm missing?

I'm trying to install node.js on my Debian 8.0. According to this github article, I followed. I have the tarball file downloaded, extracted it, but when I tried to run ./configure inside the extracted tarball directory, it said

bash: ./configure: No such file or directory

I've checked the per-requisites that the site gave, I had all of them installed. Am I missing something here?

enter image description here

5
  • configure script doesn't exist? ls configure what's the output? If it exists and if you are not able to run then add executable permission to that file. chmod +x configure. If the configure doesn't exist at all then run autoreconf -v -f --install and then run .\configure. Better send your source tree structure.So that I can see what is missing.
    – Thushi
    Commented Sep 24, 2015 at 6:24
  • i've added the screenshot. see the edit Commented Sep 24, 2015 at 7:20
  • ls configure says no such file or directory Commented Sep 24, 2015 at 7:22
  • root@shazLaptop:~/Downloads/node-v4.1.1-linux-x64# ls configure ls: cannot access configure: No such file or directory root@shazLaptop:~/Downloads/node-v4.1.1-linux-x64# autoreconf -v -f --install autoreconf: 'configure.ac' or 'configure.in' is required root@shazLaptop:~/Downloads/node-v4.1.1-linux-x64# .\configure bash: .configure: command not found Commented Sep 24, 2015 at 7:22
  • That's not the proper sources. Looks like you have compiled data.
    – Thushi
    Commented Sep 24, 2015 at 8:43

2 Answers 2

2

From the looks of your screenshot, it looks like you downloaded the pre-compiled binaries. If that's the case, you won't have to compile anything. You should find an executable nodejs file inside the bin folder.

If you want to compile your own, you should download the source tarball here instead of the binary tarball.

2
  • i have node and npm file in the bin directory. How do i use it? If i run ./node and then run the command node -v to check the version of node installed, it says node is not defined Commented Sep 24, 2015 at 7:59
  • That works!! thanx!!! i was literally wasted my time to find this solution. then realized how stupid i am.. Commented Mar 3, 2016 at 11:30
1

Extract and copy the folder somewhere. for ex :

/home/your_username/packages 

or somewhere else you want.

Your path should look like: /home/your_username/packages/node-v5.7.1

Then add the node path to your $PATH so that u can execute node from anywhere

export PATH=$PATH:/home/your_username/packages/node-v5.7.1/bin

That's it!

To check, execute this command:

node -v

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.