Announcement

Collapse
No announcement yet.

FreeBSD?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • FreeBSD?

    Hi,

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

    Code:
    [[email protected] oreon-1.3-beta]./install.sh
    functions: 21: Syntax error: "(" unexpected
    Many thanks,
    Matt[/code]

  • #2
    what does `ls -la /bin/sh` say ?

    Comment


    • #3
      Code:
      [[email protected] ~]ls -la /bin/sh
      -r-xr-xr-x  1 root  wheel  102752 Jun  2 04:01 /bin/sh
      [[email protected] ~]

      Comment


      • #4
        Ahh... running the script with bash (/usr/local/bin/bash on FreeBSD) worked.

        Thanks!
        Matt

        Comment


        • #5
          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:
          Code:
          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

          Comment


          • #6
            Originally posted by grB
            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:
            Code:
            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.

            Comment


            • #7
              # dos2unix install.sh
              Linux 2.6.16-1.2115_FC4
              Nagios 1.4
              Nagios Plugins 1.4
              Oreon 1.3 RC1 / StatusMap

              Comment


              • #8
                Hey grB,

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

                Code:
                #!/usr/local/bin/bash
                or I just ran;

                Code:
                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.

                Comment


                • #9
                  Big thanks 4 all!!
                  my problem was - that script contain instruction
                  Code:
                  #!/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!

                  Comment

                  Working...
                  X