Re: Errors installing psycopg2 on OSX 10.5.2

Philip Semanchuk <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On May 22, 2008, at 5:39 PM, Bryan Hughes wrote:

> It wasn't initially, but I just added it and tried again:
>
> bryanh$ echo $PATH
> /usr/local/pgsql/bin/pg_config:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ 
> local/bin:/usr/X11/bin
>
> Same set of errors.

Sorry if I misled you; that's not quite right. Add this to your path:
/usr/local/pgsql/bin
not this:
/usr/local/pgsql/bin/pg_config



> However, I noticed this error as well:
>
> Warning: /bin/sh: pg_config: command not found

I think you will understand why you get this once you make the  
correction above, but feel free to let me know if you don't and I'll  
explain.


> Should pg_config reside in /bin/sh?


Mine is in /usr/local/pgsql/bin and that should be sufficient.


>
>
>
> On Thu, May 22, 2008 at 5:29 PM, Philip Semanchuk <[email protected] 
> >
> wrote:
>
>>
>> On May 22, 2008, at 5:24 PM, Bryan Hughes wrote:
>>
>> I installed Postgresql using the standard "./configure >> make >>  
>> make
>>> install" steps.  The end result is a working psql installation  
>>> located at
>>> /usr/local/pgsql.
>>>
>>
>> OK, that's the way I did it too. Is pg_config in your path when you  
>> attempt
>> the psycopg install?
>>
>> (BTW, you replied only to me, not to the list. If you want to keep  
>> this on
>> this list, CC the list address too)
>>
>>
>> P
>>
>>
>>> On Thu, May 22, 2008 at 5:15 PM, Philip Semanchuk <[email protected] 
>>> >
>>> wrote:
>>>
>>>
>>>> On May 22, 2008, at 5:02 PM, Bryan Hughes wrote:
>>>>
>>>> I recently downloaded the psycopg2 package found here:
>>>>
>>>>>
>>>>> http://initd.org/pub/software/psycopg/psycopg2-2.0.7.tar.gz
>>>>>
>>>>>
>>>>> Unfortunately, when I run "python setup.py install", I receive the
>>>>> following
>>>>> error (see below).  This is my virgin experience with psycopg2,  
>>>>> so its
>>>>> entirely possible that I'm missing something.  Should I use a  
>>>>> different
>>>>> 2.x
>>>>> install package?
>>>>>
>>>>>
>>>> Hi Bryan,
>>>> That should work fine on 10.5. Where is your postgres installed,  
>>>> and how
>>>> did you install it?
>>>>
>>>>
>>>>
>>>>
>>>>
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.