On Thu, 21 Jun 2001, Peter van Dijk wrote:
...
> We have successfully compiled hypermail 2.1.2 on Solaris with GDBM support
>
> gcc -o hypermail -g -O2 -I/usr/local/include -Ipcre -L/usr/local/lib -Lpcre
...
> -lgdbm -lm -lpcre
>
> When trying to run hypermail we get
>
> ld.so.1: /opt/hypermail/2.1.2/bin/hypermail: fatal: libgdbm.so.2: open failed:
> No such file or directory
>
> libgdbm.so.2 has been linked from /usr/local/lib
You need to add -R/usr/local/lib to the link command line, ie
gcc -o hypermail -g -O2 -I/usr/local/include -Ipcre
-L/usr/local/lib -R/usr/local/lib
...
-lgdbm -lm -lpcre
See man page for ld(1)
Paul
-- Paul Haldane Computing Service University of NewcastleReceived on Thu 21 Jun 2001 04:13:05 PM GMT
This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:53 PM GMT GMT