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:

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:

  1. Copy the “FeResPost.pyd” file into your site-packages directory. (You can also copy the library into your Python script directory.)
    copy D:/SHARED/FERESPOST/SRC/OUTPUTS/PYTHON/PYTHON_27/FeResPost.pyd ^
         D:/USERS/ferespost/AppData/Roaming/Python/Python27/site-packages
    You can obtain the user site-packages directory with the command:
    python -m site --user-site
  2. 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:

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:

COM registration program with the files selected for registration

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.)