public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Need help building pg_dumpfile
@ 2006-10-27 17:50 Richard Broersma Jr
  2006-10-27 18:34 ` Richard Fish
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Broersma Jr @ 2006-10-27 17:50 UTC (permalink / raw
  To: Gentoo Users

Hello list,

I am having difficulty configuring the path variables of a MakeFile.  I am tring to build
pg_filedump with no success.  You'll have to forgive me if this is a no-brainer,  this is my first
attempt at building software without the aid of emerge.

Here are the instructions in the README:
**************************************************************
There are two makefiles included in this package.  Makefile is a
standalone makefile for pg_filedump.  Alter the include and src
variables to point to the proper directories.  Makefile.contrib can be
used if the package was untarred in the contrib directory of a
PostgreSQL/RHDB build tree.

  make
  make install (if in the contrib directory)
*************************************************************


Here are the paths the path variable that I am using:
*************************************************************
#INCLUDE=/usr/include/pgsql/server
INCLUDE=/usr/include/postgresql/server

# PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
#PGSQL=../../../../postgres/pgsql
PGSQL=/usr/lib/postgresql
*************************************************************

Here is what I am getting when I "make"

make: *** No rule to make target `/usr/lib/postgresql/src/backend/utils/hash/pg_crc.c', needed by
`pg_crc.o'.  Stop.



I am pretty sure I specified the correct Include directory.  But I really don't have a clue what
the SOURCE directory should be.

Can anyone give me any pointers?

Thanks for any help.

Regards,

Richard Broersma Jr.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Need help building pg_dumpfile
  2006-10-27 17:50 [gentoo-user] Need help building pg_dumpfile Richard Broersma Jr
@ 2006-10-27 18:34 ` Richard Fish
  2006-10-27 19:07   ` Richard Broersma Jr
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Fish @ 2006-10-27 18:34 UTC (permalink / raw
  To: gentoo-user

On 10/27/06, Richard Broersma Jr <rabroersma@yahoo.com> wrote:
> make: *** No rule to make target `/usr/lib/postgresql/src/backend/utils/hash/pg_crc.c', needed by
> `pg_crc.o'.  Stop.
>
>
>
> I am pretty sure I specified the correct Include directory.  But I really don't have a clue what
> the SOURCE directory should be.

The source directory should point to...well...the package sources.
That is, wherever you extracted the sources to.  Pointing them to
/usr/lib/postgresql is only valid if you extracted the sources there.
If you extracted them to your home directory for example, you would
point to the directory there.  Most likely this will the same
directory where the Makefile is located.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Need help building pg_dumpfile
  2006-10-27 18:34 ` Richard Fish
@ 2006-10-27 19:07   ` Richard Broersma Jr
  2006-10-27 19:37     ` Richard Fish
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Broersma Jr @ 2006-10-27 19:07 UTC (permalink / raw
  To: gentoo-user

> The source directory should point to...well...the package sources.
> That is, wherever you extracted the sources to.  Pointing them to
> /usr/lib/postgresql is only valid if you extracted the sources there.
> If you extracted them to your home directory for example, you would
> point to the directory there.  Most likely this will the same
> directory where the Makefile is located.

Richard, thanks for your reply.  I believe that PGSQL must point to the postgresql source
directory.  I am not sure where these sources are since I used emerge to build PostgreSQL.  I
can't remember if emerge removes the sources when it completes its processing.  Do you have any
suggestions for me to find/re-add these directories?

However, I did try your suggest by pointing the PGSQL to the source directory for pg_filedump:
# PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
#PGSQL=../../../../postgres/pgsql
PGSQL=/home/richard/work/pg_filedump-8.1

However, I am still getting the same error as before:
 make
make: *** No rule to make target
`/home/richard/work/pg_filedump-8.1/src/backend/utils/hash/pg_crc.c', needed by `pg_crc.o'.  Stop.

Thanks for your reply.

Regards,

Richard Broersma Jr.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Need help building pg_dumpfile
  2006-10-27 19:07   ` Richard Broersma Jr
@ 2006-10-27 19:37     ` Richard Fish
  2006-10-27 20:28       ` Richard Broersma Jr
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Fish @ 2006-10-27 19:37 UTC (permalink / raw
  To: gentoo-user

On 10/27/06, Richard Broersma Jr <rabroersma@yahoo.com> wrote:
> > The source directory should point to...well...the package sources.
> > That is, wherever you extracted the sources to.  Pointing them to
> > /usr/lib/postgresql is only valid if you extracted the sources there.
> > If you extracted them to your home directory for example, you would
> > point to the directory there.  Most likely this will the same
> > directory where the Makefile is located.
>
> Richard, thanks for your reply.  I believe that PGSQL must point to the postgresql source
> directory.  I am not sure where these sources are since I used emerge to build PostgreSQL.  I
> can't remember if emerge removes the sources when it completes its processing.  Do you have any
> suggestions for me to find/re-add these directories?

Ah, yes, portage will remove postgresql sources after building.  So
you'll need to re-create the sources.  Probably the easiest thing to
do is:

# ebuild /usr/portage/dev-db/postgresql/postgresql-<version>.ebuild unpack

Then set the source directory to
/var/tmp/portage/dev-db/postgresql-<version>/work/postgresql-<version>

At least I think the above directory is right...basically you should
end up with the source directory under
/var/tmp/portage/cat-egory/package-version/work/

If for some reason pg_filedump needs compiled postgresql sources, you can do:

# ebuild /usr/portage/dev-db/postgresql/postgresql-<version> compile

This will let portage recompile postgresql the same way as it is
installed, so pg_filedump should be compatible.

Obviously replace all instances of <version> with the actual
postgresql version you have installed.

-Richard


>
> However, I did try your suggest by pointing the PGSQL to the source directory for pg_filedump:
> # PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
> #PGSQL=../../../../postgres/pgsql
> PGSQL=/home/richard/work/pg_filedump-8.1
>
> However, I am still getting the same error as before:
>  make
> make: *** No rule to make target
> `/home/richard/work/pg_filedump-8.1/src/backend/utils/hash/pg_crc.c', needed by `pg_crc.o'.  Stop.
>
> Thanks for your reply.
>
> Regards,
>
> Richard Broersma Jr.
> --
> gentoo-user@gentoo.org mailing list
>
>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Need help building pg_dumpfile
  2006-10-27 19:37     ` Richard Fish
@ 2006-10-27 20:28       ` Richard Broersma Jr
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Broersma Jr @ 2006-10-27 20:28 UTC (permalink / raw
  To: gentoo-user

> Ah, yes, portage will remove postgresql sources after building.  So
> you'll need to re-create the sources.  Probably the easiest thing to
> do is:
> 
> # ebuild /usr/portage/dev-db/postgresql/postgresql-<version>.ebuild unpack
> 
> Then set the source directory to
> /var/tmp/portage/dev-db/postgresql-<version>/work/postgresql-<version>

Thanks Richard,

This did the trick!  pg_filedump was successfull built.


Regards,
Richard Broersma Jr.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-27 20:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27 17:50 [gentoo-user] Need help building pg_dumpfile Richard Broersma Jr
2006-10-27 18:34 ` Richard Fish
2006-10-27 19:07   ` Richard Broersma Jr
2006-10-27 19:37     ` Richard Fish
2006-10-27 20:28       ` Richard Broersma Jr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox