/usr/local/lib/libgretl-1.0.so exists and points to libgretl-1.0.so.16.0.0 in the same directory.

Ran sudo ldconfig

In /etc/ld.so.conf.d/libc.conf I already see /usr/local/lib.

Very strange, since install seemed to go through fine.




On Sunday, February 14, 2016 8:17 PM, Allin Cottrell <cottrell@wfu.edu> wrote:


On Mon, 15 Feb 2016, Salman Khan wrote:

> Hmmm... I cd'ed into the extras folder and tried compiling the
> three examples there with the default makefile.I still get errors:
>
> cc -g -O2 -Wall -I/usr/local/include -I/usr/include/libxml2
> -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  
> -DPREFIX=\"/usr/local\"  -fopenmp -L/usr/local/lib -lgretl-1.0 -lm
> -lxml2 -lfftw3 -lglib-2.0    simple_client.c   -o simple_client

> /tmp/ccUP9gBA.o: In function `main':
> Downloads/gretl-2016a/extra/simple_client.c:52: undefined
> reference to `libgretl_init'

Does /usr/local/lib/libgretl-1.0.so actually exist, and point to an
valid library file such as libgretl-1.0.so.16.0.0?

If not, the installation was not successful; but if so, you might
need to tell the linker to update its cache:

sudo ldconfig

and/or if /usr/local/lib is not a directory known to the linker you
may have to add an entry for it under /etc/ld.so.conf.d.


Allin Cottrell