This section describes how to install Alfresco Add-ins for MicrosoftÂ® Office applications, such as Word, Excel, and PowerPoint.
Before you start, ensure that:
The .NET Programmability Support option is installed for each of the Office applications that you are installing the Add-ins such as Word, Excel, and PowerPoint). To find these options, run the Office Setup program and expand the list of available options for each application. You may require your original Office 2007 install media to add these required components.
The installing user has Windows administrator privileges.
Any Microsoft Office applications on your system are NOT running, including Outlook if you use Word as an email editor.
To install and configure Microsoft Office Add-ins:
Run the Microsoft setup file: alfresco-enterprise-office2003-addins-3.0.zip. This file can be downloaded from Installing Labs 3. This example refers to the Office installer that installs all three Add-ins. You can also use individual installers to add Alfresco to one of the three Office applications.
These individual installers are:
Run setup.exe. If required, the setup program will download the required components from the Microsoft website. These components are .NET 2.0 framework, and Visual Studio 2005 Tools for Office Second Edition runtime.
Run the Office application, for example, Word. A Welcome window with configuration options displays.
In the CIFS Server area, enter the path to the CIFS server. The Add-in will try to auto-complete this value, but you should verify for the correct address. For example: \\server_a\alfresco\ or \\servera\alfresco\
In the Authentication area, enter your Alfresco user name and password. If you are using the CIFS interface, authentication is usually automatic. However, sometimes the Add-in presents your Alfresco user name and password for authentication. All values are stored in the Windows registry and your password is encrypted against casual hacking attempts.
Click Save Settings.
Installing Flash Player
Alfresco Share uses Flash Player for viewing Flash previews and also when you use the multi-file upload facility. This is optional and may be installed after you have installed Alfresco.
Browse to the location of your downloaded file and install the application. A wizard guides you through the installation.
When the installation is complete, click Close.
Alfresco Share uses the pdf2swf utility of the SWFTools for previewing PDF files. The pdf2swf utility generates one frame per page of fully formatted text inside a Flash movie. This is optional and may be installed after you have installed Alfresco.
Alfresco Share leverages the features provided in the Development snapshots of the tools. Install a version post 0.8.1. Use the last development snapshots, because version 0.8.1 from 2007-02-28 does not support some functionalities Alfresco needs to render the preview.
If you encounter issues with the snapshot that you have installed, please swap out the version you are using as a first step in troubleshooting.
Download the latest version of the SWF Tools for your platform. The Unix version is designated with the suffix .tar.gz.
Unpack the tar.gz file, and follow the instructions provided in the INSTALL file.
Use ./configure --disable-lame to disable the lame libraries. These are not required, and distributions like RHEL do not include them by default.
Java in Unix is not so efficient in doing a Runtime.exec() call for external processes. If you see an error like this:
Execution result: os: Linux command: [/usr/local/bin/pdf2swf, -T, 9, /opt/alfresco/tomcat/temp/Alfresco/RuntimeExecutableContentTransformer_source_29423.pdf, -o, /opt/alfresco/tomcat/temp/Alfresco/R untimeExecutableContentTransformer_target_29424.swf] succeeded: false exit code: 1 out: err: Cannot run program '/usr/local/bin/pdf2swf': java.io.IOException: error=12, Cannot allocate memory
This is because Java is trying to do a clone() call - which requires as much memory as the original process, until it finally does the execve('pdf2swf', ...). Make sure you have enough physical memory + swap to perform this allocation. It is only needed temporarily, but will return an error if you don't do it. This inherit Runtime.exec() behaviour is outlined here and here.
For RedHat, Fedora or Centos users:
Before you can compile, ensure the following development packages are installed:
Download and install these packages using the command:
yum install zlib-devel libjpeg-devel giflib-devel freetype-devel gcc gcc-c++ make
If you have a Red Hat Linux version older than 2008-11-12-0905, you may see a message that states your operating system is unknown. If this is the case, use the following setting at configuration time:
For Ubuntu users:
Just install the swftools package: sudo apt-get install swftools
If you're using the latest Ubuntu, and/or the swftools package does not exist, then you may need to compile and build from scratch ... for example, refer to https://help.ubuntu.com/community/SWFTools. Here's an example of steps used for Ubuntu 11.10 (GNU/Linux 3.0.0-12-virtual x86_64) although YMMV (your mileage may vary) :