to recompile or not recompile postgres

Поиск
Список
Период
Сортировка
Искать

to recompile or not recompile postgres

От:
Mark Tessier <mt@open2web.com>
Дата:
I just realized, after trying to compile a C++ script, that I forgot to compile the C++ interface library during the installation of postgres. At least I'm assuming this to be the case as /usr/include/pgsql -lpq++ doesn't exist. My question is: do I need to recompile postgres to create the /usr/include/pgsql directory and all its contents, and if yes, is it possible to do it without losing what I've done so far--ie., dbs, users I've already created.

-- 
Thanks,

Mark

Re: to recompile or not recompile postgres

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Mark Tessier  writes:
> I just realized, after trying to compile a C++ script, that I forgot
> to compile the C++ interface library during the installation of
> postgres. At least I'm assuming this to be the case as
> /usr/include/pgsql -lpq++ doesn't exist.

The library file wouldn't be in /usr/include in any case; more likely
under /usr/lib or /usr/local/lib.

But in any case, you should be able to reconfigure with --with-CXX added
to whatever configure options you used before, rebuild, and then do
"make install" in just src/interfaces/libpq++ not the whole tree.

			regards, tom lane
FAQ