Hi Helio, thank for your reply and the suggestion. I guess this would have been the most simple way to solve this issue.

However, meanwhile I've found another workaround: I found out that I can tell gretl the correct paths in the file /lib/.deps/gretl_foreign.d. Unfortunately, this has to be done by hand but at least the installation works well.

However, now trying to call the R library yields the following error: "To use Rlib, the variable R_HOME must be set". Asking R how R_HOME is set, gives me

<R>
    Sys.getenv("R_HOME")
    [1] "/usr/local/lib/R"
</R>

Nevertheless, gretl has no idea how R_HOME is set :-(

Any ideas on this?

Artur



On 16.09.2017 19:07, Hélio Guilherme wrote:
sudo ln -s /usr/local/share/R /usr/share/R