README.md in liberic-0.1.3 vs README.md in liberic-1.1.0
- old
+ new
@@ -25,11 +25,11 @@
Or install it yourself (not possible yet) as:
$ gem install liberic
The ERiC library files are not distributed with this gem. They must be
-obtained from the [ELSTER Downloads Page](https://www.elster.de/ssl/secure/eric.php). (Requires your personal credentials which have to be requested from ELSTER).
+obtained from the [ELSTER Downloads Page](https://www.elster.de/elsterweb/entwickler/infoseite/eric). (Requires your personal credentials which have to be requested from ELSTER).
Follow the installation instructions from the ERiC documentation.
After extracting the downloaded library files to a location of your choice, there should be a folder
containing at least three subfolders:
@@ -38,52 +38,56 @@
bin/
include/
lib/
```
-Currently, the environment variable `ERIC_HOME` needs to be set to this
+Currently, the environment variable `ERIC_HOME_39` needs to be set to this
folder or the gem will not find the library files.
For example:
```sh
-$ export ERIC_HOME=/opt/ERiC-23.3.8.0/Linux-x86_64
+$ export ERIC_HOME_39=/opt/ERiC-39.3.2.0/Linux-x86_64
```
### Additional steps on OS X
+
+The following OS X specific information dates back to the first version of this
+library (from 2016). Might be outdated or incorrect by now.
+
On *Mac OS X* you need to process the libraries to fix the interal paths
(credits to @deviantbits):
```
-libs=`ls $ERIC_HOME/lib/*.dylib`
-plugins=`ls $ERIC_HOME/lib/plugins2/*.dylib`
+libs=`ls $ERIC_HOME_27/lib/*.dylib`
+plugins=`ls $ERIC_HOME_27/lib/plugins2/*.dylib`
for target in $libs
do
for lib in $libs
do
- install_name_tool -change "@rpath/"`basename $lib` "$ERIC_HOME/lib/"`basename $lib` $target
+ install_name_tool -change "@rpath/"`basename $lib` "$ERIC_HOME_27/lib/"`basename $lib` $target
done
for plugin in $plugins
do
- install_name_tool -change "@rpath/plugins2/"`basename $plugin` "$ERIC_HOME/lib/plugins2/"`basename $plugin` $target
+ install_name_tool -change "@rpath/plugins2/"`basename $plugin` "$ERIC_HOME_27/lib/plugins2/"`basename $plugin` $target
done
done
for target in $plugins
do
for lib in $libs
do
- install_name_tool -change "@rpath/"`basename $lib` "$ERIC_HOME/lib/"`basename $lib` $target
+ install_name_tool -change "@rpath/"`basename $lib` "$ERIC_HOME_27/lib/"`basename $lib` $target
done
done
```
Check your settings by running:
```sh
-$ ls $ERIC_HOME/lib/libericapi.*
+$ ls $ERIC_HOME_27/lib/libericapi.*
```
This should list you one file with an operating system dependend suffix.
## Usage