2

I want to run NodeJS on Slackware based distro named PuppyLinux. Since I am used to Ubuntu and CentOS (the simple Linux land), I found it pretty hard to find a NodeJS package to run on Slackware.

I tried building it from source, but it took loooong time to install gcc and dependencies and then I found some silly compilation errors (can't find errno.h!)

Are there any NodeJS (and npm) binaries to run on Slackware? Any one succeeded to build it?

4
  • All the basic dependencies like gcc and glibc come as defaults in regular Slackware. Perhaps you'd have an easier time building the package on a Slackware install and then copying the resulting binary over to your PuppyLinux system. Commented Feb 20, 2014 at 14:52
  • Also, did you install glibc? Not being able to find errno.h suggests that perhaps you haven't installed it. What do you get if you run # locate -u and then # locate errno.h? Commented Feb 20, 2014 at 14:55
  • Use the slackbuild way slackbuilds.org/repository/14.1/network/node
    – slackmart
    Commented Feb 20, 2014 at 15:52
  • @WhiteHotLoveTiger thanks for the tip. I found that this distro is very trimmed. A lot of packages are removed. It was missing glibc, binutils and kernel-headers.
    – ItsMe
    Commented Feb 20, 2014 at 21:40

2 Answers 2

5

Yep, I've got install that package on Slackware Linux using the slackbuild way. Here's the link:

http://slackbuilds.org/repository/14.1/development/nodejs/
3
  • I built exactly that, but it doesn't come with npm.
    – Geremia
    Commented Jan 10, 2016 at 4:52
  • 2
    Hi @Geremia, Firstly, You must be sure, the npm directory was created after the installation (i.e. ls /usr/lib/node_modules/). If it exists, it should contain a bin directory, and just add a symbolic link to it: ln -s /usr/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm. Once that process was completed, you can use the npm command, i.e. npm install <pkg_name>. Note: to create the symbolic link you need to be root.
    – slackmart
    Commented Jan 10, 2016 at 13:24
  • 2
    Audrius Kažukauskas, who maintained that SlackBuild, said it's outdated; it's version 0.10.33! He says to use slackbuilds.org/repository/14.1/development/nodejs instead.
    – Geremia
    Commented Jan 10, 2016 at 22:40
1

I just built this slackbuild https://slackbuilds.org/repository/14.2/development/nodejs/ yesterday (2016-11-10) and can confirm that it installs npm at /usr/bin/npm.

$ ls -al `which npm`
lrwxrwxrwx 1 root root 40 Nov 10 20:24 /usr/bin/npm -> ../lib64/node_modules/npm/bin/npm-cli.js*

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .