Search Postgresql Archives

Re: /usr/bin/ld: cannot find [...] when compiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Janek Sendrowski" <janek12@xxxxxx> writes:
> <div>The file test.c only includes the postgres.h (#include &quot;postgres.h&quot;), 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


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux