From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Janek Sendrowski" <janek12(at)web(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: /usr/bin/ld: cannot find [...] when compiling |
Date: | 2013-11-24 16:37:37 |
Message-ID: | 21770.1385311057@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Janek Sendrowski" <janek12(at)web(dot)de> writes:
> <div>The file test.c only includes the postgres.h (#include "postgres.h"), but I get this error, when compiling:</div>
> <div>/usr/bin/ld: cannot find -lxslt<br/>
> /usr/bin/ld: cannot find -lxml2<br/>
> /usr/bin/ld: cannot find -lpam<br/>
> /usr/bin/ld: cannot find -ledit<br/>
> collect2: ld returned 1 exit status<br/>
> make: *** [test] Error 1</div>
[ please don't post html-only mail to the PG lists ]
Where did you get your Postgres installation from? It looks like it was
configured to be built with a bunch of libraries that you don't have
installed, so I'm guessing it wasn't self-built.
The path of least resistance would be to install libxslt-devel,
libxml2-devel, pam-devel, libedit-devel, etc (or whatever those packages
are named on your platform), so as to match the build environment that
the Postgres package is expecting.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Janek Sendrowski | 2013-11-24 17:09:04 | Re: /usr/bin/ld: cannot find [...] when compiling |
Previous Message | Janek Sendrowski | 2013-11-24 15:31:33 | /usr/bin/ld: cannot find [...] when compiling |