On 16.09.2017 21:26, Hélio Guilherme wrote:
 I don't use Debian based. These days I use Fedora-26 and CentOS 7
(the 
 following was done on this one).
 At first try it did not work, but after doing the following changes, 
 your example run OK.
 At Preferences>General>Programs>R library location changed to:
 /usr/lib64/R/lib/libR.so
 Then closed and restarted gretl:
 How I started gretl:
 R_HOME=/usr/lib64/R gretl &
 
That was very helpful, Helio. Thank you.
After reinstalling R shipped with the official repo and running 
"R_HOME=/usr/lib64/R gretl &" it works fine. Just wondering why I need 
to define R_HOME like this, but hopefully Sven's suggestion to have a 
look at PKG_CONFIG_PATH will be helpful ;-)
Best,
Artur