Minor build and install script fixes. Install missing dev tools. Add a missing cd command.

git-svn-id: https://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk@1208241 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ubuntu/ubuntu-bin-all-image b/ubuntu/ubuntu-bin-all-image
index 79a2104..c76af43 100755
--- a/ubuntu/ubuntu-bin-all-image
+++ b/ubuntu/ubuntu-bin-all-image
@@ -34,7 +34,7 @@
 cd /mnt/tuscany
 
 # Install core dev tools
-sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make
+sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make gdb vim
 if [ "$?" != "0" ]; then
     exit $?
 fi
diff --git a/ubuntu/ubuntu-bin-image b/ubuntu/ubuntu-bin-image
index 664d585..032c4e4 100755
--- a/ubuntu/ubuntu-bin-image
+++ b/ubuntu/ubuntu-bin-image
@@ -34,7 +34,7 @@
 cd /mnt/tuscany
 
 # Install core dev tools
-sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make
+sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make gdb vim
 if [ "$?" != "0" ]; then
     exit $?
 fi
diff --git a/ubuntu/ubuntu-install b/ubuntu/ubuntu-install
index 7b46ee0..df1271a 100755
--- a/ubuntu/ubuntu-install
+++ b/ubuntu/ubuntu-install
@@ -26,7 +26,7 @@
 build=`pwd`
 
 # Install core dev tools
-sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make
+sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make gdb vim
 if [ "$?" != "0" ]; then
     exit $?
 fi
@@ -245,6 +245,7 @@
 if [ "$?" != "0" ]; then
     exit $?
 fi
+cd $build
 
 # Build Apache Thrift
 sudo apt-get -y install bison flex python-dev libboost-dev libboost-filesystem-dev 
diff --git a/ubuntu/ubuntu-install-all b/ubuntu/ubuntu-install-all
index fc07193..789a2ac 100755
--- a/ubuntu/ubuntu-install-all
+++ b/ubuntu/ubuntu-install-all
@@ -26,7 +26,7 @@
 build=`pwd`
 
 # Install core dev tools
-sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make
+sudo apt-get -y install curl git-core subversion autoconf pkg-config automake libtool g++ make gdb vim
 if [ "$?" != "0" ]; then
     exit $?
 fi
@@ -299,6 +299,7 @@
 if [ "$?" != "0" ]; then
     exit $?
 fi
+cd $build
 
 # Build PostgreSQL
 sudo apt-get -y install libreadline-dev