mbfoss / gnethogs

GUI for nethogs using GKT
Other
40 stars 15 forks source link

Install on Arch Linux fails #13

Open SvenMeyer opened 2 months ago

SvenMeyer commented 2 months ago

Not sure if it even suppose to work on Arch Linux ... but I get

Preparing...
Cloning gnethogs build files...
Generating gnethogs information...
Checking gnethogs dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building gnethogs...
==> Making package: gnethogs 0.2+6+gbb69c6f-3 (Mon 16 Sep 2024 22:03:40)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating gnethogs git repo...
==> Validating source files with sha512sums...
    gnethogs ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of gnethogs git repo...
Cloning into 'gnethogs'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Regenerating autotools files
Copying file ABOUT-NLS
Copying file config.rpath
Creating directory m4
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes.m4
Copying file m4/inttypes_h.m4
Copying file m4/isc-posix.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/longdouble.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/signed.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/uintmax_t.m4
Copying file m4/ulonglong.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file mkinstalldirs
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
configure.ac:43: warning: The macro 'AC_OUTPUT_COMMANDS' is obsolete.
configure.ac:43: You should run autoupdate.
./lib/autoconf/status.m4:1025: AC_OUTPUT_COMMANDS is expanded from...
m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:59: AM_GNU_GETTEXT is expanded from...
configure.ac:43: the top level
configure.ac:43: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:43: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/gettext.m4:59: AM_GNU_GETTEXT is expanded from...
configure.ac:43: the top level
configure.ac:43: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:43: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:22: AM_ICONV_LINK is expanded from...
m4/gettext.m4:59: AM_GNU_GETTEXT is expanded from...
configure.ac:43: the top level
configure.ac:10: installing './compile'
configure.ac:43: installing './config.guess'
configure.ac:43: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './COPYING' using GNU General Public License v3 file
Makefile.am:     Consider adding the COPYING file to the version control system
Makefile.am:     for your code, to avoid questions about which license your project uses
src/Makefile.am: installing './depcomp'
Setting up intltool
Now run ./configure, make, and make install.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for glib-compile-resources... /usr/bin/glib-compile-resources
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtkmm-3.0 ... yes
checking for pthread_attr_init in -lpthread... yes
checking for nethogsmonitor_loop in -lnethogs... no
Error! You need to have libnethogs-dev installed.
==> ERROR: A failure occurred in build().
    Aborting...
seniordevel commented 2 weeks ago

I have the same issue on Manjaro:

Error! You need to have libnethogs-dev installed. ==> ERROR: A failure occurred in build(). Aborting...

Update/Edit: Meanwhile I managed to install it on Arch-Linux successfully. Gnethogs now works as expected on my Manjaro.

Several steps were necessary to do so.

  1. Update to nethogs version 0.8.8-1 or later (needed to prevent another error which would happen later in the install procedure, see https://github.com/raboof/nethogs/issues/230)
    https://archlinux.org/packages/extra/x86_64/nethogs/
  2. Edit two gnethogs installation files (complete removal of obsolete functions, both referencing libnethogs-dev)
  3. Temporarily edit the mkpkg script to keep it from replacing the edits made in [2.] by downloading updated source while mkpkg runs. (see /usr/share/makepkg/source.sh) Important: Do not miss to restore the original 'source.sh' code after successful installation of Gnethogs !

Finally run mkpkg and install with pacmac from terminal.

I can provide more detailed instructions, but I am not sure if this is necessary.