Hi Arthur,

I suugest for you to create a symbolic link, like:
sudo ln -s /usr/local/share/R /usr/share/R


Maybe configuring the following options from ./configure --help
(...)
LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
            nonstandard directory <lib dir>
(...)
  RLIB_LIBS   linker flags for RLIB, overriding pkg-config

You could try:
export RLIB_LIBS="-L /usr/local/share/R"

My Favorite Open Source Projects
awsome-lists gretl meld robotframework wxPython
(sponsored/patrocinado) Recomendo servidores e alojamento Web em:
http://www.proalojamento.com/clientes/aff.php?aff=258

On Sat, Sep 16, 2017 at 1:08 PM, Artur T. <artur.tarassow@googlemail.com> wrote:
Dear all,

I just compiled R myself on my ubuntu 17.04 machine in order to be able to use the --enable-R-shlib option. The flags I used when compiling R are:

./configure --enable-R-shlib --with-blas --with-lapack

However, after freshly compiling gretl using latest git, I obtain an error that "make" cannot find the „gretl_foreign.lo“ since "make" looks into the wrong folder („/usr/share/R/"; which is the correct folder when installing R from the ubuntu reps.) but it should look into „/usr/local/share/R/" instead (where it is installed now using my own compilation). Unfortunately, I could not find a flag telling gretl to change the folder where to look for „gretl_foreign.lo“.

Does anybody know how to change this accordingly?

Best,

Artur

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users