Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: HOW TO: How to compile and install Gnome panel sensors-applet

  1. #1
    Join Date
    Oct 2004
    Location
    Berkeley
    Beans
    86
    Distro
    Ubuntu 8.10 Intrepid Ibex
    I wanted a persistent display of my CPU and hard drive temperatures on my Gnome panel (I tend to work with one maximized window at a time, so I'm not into gdesklets.) The Breezy universe repository offers the xfce4-sensors-plugin, but, for whatever reason, Breezy doesn't include sensors-applet for Gnome. Here's what I did to install it.

    First, get sensors working. Don't proceed without this step. Be warned that it's possible to render your machine unbootable if you configure things incorrectly.

    There are Debian packages available. I didn't use them. Maybe one or the other would work in Ubuntu; I don't know. This how-to calls for installing the build-essential package, which is a bunch of stuff you only need to compile things yourself. If disk space is tight or you otherwise don't like the idea of installing that much stuff to get one little applet, don't do it.

    Code:
    sudo apt-get install build-essential
    sudo apt-get install libpanel-applet2-dev
    sudo apt-get install libxml-parser-perl
    If your hard drive supports SMART monitoring (which it probably does unless it's really old) and you want to use the sensors-applet to display its temperature, then:

    Code:
    sudo apt-get install hddtemp
    When it asks you if you want it to run as a server, say yes. You can

    Code:
    sudo dpkg-reconfigure hddtemp
    if you want to change it later.

    Then download sensors-applet-1.5.2.tar.gz from Sourceforge. (This is the current unstable version; the release version is 1.4.)

    Code:
    cd ~/Desktop # or wherever you downloaded it to
    tar xvzf sensors-applet-1.5.2.tar.gz
    cd sensors-applet-1.5.2
    ./configure --prefix=/usr
    make
    sudo make install
    You should now be able to right-click on your panel, select 'Add to Panel', and the add to panel window will include 'Hardware Sensors Monitor' with a computer chip icon, under Accessories. Click and drag it to the panel. Right-click on it and select properties to configure it. Here's a picture of mine, on a left-hand-side vertical panel.
    Attached Images Attached Images
    Last edited by Zed; November 20th, 2005 at 02:31 AM.

  2. #2
    Join Date
    Jul 2005
    Beans
    431

    Re: HOW TO: How to compile and install Gnome panel sensors-applet

    Quote Originally Posted by Zed
    tar xvzf sensors-applet-1.5.2.tar
    should be "tar xvzf sensors-applet-1.5.2.tar.gz"

  3. #3
    Join Date
    Oct 2004
    Location
    Berkeley
    Beans
    86
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: HOW TO: How to compile and install Gnome panel sensors-applet

    Fixed; thanks.

  4. #4
    Join Date
    Nov 2005
    Beans
    15

    HOW TO: How to compile and install Gnome panel sensors-applet

    Tootal Linux newB here
    I get this error all the time I try to install anything. What do I lack? I tried installing gawk(what is this?). Anyways please help me on what I need to install to be able to compile? Thanks

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... no
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... gcc
    checking for C compiler default output file name... configure: error: C compiler cannot create executables

  5. #5
    Sutekh is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Oct 2005
    Location
    Sydney
    Beans
    1,952
    Distro
    Xubuntu 6.06

    Re: HOW TO: How to compile and install Gnome panel sensors-applet

    That error is basically saying you don't have some packages that are required to make, compile and build.

    I assume that you did a
    Code:
    sudo apt-get install build-essential
    as per the guide. You may also need to
    Code:
    sudo apt-get install gcc-3.4
    To install the GNU C compiler

  6. #6
    Join Date
    Nov 2005
    Beans
    15

    HOW TO: How to compile and install Gnome panel sensors-applet

    Thanks for the quick reply
    I already installed the GCC 4.0 also installed GCC 3.4 thru Synaptic.

  7. #7
    Sutekh is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Oct 2005
    Location
    Sydney
    Beans
    1,952
    Distro
    Xubuntu 6.06

    Re: HOW TO: How to compile and install Gnome panel sensors-applet

    Try re-installing build-essential, that should be it.
    I've read alot of posts about "C compiler cannot create executables", they all seem to be resolved using build-essential.

  8. #8
    Join Date
    Nov 2005
    Beans
    15

    Re: HOW TO: How to compile and install Gnome panel sensors-applet

    Thanks again Sutekh
    Made some changes
    Although after trying to apt-get some missing files there is still some? Please help
    Here's the log

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... no
    checking for perl... /usr/bin/perl
    checking for XML:arser... configure: error: XML:arser perl module is required for intltool

  9. #9
    Join Date
    Dec 2004
    Location
    Helsinki, Finland, EU
    Beans
    53

    Re: HOW TO: How to compile and install Gnome panel sensors-applet

    Don't do "sudo make install", instead install checkinstall (sudo apt-get install checkinstall) and create a Debian package (.deb) with it by replacing "sudo make install" with "sudo checkinstall". That way you don't need "make clean" in order to remove an installation, "sudo dpkg -r package" is an easier and probably more favoured way. Isn't there checkinstall HOWTO somewhere?
    Last edited by artnay; December 1st, 2005 at 01:40 PM.
    Linux user since -98, Ubuntu user since -04.

  10. #10
    Sutekh is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Oct 2005
    Location
    Sydney
    Beans
    1,952
    Distro
    Xubuntu 6.06

    Re: HOW TO: How to compile and install Gnome panel sensors-applet

    Quote Originally Posted by SGC
    To install the XML parser, run the following command:
    Code:
    sudo perl -MCPAN -e shell
    When asked to do a manual configuration, type no

    At thecpan> prompt type:
    Code:
    install XML::Parser
    Try this.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •