Page 1 of 2

FreeBSD install fails with Error code 1

Posted: Tue Dec 10, 2013 10:47 pm
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

Re: FreeBSD install fails with Error code 1

Posted: Wed Dec 11, 2013 11:40 am
by slansing
What version of nagios are you trying to install and what documentation are you following?

Re: FreeBSD install fails with Error code 1

Posted: Thu Dec 12, 2013 12:12 am
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

Re: FreeBSD install fails with Error code 1

Posted: Thu Dec 12, 2013 11:53 am
by abrist
Lets check for the autoconf bin and check its version:

Code: Select all

$(which autoconf) -V

Re: FreeBSD install fails with Error code 1

Posted: Thu Dec 12, 2013 7:15 pm
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

Re: FreeBSD install fails with Error code 1

Posted: Fri Dec 13, 2013 10:29 am
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

Re: FreeBSD install fails with Error code 1

Posted: Sat Dec 14, 2013 12:17 am
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

Re: FreeBSD install fails with Error code 1

Posted: Mon Dec 16, 2013 11:00 am
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.

Re: FreeBSD install fails with Error code 1

Posted: Tue Dec 17, 2013 12:39 am
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

Re: FreeBSD install fails with Error code 1

Posted: Tue Dec 17, 2013 10:37 am
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.