| 1 |
Wrappers to Ifeffit for Perl, Python, and Tcl |
| 2 |
--------------------------------------------- |
| 3 |
|
| 4 |
For each language, the wrapper made here will give you access directly to |
| 5 |
Ifeffit from within the scripting language itself. This merges the power |
| 6 |
of the scripting language and the functionality of Ifeffit. From the |
| 7 |
scripting language point-of-view, this is called an _extension_ to the |
| 8 |
language. From Ifeffit's point-of-view, this is called a _wrapper_. |
| 9 |
|
| 10 |
Building and Installation instructions are given in the README file |
| 11 |
in each subdirectory. |
| 12 |
|
| 13 |
To build each wrapper, you will need a working installation of that |
| 14 |
language. The latest versions of these languages, and a wealth of |
| 15 |
information about them can be found at: |
| 16 |
Perl: http://www.perl.com/ |
| 17 |
Python: http://www.python.org/ |
| 18 |
Tcl: http://www.scriptics.com/ |
| 19 |
|
| 20 |
For Perl, you'll need version 5.0003 or higher, and version 5.6 or higher |
| 21 |
is recommended. For Python, you'll need version 1.5.2 or higher, and |
| 22 |
version 2.1 or higher is recommended. For Tcl, you'll need version 8.0 or |
| 23 |
higher. |
| 24 |
|
| 25 |
You will also need a working installation of Ifeffit. That is, the Ifeffit |
| 26 |
library __Must Be Installed__ before these wrappers can be built. |
| 27 |
|
| 28 |
On some systems (notably linux), there are some problems with pre-built |
| 29 |
fortran installations, especially when trying to make shared-objects, as |
| 30 |
needs to be done for the extensions made here. If you have problems, |
| 31 |
please consult the Fortran.Notes file in this directory. |
| 32 |
|
| 33 |
Perl Notes |
| 34 |
---------- |
| 35 |
|
| 36 |
Perl 5.6 made a substantial change from Perl 5.5 (aka 5.005) in how |
| 37 |
extensions are made. Because of this, the internal parts of the Ifeffit |
| 38 |
perl wrapper are different for perl 5.6 (and later) and 5.5 (and earlier). |
| 39 |
|
| 40 |
If you have perl 5.6 or 5.8 (as is recommended), follow the instructions |
| 41 |
in wrappers/perl. For perl 5.003 to 5.5, follow the instructions in |
| 42 |
wrappers/perl_old. |
| 43 |
|
| 44 |
Note: The way programs USE Ifeffit.pm is not affected by this change!! |
| 45 |
|
| 46 |
If you don't know which version of perl you have, type 'perl -v'. |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
Matt Newville <[email protected]> |