PDA

View Full Version : FreeBSD?


monsieurcanard
5th June 2006, 03:48
Hi,

Is Oreon known to work on FreeBSD? I tried running ./install.sh and got:

[root@austin oreon-1.3-beta]./install.sh
functions: 21: Syntax error: "(" unexpected


Many thanks,
Matt[/code]

YodaNC
5th June 2006, 10:12
what does `ls -la /bin/sh` say ?

monsieurcanard
6th June 2006, 19:07
[root@austin ~]ls -la /bin/sh
-r-xr-xr-x 1 root wheel 102752 Jun 2 04:01 /bin/sh
[root@austin ~]

monsieurcanard
7th June 2006, 12:48
Ahh... running the script with bash (/usr/local/bin/bash on FreeBSD) worked.

Thanks!
Matt

grB
14th June 2006, 13:42
Hi, guys!

my platform is also FreeBSD (6.0) and i got problem when i tried execute install.sh
attempts were made under various shells: csh(default), bash, sh, tcsh.. and always i get the same problem:

functions: 21: Syntax error: "(" unexpected

after post of monsieurcanard i even reinstall bash, but error is still present..
i`ll be very glad to see solution, after all of my unsuccessful attempts.. i want to make work oreon on my machine!! :roll:

thanks

Menno
14th June 2006, 16:20
Hi, guys!

my platform is also FreeBSD (6.0) and i got problem when i tried execute install.sh
attempts were made under various shells: csh(default), bash, sh, tcsh.. and always i get the same problem:

functions: 21: Syntax error: "(" unexpected

after post of monsieurcanard i even reinstall bash, but error is still present..
i`ll be very glad to see solution, after all of my unsuccessful attempts.. i want to make work oreon on my machine!! :roll:

thanks

Just to be sure, in install.sh the first line is #/bin/sh, did you change that line?
Otherwise /bin/sh will still be used to execute the script.

BZ
14th June 2006, 16:44
# dos2unix install.sh

monsieurcanard
14th June 2006, 21:03
Hey grB,

You could try modifying the first line in the script to:

#!/usr/local/bin/bash

or I just ran;

shell> bash install.sh

Hope that helps ;)
Matt

PS There's quite a lot of effort involved in installing Oreon on FreeBSD using the Nagios port etc, but it's possible. I might make a port of Oreont to make it easier.

grB
14th June 2006, 22:41
Big thanks 4 all!!
my problem was - that script contain instruction #!/bin/sh and it uses sh even i try run script in bash..
lil changes in code solve the problem!
lets get started to work! :D