You are not logged in.

#1 2017-04-06 12:20

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Installing "Network Activity Viewer" -> no acceptable C compiler

With the intention to install the "Network Activity Viewer" (http://netactview.sourceforge.net/download.html) i started the first configuration script:

me@flex5:~/Installer/netactview\> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/me/Installer/netactview':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

me@flex5:~/Installer/netactview\> echo $PATH
/usr/local/bin:/opt/trinity/bin:/usr/bin:/bin:/usr/local/games:/opt/trinity/games:
/usr/games

The gcc-4.8 compiler is installed - is there still something missing in my PATH?

Offline

#2 2017-04-06 12:31

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,223
Website

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

We would guess this application requires more recent gcc compiler. Please attach the 'config.log' file here.

Offline

#3 2017-04-06 12:36

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Done (had a look at it by myself but didn't find anything more significant)...


Attachments:
log config.log, Size: 6.47 KiB, Downloads: 702

Offline

#4 2017-04-06 16:12

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

I don't know if it will make a difference but I always install build-essential package if I need to compile anything, it usually takes care of most needed things. Although you will have to check the documentation for any other dependencies and if you have them all but still have problems you might need the -dev packages for the dependencies.
Sorry I can't say specifically what is causing the issue but a quick look at your config.log says you do not have compile environment set-up so build-essential should get you up and running.

Offline

#5 2017-04-06 16:23

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,223
Website

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

@Dai_trying
Yes, we would suggest the same, installing 'build-essential'.

Offline

#6 2017-04-06 17:38

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Many Thanks, that worked for the first. In addition i had to get a newer version of intltool to get further, but now it states

...
configure: error: in `/home/me/Installer/netactview':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables NETACTVIEW_CFLAGS
and NETACTVIEW_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details

Well, a bit sorry to state that: under Win i used always SysInternels's tcpview utility (< 200kB) to monitor what's gooing on on my net.
Could you perhaps recommend something similar for Q4OS?

Many Thanks


Attachments:
log config.log, Size: 32.61 KiB, Downloads: 720

Offline

#7 2017-04-06 18:20

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

It really depends on what information you want to see, I use conky to monitor tcp/ip connections (which is pretty simple) and can be modified to suit yourself. Here is this one. (New Conky Syntax)

conky.config = {
	update_interval = 1,
	total_run_times = 0,
	net_avg_samples = 1,
	cpu_avg_samples = 1,
	imlib_cache_size = 0,
	double_buffer = true,
	no_buffers = true,
	use_xft = true,
	font = "DejaVu Serif:size=10",
	text_buffer_size = 2048,
	own_window = true,
	own_window_transparent = true,
	own_window_type = "override",
	own_window_hints = "undecorated,below,sticky,skip_taskbar,skip_pager",
	alignment = "bottom_right",
	gap_x = 10,
	gap_y = 40,
	minimum_width = 350,
	minimum_height = 300,
	maximum_width = 350,
	draw_shades = false,
	default_color = "080808",
	default_shade_color = "1d1d1d",
	color0 = "ffffff",
	color1 = "ffffff",
	color2 = "ffffff",
	short_units = true
}

conky.text = [[
${voffset 6}${font size=20}  @${execi 300 hostname}${alignr 10}Connections: ${tcp_portmon 1 65535 count}${font}
  ${color1}${tcp_portmon 1 65535 rip 0}${color}
  ${tcp_portmon 1 65535 rhost 0}
  ${color1}${tcp_portmon 1 65535 rip 1}${color}
  ${tcp_portmon 1 65535 rhost 1}
  ${color1}${tcp_portmon 1 65535 rip 2}${color}
  ${tcp_portmon 1 65535 rhost 2}
  ${color1}${tcp_portmon 1 65535 rip 3}${color}
  ${tcp_portmon 1 65535 rhost 3}
  ${color1}${tcp_portmon 1 65535 rip 4}${color}
  ${tcp_portmon 1 65535 rhost 4}
  ${color1}${tcp_portmon 1 65535 rip 5}${color}
  ${tcp_portmon 1 65535 rhost 5}
  ${color1}${tcp_portmon 1 65535 rip 6}${color}
  ${tcp_portmon 1 65535 rhost 6}
  ${color1}${tcp_portmon 1 65535 rip 7}${color}
  ${tcp_portmon 1 65535 rhost 7}
  ${color1}${tcp_portmon 1 65535 rip 8}${color}
  ${tcp_portmon 1 65535 rhost 8}
  ${color1}${tcp_portmon 1 65535 rip 9}${color}
  ${tcp_portmon 1 65535 rhost 9}
  ${color1}${tcp_portmon 1 65535 rip 10}${color}
  ${tcp_portmon 1 65535 rhost 10}
${image ~/conky/img/base3.png -p 0,-5 -s 350x380}]]

base3.png (background image) attached

FwV7gUh.png


Attachments:
png base3.png, Size: 1.33 KiB, Downloads: 592

Offline

#8 2017-04-06 19:11

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Thank you Dai, but i really want to have a complete overview, and idealwise a possibility to close connections (jus like in tcpview).

So, according to the make-process i additionally installed the "pkg-config" by syaptic, an indeed ist goes some steps further again:

...
checking pkg-config is at least version 0.9.0... yes
checking for NETACTVIEW... no
configure: error: Package requirements (gtk+-2.0 >= 2.8 libglade-2.0 gnome-vfs-2.0 >= 2.4 glib-2.0 >= 2.8 libgnome-2.0 gconf-2.0 libgtop-2.0 >= 2.12) were not met:

Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gtk+-2.0', required by 'world', not found
Package 'libglade-2.0', required by 'world', not found
Package 'gnome-vfs-2.0', required by 'world', not found
Package 'glib-2.0', required by 'world', not found
Package 'libgnome-2.0', required by 'world', not found
Package 'gconf-2.0', required by 'world', not found
Package 'libgtop-2.0', required by 'world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NETACTVIEW_CFLAGS
and NETACTVIEW_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

How could i now create a proper PKG_CONFIG_PATH containing the lokation for all that libraries?
Indeed, that  PKG_CONFIG_PATH  is still empty at the moment...


Attachments:
log config.log, Size: 35.25 KiB, Downloads: 728

Offline

#9 2017-04-06 19:14

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,223
Website

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

From the developer page http://netactview.sourceforge.net/download.html

In order to compile the sources you will need:
    Compilation tools: gcc, make
    Other tools: gettext, perl xml parser, intltool
    Libraries (development packages): gtk+-2 (at least 2.8), libglade-2, gnome-vfs-2 (at least 2.4), glib-2 (at least 2.8), libgnome-2, gconf-2, libgtop-2 (at least 2.12)

On Ubuntu the needed packages are: gcc make gettext libxml-parser-perl intltool libgnome2-dev libgtk2.0-dev libglade2-dev libgconf2-dev libgtop2-dev

You should install all listed packages first, then compile. Please read instructions here http://netactview.sourceforge.net/download.html

Offline

#10 2017-04-06 19:18

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

You will need to install development packages for the following:-

Your link wrote:

gtk+-2 (at least 2.8),
libglade-2,
gnome-vfs-2 (at least 2.4),
glib-2 (at least 2.8),
libgnome-2,
gconf-2,
libgtop-2 (at least 2.12)

So that means to install libglade-2 you will need to install the package libglade2-dev

EDIT Sorry dev's I was writing when you posted smile

Last edited by Dai_trying (2017-04-06 19:19)

Offline

#11 2017-04-06 20:04

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Sorry and thank you both, Team & Dai.
I scanned the developers page, rather than to read it, so i missed, that those libs are dev's rather than runtime...
Otherwise i certainly wouldn't have startet the installation.
Obviously not my day, today.

Offline

#12 2017-04-06 21:29

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Did you get it up and running in the end?

Offline

#13 2017-04-06 22:19

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Dai_trying wrote:

Did you get it up and running in the end?

What an excellent qestion, Dai: since an hour or so i'v got this here in my term:

> sudo apt-get install gtk2.0
[...]
  libgwenhywfar-data libgwenhywfar60 libharfbuzz-dev libharfbuzz-gobject0
  libice-dev libjavascriptcoregtk-1.0-0 libjavascriptcoregtk-3.0-0 libltdl-dev
  liblzo2-2 libmail-sendmail-perl libmbim-glib4 libmbim-proxy
  libmono-cecil-private-cil libmono-corlib2.0-cil libmono-data-tds4.0-cil
  libmono-i18n-west2.0-cil libmono-posix2.0-cil libmono-security2.0-cil
  libmono-sharpzip4.84-cil libmono-sqlite4.0-cil libmono-system-core4.0-cil
  libmono-system-data4.0-cil libmono-system-enterpriseservices4.0-cil
  libmono-system-runtime-serialization-formatters-soap4.0-cil
  libmono-system-transactions4.0-cil
  libmono-system-web-applicationservices4.0-cil
  libmono-system-web-services4.0-cil libmono-system-web4.0-cil
  libmono-system-xml-linq4.0-cil libmono-system2.0-cil libmono-web4.0-cil
  libpango1.0-dev libpango1.0-doc libpango3.0-cil libpcre3-dev libpcrecpp0
  libpixman-1-dev libpng12-dev libpthread-stubs0-dev libqmi-glib1 libqmi-proxy
  librcc0 librccgtk2-0 librcd0 libsecret-1-0 libsecret-common libsm-dev
  libsoup2.4-cil libsoup2.4-cil-dev libsys-hostname-long-perl libtool
  libuim-custom2 libuim-data libuim-scm0 libuim8 libwebkit1.1-cil
  libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwebkitgtk-3.0-0
  libwebkitgtk-3.0-common libwebkitgtk2.0-cil libwebkitgtk2.0-cil-dev
  libwebkitgtk3.0-cil libwebkitgtk3.0-cil-dev libx11-dev libx11-doc libxau-dev
  libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxml2-utils libxrandr-dev
  libxrender-dev modemmanager monodoc-base monodoc-browser
  monodoc-gtk2.0-manual monodoc-manual monodoc-webkitgtk2.0-manual
  monodoc-webkitgtk3.0-manual po-debconf uim-common uim-gtk2.0 uim-utils
  wamerican x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev
  x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev
  xorg-sgml-doctools xtrans-dev zenity zenity-common zlib1g-dev
Die folgenden Pakete werden aktualisiert (Upgrade):
  libglib2.0-0 libglib2.0-cil libgtk2.0-cil
3 aktualisiert, 147 neu installiert, 0 zu entfernen und 139 nicht aktualisiert.
Es müssen 82,3 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 281 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n]

Supposing German's not you're native language you surely recognize well it's meaning anyway ?
Initially i was looking for a handy tool (like tcpview - windows: <200kB) and now something like that.... to be honest, i'm a bit frustated today...

The big picture is the following:
In Windows i tweaked the Firefox lately, to keep it more independent from google, and changed
browser.safebrowsing.enabled = false and
browser.safebrowsing.malware.enabled = false
in it's about:config.
But then - having "tcpview" running - i observed, that (after 20 second) nevertheless new connections from Firefox to google.com  occured! So i tried:
services.sync.prefs.sync.browser.safebrowsing.enabled = false and
services.sync.prefs.sync.browser.safebrowsing.malware.enabled = false
additionally, and "tcpview" prooved: i finally got rid of google checking every single website i vistit!
[Edit: i'm  presuming that, since i do not know exacly how this mechanism works - there's also a gigantic "urlclassifier" DB file located in the user's profile]

My simple intention (some hours ago) was, to proove the same here, in my new home, Q4OS.

Once again, Rusinovich's tcpview.exe is less then 200kb - i really cant' understand why linux lacks (an equivalent for) such a valuable little tool to install simply, and leaves me here with hundreds of megs of libs to install...

Sorry Dai, for me beeing so honest at this point.

Last edited by FlexQ4 (2017-04-06 22:32)

Offline

#14 2017-04-06 22:53

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Yes I can see what frustrates you, and apologies are not necessary.

I think the problem with this package appears to be that it is using libraries that are not included with q4os (or most modern distros) and I can see that there has been no activity for 2 years on this project which makes me think it would involve a lot of work to bring it up to current software compatibility.

Regarding Firefox connections this Mozilla page has some great information and advice.

I will have a browse and see if I can find some alternative for connection monitoring and report back any findings. smile

Offline

#15 2017-04-06 23:06

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Would etherape be of any use to you? It can be installed from debian repositories (simply apt-get install or synaptic) I don't think it will allow you to drop connections on demand but I haven't really looked too far into it.

Offline

#16 2017-04-06 23:34

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Many thanks four your indulgence Dai, and as well for the link.

Dai_trying wrote:

Regarding Firefox connections this Mozilla page has some great information and advice.

I will have a browse and see if I can find some alternative for connection monitoring and report back any findings. smile

Maybe you are interested in this article dealing with yet further tweaks and switches in the fox:
https://gist.github.com/haasn/69e19fc2fe0e25f3cff5

And maybe i'll continue installing gtk2.0 (and so on) trying to get NatAvtView alive here, but not tonight wink

cu

Offline

#17 2017-04-06 23:41

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Thank once again, EtherApe looks really interesting, however, after a first glance it's purpose seems more to visualize the traffic within a LAN. Anyway I'll have a look at it!

Offline

#18 2017-05-02 19:57

FlexQ4
Member
Registered: 2017-02-19
Posts: 136

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

Dai_trying wrote:

Did you get it up and running in the end?

Well, finally i did get it up running wink i had to install all the dev-libraries, all of them now make up nearly 1 GB on the disk!

It is not as feature-rich as it's Windows equivalent TCP-View (of  Mark Rusinovich i think, NetActView lacks e.g. the ability to terminate connections or even end processes) but it's a nice tool anyway, and a must have imo!
(Some people might be flabbergasted when realising what happens to their system while browsing the web, especially with google's chrome!)

I did the compile/make orgy on my second HardDisk, and now i wonder how to get it running also on my main system too.
So i did a search for  netact*  under the /usr folder, and it shows up about 6 files (the locale-stuff shouldn't be that important for the moment) see the 2nd snapshot.

How can this be made kind of ,installable' for other q4os-users to use?

Last edited by FlexQ4 (2017-05-02 19:59)


Attachments:
png NetActView.png, Size: 11.68 KiB, Downloads: 630
png NetActView_files.png, Size: 43 KiB, Downloads: 600

Offline

#19 2017-05-02 20:33

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Installing "Network Activity Viewer" -> no acceptable C compiler

If you have built this from sources then you should have a bunch of .deb files that could be used to install onto another machine but you might need to install some dependencies in order to have them work. Some of the time you might get away with using apt-get -f install after installing your .deb file (using dpkg), it might not work but if you test in a VM it will be easier.
I also found a lot of other net-tools and you might find something that suits your needs without having all the hassle of building from sources, two links provided that might help...
Link 1 20 CLI tools
Link 2 80 monitoring tools

Offline

Board footer

Powered by FluxBB