Koozali.org: home of the SME Server

Problem installing a package

Problem installing a package
« on: January 12, 2011, 11:39:54 AM »
Hi!

I have a nagios instance on a virtualized SME Server 7.5.1

I would like to evolve my nagios server into one with an NDOUtils Mysql DB.

So I googled and came across this guide for doing it on CentOS: http://www.nagioswiki.com/wiki/index.php/NDOutils_on_CentOS

I successfully installed mysql-devel and mysql-server packages.

Problem came when I ran the ./configure on the NDOUtils, which retrieved:
Code: [Select]
*** MySQL library could not be located... **************************

You chose to compile NDOutils with MySQL support, but I was unable to
locate the MySQL library on your system.  If the library is
installed,  use the --with-mysql-lib argument to specify the
location of the MySQL library.
installed, use the --with-mysql=DIR argument to specify the
location of the MySQL library, We assume mysql_config is in DIR/dir
NOTE: After you install the necessary libraries on your system:
      1. Make sure /etc/ld.so.conf has an entry for the directory in
         which the MySQL libraries are installed.
      2. Run 'ldconfig' to update the run-time linker options.
      3. Run 'make devclean' in the NDBXT distribution to clean out
         any old references to your previous compile.
      4. Rerun the configure script.

TIP: Try the following....
      ./configure --with-mysql=/usr/lib/mysql

********************************************************************
So, I followed the advice and ran
Code: [Select]
./configure --with-mysql=/usr/lib/mysql.

The same message came on screen indicating «MySQL library could not be located».

Is it that the SME Server stores it's MySQL libraries somewhere else?

Any sugestions?

Thank you.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Problem installing a package
« Reply #1 on: January 12, 2011, 12:37:09 PM »
you don't need to install mysql as it's already there..

if you do a little research for ndoutils with google you'll see that there are rpms available for RH/Centos4 (i.e. SME7.X)

then, setup Dag's repo as for Wiki page then
Code: [Select]
yum --enablerepo=dag install ndoutils

Hope you've done your test on a test machine..

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem installing a package
« Reply #2 on: January 12, 2011, 02:49:24 PM »
This post is off-topic for this forum, which concerns only software installed from the SME server install CDROM.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem building a package
« Reply #3 on: January 12, 2011, 02:52:48 PM »
[/code]
So, I followed the advice and ran
Code: [Select]
./configure --with-mysql=/usr/lib/mysql.

The 'configure' command is a step in compilation of a software package. SME server is not a development platform, and has no compilers or development libraries installed.

The standard advice is to find a version of your program already compiled and packaged into an rpm format. I don't know whether that will be possible in your case.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Problem installing a package
« Reply #4 on: January 12, 2011, 02:56:44 PM »
Moving to contribs section

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Problem installing a package
« Reply #5 on: January 12, 2011, 02:57:46 PM »
The standard advice is to find a version of your program already compiled and packaged into an rpm format. I don't know whether that will be possible in your case.

Charlie.. ndoutils is available form Dag's repo

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem installing a package
« Reply #6 on: January 12, 2011, 03:38:02 PM »
Charlie.. ndoutils is available form Dag's repo

Don't tell me - tell OP. :-)

Re: Problem installing a package
« Reply #7 on: January 13, 2011, 03:10:13 PM »
Well, I've tried running the command
Code: [Select]
yum --enablerepo=dag install ndoutilsBut I came accross with an error:
Quote
[root@sebas bash]# yum --enablerepo=dag install ndoutils
Loading "installonlyn" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
http://apt.sw.be/redhat/el4/en/i386/dag/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: dag
failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.

So, I'm getting a bit lost on how to fix this issue.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Problem installing a package
« Reply #8 on: January 13, 2011, 03:21:31 PM »
well, the error message sounds clear to me: there's a (temporary) dns problem on your side..

can you resolve apt.sw.be from your SME?
Code: [Select]
dig apt.sw.be

you should get something like:
Code: [Select]
[root@srvsrv ~]# dig apt.sw.be

; <<>> DiG 9.2.4 <<>> apt.sw.be
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18481
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;apt.sw.be. IN A

;; ANSWER SECTION:
apt.sw.be. 60 IN CNAME dag.freshrpms.net.
dag.freshrpms.net. 157 IN CNAME dag.ie.freshrpms.net.
dag.ie.freshrpms.net. 157 IN CNAME ie.freshrpms.net.
ie.freshrpms.net. 157 IN A 193.1.193.67

;; Query time: 104 msec
;; SERVER: 10.0.0.12#53(10.0.0.12)
;; WHEN: Thu Jan 13 15:20:44 2011
;; MSG SIZE  rcvd: 109

Re: Problem installing a package
« Reply #9 on: January 13, 2011, 07:11:23 PM »
You were absolutely right Stefano!

The plugin installed correctly.

Somehow, I'm losing my /etc/resolv.conf definitions when I turn on&off the VM hosting nagios.

The same thing happens to /etc/squid/squid.conf and /etc/ntp.conf. and probably to a lot more configurations I would like to store.