Building BJam and Boost in Sun's Virtual Box

Hi All, I need to be able to use Boost in a virtual environment, specifically, Sun's Virtual Box. I'm further limited in the company I am working for has not approved any Boost upgrades since 1.34 for use. I thought the best way to approach this would be to build Boost Jam and then Boost within the virtual box. Below is what I've done so far. Downloaded platform independent zip files for Boost Jam 3.14.1 and Boost 1.34.0 and saved into directory I called Boost cd Boost unzipped both files cd boost-jam-3.1.14 sh ./build.sh I received the following: ./build.sh: ^M: not found ./build.sh: ^M: not found ./build.sh: ^M: not found ./build.sh: {^M: not found ./build.sh: ^M: not found ./build.sh: syntax error at line 67: 'elif' unexpected I then attempted sh ./build.sh sunpro and got ./build.sh: ^M: not found ./build.sh: ^M: not found ./build.sh: ^M: not found ./build.sh: {^M: not found sunpro ./build.sh: sunpro^M: not found ./build.sh: syntax error at line 67: 'elif' unexpected Thinking I may need administrative privileges, I did su root and reran the same commands with the same results. I had previously built these versions on a Sun 4800 without problems. Could these errors be the result of running in a virtual box with WindowsXP as the base operating system and an Intel Pentium 4 CPU? Any advice would be greatly appreciated. Thanks, Mont

Monte Jones wrote:
Hi All,
I need to be able to use Boost in a virtual environment, specifically, Sun's Virtual Box. I'm further limited in the company I am working for has not approved any Boost upgrades since 1.34 for use. I thought the best way to approach this would be to build Boost Jam and then Boost within the virtual box. Below is what I've done so far.
Downloaded platform independent zip files for Boost Jam 3.14.1 and Boost 1.34.0 and saved into directory I called Boost
Please use tar.gz/tar.bz2 files. zip files have dos line endings, and Unix shell is very particular about that. - Volodya

On Tue, Jul 28, 2009 at 1:09 PM, Vladimir Prus<vladimir@codesourcery.com> wrote:
Monte Jones wrote:
Hi All,
I need to be able to use Boost in a virtual environment, specifically, Sun's Virtual Box. I'm further limited in the company I am working for has not approved any Boost upgrades since 1.34 for use. I thought the best way to approach this would be to build Boost Jam and then Boost within the virtual box. Below is what I've done so far.
Downloaded platform independent zip files for Boost Jam 3.14.1 and Boost 1.34.0 and saved into directory I called Boost
Please use tar.gz/tar.bz2 files. zip files have dos line endings, and Unix shell is very particular about that.
I regularly run Boost builds and regression tests in a VirtualBox Linux guest on a Windows host. It is pretty much problem free. But as Volodya points out, if it is a Linux or Unix guest, you need to treat it as such regardless of the host O/S. Likewise, if it is a Windows guest, treat it as Windows even if the host happens to be Linux or Unix. --Beman

Thank you for the assistance. I knew the error was mine, just wasn't sure which one I made. I followed your advice; it is now installed and my associated software runs fine. Monte -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Beman Dawes Sent: Tuesday, July 28, 2009 11:24 AM To: boost@lists.boost.org Subject: Re: [boost] Building BJam and Boost in Sun's Virtual Box On Tue, Jul 28, 2009 at 1:09 PM, Vladimir Prus<vladimir@codesourcery.com> wrote:
Monte Jones wrote:
I need to be able to use Boost in a virtual environment, specifically, Sun's Virtual Box. I'm further limited in the company I am working for has not approved any Boost upgrades since 1.34 for use. I thought the best way to approach this would be to build Boost Jam and then Boost within the virtual box. Below is what I've done so far.
Downloaded platform independent zip files for Boost Jam 3.14.1 and Boost 1.34.0 and saved into directory I called Boost
Please use tar.gz/tar.bz2 files. zip files have dos line endings, and Unix shell is very particular about that.
I regularly run Boost builds and regression tests in a VirtualBox Linux guest on a Windows host. It is pretty much problem free. But as Volodya points out, if it is a Linux or Unix guest, you need to treat it as such regardless of the host O/S. Likewise, if it is a Windows guest, treat it as Windows even if the host happens to be Linux or Unix. --Beman _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Beman Dawes
-
Monte Jones
-
Vladimir Prus