pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgbench installation 2+ messages / 2 participants [nested] [flat]
* pgbench installation @ 2010-03-20 04:50 Reydan Cankur <reydan.cankur@gmail.com> 2010-03-22 05:00 ` Re: pgbench installation Greg Smith <greg@2ndquadrant.com> 0 siblings, 1 reply; 2+ messages in thread From: Reydan Cankur @ 2010-03-20 04:50 UTC (permalink / raw) To: pgsql-performance Hi All, I have compiled PostgreSQL 8.4 from source code and in order to install pgbench, I go under contrib folder and run below commands: make make install when I write pgbench as a command system cannot find pgbench as a command. As a result I cannot use pgbench-tools because system does not interpret pgbench as a command? What should I do to make the pgbench a command, shall I edit .bashrc file, if yes how? Thanks in advance for all answers, Best Regards, -- Reydan Çankur ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgbench installation 2010-03-20 04:50 pgbench installation Reydan Cankur <reydan.cankur@gmail.com> @ 2010-03-22 05:00 ` Greg Smith <greg@2ndquadrant.com> 0 siblings, 0 replies; 2+ messages in thread From: Greg Smith @ 2010-03-22 05:00 UTC (permalink / raw) To: Reydan Cankur <reydan.cankur@gmail.com>; +Cc: pgsql-performance Reydan Cankur wrote: > > I have compiled PostgreSQL 8.4 from source code and in order to > install pgbench, I go under contrib folder and run below commands: > make > make install > when I write pgbench as a command system cannot find pgbench as a command. Do regular PostgreSQL command such as psql work? pgbench should be installed into the same directory those are. Normally you just need to add the directory all these programs are in to your PATH environment variable when you login. If you're not sure where that is, you could re-install pgbench and note where it puts it at when you reinstall: cd contrib/pgbench make clean make make install Or you could use a system utility such as "locate pgbench" or "find" to figure out where it went at. > As a result I cannot use pgbench-tools because system does not > interpret pgbench as a command? You don't actually need pgbench to be in your PATH for pgbench-tools to work. If you look at the "config" file it uses, you'll find this: PGBENCHBIN=`which pgbench` If pgbench is in your PATH, this will return its location, and since that's normally the case for people running PostgreSQL it's the default. But you could alternately update this to include a direct location instead. For example, if pgbench was stored in your home directory, something like this would work: PGBENCHBIN="/home/me/pgsql/bin/pgbench" -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-03-22 05:00 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2010-03-20 04:50 pgbench installation Reydan Cankur <reydan.cankur@gmail.com> 2010-03-22 05:00 ` Greg Smith <greg@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox