Re: psycopg installation error: C compiler cannot create executables

2007-01-05 Thread Alasdair


Oh - one more thing: James Bennett posted over at TextDrive saying he'd
installed psycopg via DarwinPorts, but I've been trying to do that over
the last couple of days and it stalls while trying to fetch PostgreSQL
8.1.3 (which it wants as a precondition for installing py-psycopg).

I don't know if this helps - there might be a way grab it without
DarwinPorts trying to install PostgreSQL but I don't know of a way.
Please excuse my ignorance in these matters...

- Alasdair


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: psycopg installation error: C compiler cannot create executables

2007-01-05 Thread Alasdair


If Joseph's suggestion doesn't work, you may want to look at your Xcode
installation. I had the same output as you when trying to install
psycopg until I updated my Xcode install (following advice on a forum
thread in French which I've since lost). You'll have to create a
developer account at the Apple webpage
(http://developer.apple.com/tools/) if you haven't already done so, but
that's a snap. Seems some earlier versions of Xcode have a problem with
specifying multiple chip architectures for gcc. I'm not sure if this is
your problem - looking at your config.log might help (you might see
something specifying both powerpc and i386 arch right before the fail).


Also, if you get past this, let us know how things go, as I'm still
trying to configure psycopg. I no longer get PostgreSQL header
problems, but I'm getting a "can't build without PostgreSQL libraries"
problem. The configure exits after looking for PQconnectStart:

checking for mxDateTime.h... yes
checking for main in -lcrypt... no
checking for main in -lcrypto... yes
checking for PQconnectStart in -lpq... no
configure: error: can't build without PostgreSQL libraries

after I configure using:
./configure --with-postgres-libraries=/usr/local/pgsql/lib
--with-postgres-includes=/usr/local/pgsql/include
--with-mxdatetime-includes=[path/to]/mx/DateTime/mxDateTime

I don't know if I should try messing around with libpq, or if I need to
recompile both PostgreSQL and psycopg without SSL support, or something
like that.

I hope everything works out - keep us posted.

- Alasdair


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Joseph Heck

Your path probably doesn't include pg_config on it. Step 4 in the Postgres
instructions has you adding /opt/pgsql/bin to your path - I don't have a Mac
with me to check, but is pg_config in there? If not, add on to your PATH
environment variable for where-ever its located and it should build from
there.

-joe


On 1/3/07, Abe <[EMAIL PROTECTED]> wrote:



Hey all. Im trying to get django up and running on my Mac (powerbook,
powerpc chip, 10.4 OSX).

I got postgresql v 8.2.0 up and going, along with Python 2.4.

I go to install psycopg to get the two communicating with one another,
and, following the directions on the SetupOnTiger
(http://code.djangoproject.com/wiki/SetupOnTiger) part of the Django
page, got to configuring psycopg.

When I typed

./configure --with-postgres-libraries=$(pg_config --libdir)
--with-postgres-includes=$(pg_config --includedir)

it gave me:

bold
-bash: pg_config: command not found
-bash: pg_config: command not found
checking for python...
/Library/Frameworks/Python.framework/Versions/Current/bin/python
checking python version... 2.4
checking python installation prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking python installation exec_prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking definitions in Python library makefile... done
checking location of python library...
$(prefix)/lib/python2.4/site-packages
checking location of python shared modules...
$(exec_prefix)/lib/python2.4/site-packages
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Any ideas?


>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Honza Král

On 1/3/07, Abe <[EMAIL PROTECTED]> wrote:


Hey all. Im trying to get django up and running on my Mac (powerbook,
powerpc chip, 10.4 OSX).

I got postgresql v 8.2.0 up and going, along with Python 2.4.

I go to install psycopg to get the two communicating with one another,
and, following the directions on the SetupOnTiger
(http://code.djangoproject.com/wiki/SetupOnTiger) part of the Django
page, got to configuring psycopg.

When I typed

./configure --with-postgres-libraries=$(pg_config --libdir)
--with-postgres-includes=$(pg_config --includedir)

it gave me:

bold
-bash: pg_config: command not found
-bash: pg_config: command not found
checking for python...
/Library/Frameworks/Python.framework/Versions/Current/bin/python
checking python version... 2.4
checking python installation prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking python installation exec_prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking definitions in Python library makefile... done
checking location of python library...
$(prefix)/lib/python2.4/site-packages
checking location of python shared modules...
$(exec_prefix)/lib/python2.4/site-packages
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Any ideas?


Maybe you look into `config.log' for more details? ;)

you may be better of looking for this issue on google or psycopg
website, but my guess would be you have an incorrectly setup system...




>




--
Honza Kr l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Abe


Sorry, ignore the "bold


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Abe


Hey all. Im trying to get django up and running on my Mac (powerbook,
powerpc chip, 10.4 OSX).

I got postgresql v 8.2.0 up and going, along with Python 2.4.

I go to install psycopg to get the two communicating with one another,
and, following the directions on the SetupOnTiger
(http://code.djangoproject.com/wiki/SetupOnTiger) part of the Django
page, got to configuring psycopg.

When I typed

./configure --with-postgres-libraries=$(pg_config --libdir)
--with-postgres-includes=$(pg_config --includedir)

it gave me:

bold
-bash: pg_config: command not found
-bash: pg_config: command not found
checking for python...
/Library/Frameworks/Python.framework/Versions/Current/bin/python
checking python version... 2.4
checking python installation prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking python installation exec_prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking definitions in Python library makefile... done
checking location of python library...
$(prefix)/lib/python2.4/site-packages
checking location of python shared modules...
$(exec_prefix)/lib/python2.4/site-packages
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Any ideas?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---