Skip to content

Instantly share code, notes, and snippets.

@Micrified
Created March 6, 2019 11:18
Show Gist options
  • Save Micrified/b0cfbb81e04c841cacdeabc5876381e9 to your computer and use it in GitHub Desktop.
Save Micrified/b0cfbb81e04c841cacdeabc5876381e9 to your computer and use it in GitHub Desktop.
Issue

This concerns incorrect or faulty installation instructions for both Ubuntu and Fedora.

Fedora

OS: Fedora 29

The installation instruction:

$ sudo dnf install dnf-utils
$ sed 's/%{npm-version:.*}/0/' tools/cockpit.spec | sudo dnf builddep --spec /dev/stdin

Doesn't build correctly because the dependencies somehow don't get installed (the install is aborted because of some error with the pipe). The following does work though:

$ sed 's/%{npm-version:.*}/0/' tools/cockpit.spec > tools/myspec.spec
$ sudo dnf builddep --spec tools/myspec.spec

Ubuntu

OS: Ubuntu 18.04.2 LTS,

When following the build from source guide located here, the build step with autogen will fail because of a dependency removal cycle on Ubuntu. The clash is between npm and libssh.


Step by Step

The step:

sudo apt-get install nodejs npm

Installs npm. Then the step:

$ ./autogen.sh --prefix=/usr --enable-debug

Will eventually tell you (see the output of the build script here):

No package 'libssh' found

If you try to install libssh-dev, it will uninstall npm though:

The following packages will be REMOVED:
  libssl1.0-dev node-gyp nodejs-dev npm

In fact, this answer on unix.stackexchange explains that they cannot coexist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment