Binary Frameworks Installation and Upgrade

Last modified by Pascal Robert on 2012/02/11 08:06

Introduction

The most recent binary build of Wonder frameworks for both WO 5.3.3 and WO 5.4.3 are available from jenkins.wocommunity.org. This installation method gets you the latest version.

However, if you are not afraid of source (and you shouldn't be!), then try the Source installation and upgrade article instead. Really, working with Wonder source is the recommended way, and you will learn more and be a better WebObjects developer as a result

Overview

The objective is to simply download the compressed archive of the Wonder frameeworks, expand the archive and copy the frameworks to the default frameworks location.

New Installation Procedure

Open a terminal session and type the following easy commands. Choose the one for your WebObjects version.

# Make a directory for the binaries
mkdir ~/WonderBinaries54

# Go into the directory
cd ~/WonderBinaries54

# Download the binaries archive
curl -L -O http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/Wonder-Frameworks.tar.gz

# Decompress the archive
tar -xzvf Wonder-Frameworks.tar.gz

# Copy the frameworks to the default runtime path
sudo cp -Rvf *.framework /Library/Frameworks
 

# Make a directory for the binaries
mkdir ~/WonderBinaries53

# Go into the directory
cd ~/WonderBinaries53

# Download the binaries archive
curl -L -O http://jenkins.wocommunity.org/job/WonderLegacy/lastSuccessfulBuild/artifact/Root/Roots/Wonder-Frameworks.tar.gz

# Decompress the archive
tar -xzvf Wonder-Frameworks.tar.gz

# Copy the frameworks to the default runtime path
sudo cp -Rvf *.framework /Library/Frameworks
 

If you have a custom environment layout

If you want to install the frameworks somewhere other than the default location, replace "/Library/Frameworks" on the last line above with the desired destination

Upgrade Existing Installation Procedure

You can just download and copy using the finder, or use the command line as follows to cleanly remove the old installation and install a fresh latest binaries upgrade.

Assuming you have the same working directory as above whn you did a new installation

# Navigate to the directory where you previously expanded the original binaries
cd ~/WonderBinaries54

# Delete the installed binary frameworks whose names match the nams of the frameworks in this working directory
for FRAMEWORK in `echo *.framework`; do sudo rm -r /Library/Frameworks/${FRAMEWORK}; done

# Delete the contents of this working directory
rm -r *

# Download latest binaries archive
curl -L -O http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/Wonder-Frameworks.tar.gz

# Expand the archive
tar -xzvf Wonder-Frameworks.tar.gz

# Install the frameworks
sudo cp -Rvf *.framework /Library/Frameworks
 

# Navigate to the directory where you previously expanded the original binaries
cd ~/WonderBinaries53

# Delete the installed binary frameworks whose names match the nams of the frameworks in this working directory
for FRAMEWORK in `echo *.framework`; do sudo rm -r /Library/Frameworks/${FRAMEWORK}; done

# Delete the contents of this working directory
rm -r *

# Download latest binaries archive
curl -L -O http://jenkins.wocommunity.org/job/WonderLegacy/lastSuccessfulBuild/artifact/Root/Roots/Wonder-Frameworks.tar.gz

# Expand the archive
tar -xzvf Wonder-Frameworks.tar.gz

# Install the frameworks
sudo cp -Rvf *.framework /Library/Frameworks
 

If you have a custom environment layout

If you installed the frameworks somewhere other than the default location, replace "/Library/Frameworks" on the second and last lines above with the directory containing the installed frameworks.