PDA

View Full Version : Problems with Installing Centreon


hansa_export
10-24-2008, 03:45 PM
Hi,

I tried to install Centreon. I used a lot of installation instructions from the web or instructions I found in this forum. I also tried some other versions of Centreon. I need the Version 2.o, because I'm using Nagios 3.

But always when I start ./install.sh I get the following "echo":

r0959:/usr/local/src/centreon-2.0-RC7# ./install.sh
: command not foundreon-2.0-RC7/varinstall/vars: line 5:
: command not foundreon-2.0-RC7/varinstall/vars: line 7:
: command not foundreon-2.0-RC7/varinstall/vars: line 9:
: command not foundreon-2.0-RC7/varinstall/vars: line 11:
: command not foundreon-2.0-RC7/libinstall/functions: line 2:
: command not foundreon-2.0-RC7/libinstall/functions: line 9:
: command not foundreon-2.0-RC7/libinstall/functions: line 12:
: command not foundreon-2.0-RC7/libinstall/functions: line 15:
: command not foundreon-2.0-RC7/libinstall/functions: line 30:
: command not foundreon-2.0-RC7/libinstall/functions: line 32:
: command not foundreon-2.0-RC7/libinstall/functions: line 40:
'usr/local/src/centreon-2.0-RC7/libinstall/functions: line 49: syntax error near
'usr/local/src/centreon-2.0-RC7/libinstall/functions: line 49: `function echo_in
Usage: ./install.sh -f <file>
-i install centreon
-f file with all variable
-u upgrade centreon with specify your directory with instCent* files
-v verbose mode


Whe I tried ./install.sh with flag -i oder -f I get the following "echo":

r0959:/usr/local/src/centreon-2.0-RC7# ./install.sh -i
: command not foundreon-2.0-RC7/varinstall/vars: line 5:
: command not foundreon-2.0-RC7/varinstall/vars: line 7:
: command not foundreon-2.0-RC7/varinstall/vars: line 9:
: command not foundreon-2.0-RC7/varinstall/vars: line 11:
: command not foundreon-2.0-RC7/libinstall/functions: line 2:
: command not foundreon-2.0-RC7/libinstall/functions: line 9:
: command not foundreon-2.0-RC7/libinstall/functions: line 12:
: command not foundreon-2.0-RC7/libinstall/functions: line 15:
: command not foundreon-2.0-RC7/libinstall/functions: line 30:
: command not foundreon-2.0-RC7/libinstall/functions: line 32:
: command not foundreon-2.0-RC7/libinstall/functions: line 40:
'usr/local/src/centreon-2.0-RC7/libinstall/functions: line 49: syntax error near unexpected token `{
'usr/local/src/centreon-2.0-RC7/libinstall/functions: line 49: `function echo_info() {
: command not found179:
./install.sh: line 183: define_specific_binary_vars: command not found
: command not found185:
------------------------------------------------------------------------
Checking all needed binaries
------------------------------------------------------------------------
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 213: pathfind: command not found
./install.sh: line 217: echo_failure: command not found
./install.sh: line 218: log: command not found
./install.sh: line 228: echo_info: command not found

I was looking for this error in the www since hours, maybe someone could suggest a solution?

Greetz

Steffen

naparuba
10-24-2008, 05:08 PM
Can you try a dos2unix install.sh and then ./install.sh -i?

Pestouille
10-28-2008, 06:06 PM
Have you tried to specify the bash shell ?

$bash install.sh (with sufficient privileges)

Adrien