dyne / dowse

The Awareness Hub for the Internet of Things
http://dowse.eu
161 stars 17 forks source link

Make on Ubuntu 14.04LTS dies on netdata #25

Closed cyphunk closed 7 years ago

cyphunk commented 8 years ago

during make

(*) Compiling netdata
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
./compile.sh:102: no such file or directory: ./configure

The make of dowse will complete but when attempting to run the following error results:

user@ubuntu:~/dowse$ ./start.sh 
dowse:source:36: no such file or directory: /usr/share/zuper/zuper
dowse:source:101: no such file or directory: /usr/local/dowse/zlibs/modules
dowse:source:102: no such file or directory: /usr/local/dowse/zlibs/processes
...

This is because after the fail in compiling netdata other packages fail to compile? For compiling Netdata firstly cmake has to be run to create the make file. but also on ubuntu there is an issue that the package requires cmake 3.3+ and 14.04LTS has 2.8. Upgrading requires added a ppa:

user@ubuntu:~/dowse$ cd src/netdata/
user@ubuntu:~/dowse/src/netdata$ make
make: *** No targets specified and no makefile found.  Stop.
user@ubuntu:~/dowse/src/netdata$ cmake .
CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
  CMake 3.3 or higher is required.  You are running version 2.8.12.2
-- Configuring incomplete, errors occurred!
user@ubuntu:~/dowse/src/netdata$ dpkg -l cmake
ii  cmake                                      2.8.12.2-0ubuntu3          amd64

Perhaps just add something in a troubleshooting document with the error code and instructions for updating cmake on ubuntu

sudo apt-get install build-essential
wget https://cmake.org/files/v3.6/cmake-3.6.2.tar.gz
tar xf cmake-3.6.2.tar.gz
cd cmake-3.6.2
./configure
make
cyphunk commented 8 years ago
make[3]: Entering directory `/home/user/dowse/src/pgl'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/user/dowse/src/pgl/missing aclocal-1.14 -I m4
/home/user/dowse/src/pgl/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make[3]: *** [aclocal.m4] Error 127
make[3]: Leaving directory `/home/user/dowse/src/pgl'
make[2]: *** [../aclocal.m4] Error 2
make[2]: Leaving directory `/home/user/dowse/src/pgl/pgld'

requires installing automake on ubuntu 14.04lts

cyphunk commented 8 years ago

Hmm... even with that, somewhere along the way zuper did not fully install. I had to run make -C zuper install manually to get past the error on start.sh that complains about not finding zuper

jaromil commented 8 years ago

Here the CI workflow is visible and runs on Ubuntu 14.04, zuper has no problems installing https://travis-ci.org/dyne/dowse#L3870 this may have occurred as a followup to previous problems?