Installation of FeResPost
We explain here how the FeResPost binaries must be configured to be used on Windows or Linux. It is also possible to compile FeResPost from the sources. (See the FeResPost User Manual.)
Downloading the binaries
Binaries (sources compiled into shared libraries) can be downloaded from the FeResPost Downloads page. Just be careful to download the archive that suits your needs:
- Choose the version you are interested in (or “Third-party contributions”, “Latest developments”...).
- Select a “linux” archive if you work on Linux, and a “win32” or “win64” archive if you work on Windows. If you use another operating system, you will have to recompile FeResPost from the sources. (See Appendix X.A of the FeResPost User Manual for more information.)
- Also select the right archive among the 32-bit and 64-bit ones. Your operating system is probably 64-bit; the choice between 32-bit and 64-bit binaries then depends on your installation of Ruby, Python, or of the program with which you use the COM component. For example, many Microsoft Office installations are still 32-bit, and the 32-bit COM component should then be used.
Because releasing a new official version of FeResPost is time-consuming, “unofficial” distributions of the current version, including small bug fixes, are often published. We therefore suggest that FeResPost users regularly check the Latest developments on the Downloads page for the latest sources or binaries.
More information on downloading FeResPost is given on the Downloads page and in Appendix X.A of the FeResPost User Manual.
Extraction and configuration
The content of the downloaded archive(s) must be extracted to a suitable location (of your choice). The configuration then depends on the kind of extension, component or assembly you are using.
We give below a few examples of how to make it work, but we do not claim to be exhaustive. Please refer to the documentation of the various languages to find the installation procedure that best suits your needs.
Python and Ruby extensions
There is not much to do to access the FeResPost extensions from Ruby or Python. You just have to specify the path to the directory that contains the extension you are using.
With Ruby, this can be done by specifying the path with the “-I” command-line option. For example:
ruby -I../../../SRC/OUTPUTS/RUBY/RUBY_18 printGroups.rb
The path to the directory can also be defined by setting or modifying the RUBYLIB environment variable. The “-I” option is then no longer needed:
set RUBYLIB=D:/SHARED/FERESPOST/SRC/OUTPUTS/RUBY/RUBY_18
ruby printGroups.rb
With Python, we propose two methods:
- Copy the “FeResPost.pyd” file into your site-packages directory. (You can also copy the library into your Python script directory.)
You can obtain the user site-packages directory with the command:copy D:/SHARED/FERESPOST/SRC/OUTPUTS/PYTHON/PYTHON_27/FeResPost.pyd ^ D:/USERS/ferespost/AppData/Roaming/Python/Python27/site-packagespython -m site --user-site - Define the path to the directory by setting or modifying the PYTHONPATH environment variable:
set PYTHONPATH=D:/SHARED/FERESPOST/SRC/OUTPUTS/PYTHON/PYTHON_27
You can then simply run a Python script as follows:
python printGroups.py
For the Ruby and Python extensions, you must also be careful to use the directory containing the binaries that match the version of the Ruby or Python executable you are using:
- For Ruby, the RUBY_18 directory corresponds to Ruby versions 1.8.*, RUBY_19 to Ruby versions 1.9.*, etc.
- For Python, the PYTHON_26 directory corresponds to Python versions 2.6.*, PYTHON_27 to Python versions 2.7.*, etc.
COM component
The COM component must be registered before use. For that purpose, a program called “modifyRegistry.exe” is distributed with the FeResPost library. This program is located in the “OUTPUTS/COM/bin” directory. It adds keys to the Windows registry:
- The component can be registered for the current user only, or for all users. In the second case, the registration program must be run from an account with administrator privileges.
- The registration program can register the component as well as unregister it. If you decide to uninstall the FeResPost COM component, you should unregister it before removing the FeResPost files.
- You only need to register the “FeResPost.dll” library and the “FeResPost.tlb” type library file, so the selection of files to register should look as follows:

- When you are ready, simply click on the “Start Registering COM Component” button.
To unregister the component, do exactly the same, except that you click on the “Start Unregistering COM Component” button at the end.
Note that to use the COM component, you still need to reference it from the particular environment in which you use it. For example, in Excel, you use the COM component in VBA, and you must add a reference to it in the VBA editor. More information on the different ways to do this is provided in the COM examples of the FeResPost User Manual, and in a few COM examples on this website.
.NET assembly
The .NET assembly can be registered by copying the corresponding FeResPost.dll library into the Global Assembly Cache (GAC). On my computer, this is simply done by dropping “FeResPost.dll” into the “C:/Windows/assembly” directory. Note, however, that you need administrator privileges to perform this operation.
You can also use the assembly without registration. The assembly must then be located in the same directory as the executable. (This is generally what I do when I test a new version of FeResPost.)