Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F23E46332E6 for ; Mon, 22 Mar 2010 02:00:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95089-01 for ; Mon, 22 Mar 2010 05:00:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id 4F31C632381 for ; Mon, 22 Mar 2010 02:00:47 -0300 (ADT) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MVq96-1O8qTF1nJY-00X6hs; Mon, 22 Mar 2010 06:00:46 +0100 Message-ID: <4BA6F97C.5030703@2ndquadrant.com> Date: Mon, 22 Mar 2010 01:00:44 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Reydan Cankur CC: pgsql-performance@postgresql.org Subject: Re: pgbench installation References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/XDuOgenQRWp+U1ghnrVvxh/QQU05yPqbbePb ZIcjo4paErBbDA6wwqMcCrLU0rEoPPA44wy5pIV37p/HZhOtkU hS3d5n3HQTaAo6SdJwC9cqLgo6fDBo0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/266 X-Sequence-Number: 38091 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