Installation problem ([: 175: ==: unexpected operator)

User offline. Last seen 32 weeks 2 days ago. Offline
Joined: 02/12/2009
Points: 10
Groups: None

I can't install Preto Mashup Platform. When I want to set default Tomcat Shutdown Port,I get errorr :

 Using default Tomcat shutdown port  => 8005
[: 175: ==: unexpected operator
        Port  is available
after that I can set  Presto Admin Agent Port,and installation proces return to start.It is not possible to finish installation!!!!Why?

0
Your rating: None
girish's picture
User offline. Last seen 1 week 6 days ago. Offline
Joined: 09/22/2008
Points: 70
Groups: None

What's your OS and shell type? Could you start a bash shell and try installing again.

- Girish@JackBe

User offline. Last seen 32 weeks 2 days ago. Offline
Joined: 02/12/2009
Points: 10
Groups: None

Ubuntu 8.10,bash shell. I have tried to install again and i couldn't solve the problem. I could not confirm settings and installation starts all over again.

Output:

Enter Tomcat Shutdown Port (default:8005):

        Using default Tomcat shutdown port  => 8005
[: 175: ==: unexpected operator
        Port  is available

Enter Presto Admin Agent Port (default:8282):

        Using default Tomcat port  => 8282

=============== Please review the settings ===================

Java Home => /usr/lib/jvm/java-6-sun-1.6.0.10
Tomcat HTTP Port => 8080
Tomcat HTTPS Port => 8443
Tomcat Shutdown Port => 8005
Presto Repository Port =>
Presto Admin Agent Port => 8282

.......Confirm (y/n) ?
[: 175: ==: unexpected operator

apolenur's picture
User offline. Last seen 22 hours 9 min ago. Offline
Joined: 09/22/2008
Points: 2
Groups: None

I am running Ubuntu 8.10 and I can run ./setup.sh script just fine and get Presto up and running.

Having said that I think I know what causing problem on your box. I think when your type "./setup.sh" your OS  uses /bin/sh and not bash. (On Ubuntu /bin/sh does not point to bash like on other Linuxes but to dash).

The reason I think this way because I can reproduce your problem by putting

#!/bin/sh

as a first line of setup.sh script.

Can you please try to run

bash setup.sh 

instead of

./setup.sh

Try it and let me know if it works.

Like I said I run Ubuntu 8.10 and never had problems, so we get you up and running too ;)

 

 

 

 

 

 

 

User offline. Last seen 32 weeks 2 days ago. Offline
Joined: 02/12/2009
Points: 10
Groups: None

Thanks.It works!