FreeBSD install fails with Error code 1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

FreeBSD install fails with Error code 1

Post by jbruyet »

Hey all, I'm trying to install Nagios from port on a 9.1 server and it's not working. Here's what I'm seeing (notice the Error code 1 errors at the end of the failed install):

Code: Select all

root@FreeNag:/usr/ports/net-mgmt/nagios # make install clean
===>   nagios-3.5.1 depends on file: /usr/local/bin/autoconf-2.69 - not found
===>    Verifying install for /usr/local/bin/autoconf-2.69 in /usr/ports/devel/autoconf
===>  Installing for autoconf-2.69
===>   autoconf-2.69 depends on executable: gm4 - found
===>   autoconf-2.69 depends on executable: autoconf-wrapper - found
===>   autoconf-2.69 depends on file: /usr/local/bin/perl5.12.4 - found
===>  Checking if devel/autoconf already installed
pkg_add: package 'autoconf-2.69' or its older version already installed
*** [install-package] Error code 1

Stop in /usr/ports/devel/autoconf.
*** [build-depends] Error code 1

Stop in /usr/ports/net-mgmt/nagios.
*** [install] Error code 1

Stop in /usr/ports/net-mgmt/nagios.
root@FreeNag:/usr/ports/net-mgmt/nagios # 
I thought maybe the install was just saying the last three packages were already installed but when I tried to navigate to the Nagios folder it wasn't there. Googling this error doesn't give me anything useful.

Thanks,

Joe B
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: FreeBSD install fails with Error code 1

Post by slansing »

What version of nagios are you trying to install and what documentation are you following?
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: FreeBSD install fails with Error code 1

Post by jbruyet »

I'm trying to install Nagios 3.5.1 (that's not from the port but from the install screen) and the documentation is here:

http://www.unixmen.com/how-to-install-a ... n-freebsd/

Thanks,

Joe B
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: FreeBSD install fails with Error code 1

Post by abrist »

Lets check for the autoconf bin and check its version:

Code: Select all

$(which autoconf) -V
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: FreeBSD install fails with Error code 1

Post by jbruyet »

Ok, now I know where autoconf is located but I wasn't able to find its version this way:

Code: Select all

$ (which autoconf) -v
Syntax error: word unexpected
$ (which autoconf) -V
Syntax error: word unexpected
$ which autoconf -v
/usr/local/bin/autoconf
$ which autoconf -V
/usr/local/bin/autoconf
$
Then I decided to try it this way:

Code: Select all

$ autoconf -v
autoconf-2.68: error: no input file
$
I've seen a couple of sites that say v2.68 is broken. Should I head into ports and do a make install clean? I did a portsnap about four days ago.

Thanks,

Joe B
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: FreeBSD install fails with Error code 1

Post by abrist »

jbruyet wrote: I've seen a couple of sites that say v2.68 is broken. Should I head into ports and do a make install clean? I did a portsnap about four days ago.
I noticed the bug reports for the version as well. Please ./configure and make clean.
jbruyet wrote:Ok, now I know where autoconf is located but I wasn't able to find its version this way:
[snip]
The whole line was meant to be entered:

Code: Select all

$(which autoconf) -V
Or another method with the backticks:

Code: Select all

`which autoconf` -V
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: FreeBSD install fails with Error code 1

Post by jbruyet »

I'm in the autoconf folder in ports but the ./configure didn't work:

Code: Select all

root@FreeNag:/usr/ports/devel/autoconf # ./configure
./configure: Command not found.
root@FreeNag:/usr/ports/devel/autoconf # 
Any other ideas?

Thanks,

Joe B
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: FreeBSD install fails with Error code 1

Post by lmiltchev »

I wonder if you have bash installed. If you don't - try installing it.

http://www.cyberciti.biz/faq/freebsd-bash-installation/

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: FreeBSD install fails with Error code 1

Post by jbruyet »

I went ahead and did the install for bash but no joy. I still get the "Command not found" error when I try to run ./configure. Anyone have any other ideas?

Thanks,

Joe B
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: FreeBSD install fails with Error code 1

Post by sreinhardt »

Are you doing ./configure from the nagios source directory or are you attempting to reinstall autoconf? ./configure is usually just located in the root directory of the application you are trying to build and install.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked