problem installing Psycopg2

Bryan Blackburn 0x62_0x6c_0x62 at pobox.com
Sat Aug 23 23:15:51 PDT 2008


On Aug 23, 2008, at 10:43 PM, Nehemiah Dacres wrote:

> it failed to install after resolving all dependancies. It seems to  
> be an error in the portfile, like a flag being missparsed as a  
> command but I dont know Tcl enough to efficiently deliver a patch.
>
> here's the message
> "
> creating build/temp.macosx-10.3-ppc-2.5/psycopg
> -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes - 
> DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 - 
> DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 - 
> DPSYCOPG_VERSION="2.0.5.1 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 - 
> DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=1 -DPSYCOPG_EXTENSIONS=1 - 
> DPSYCOPG_DISPLAY_SIZE=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 - 
> DHAVE_PQPROTOCOL3=1 -I/opt/local/include/python2.5 -I. -I/opt/local/ 
> include/postgresql83 -I/opt/local/include/postgresql83/server -c  
> psycopg/psycopgmodule.c -o build/temp.macosx-10.3-ppc-2.5/psycopg/ 
> psycopgmodule.o
> unable to execute -DNDEBUG: No such file or directory
> error: command '-DNDEBUG' failed with exit status 1
>

That's the Tcl environment bug, as documented on the 10.5 problems page:

<http://trac.macports.org/wiki/LeopardProblems#environmentvariablesbecomeblankbetweenconfigureandbuildphases 
 >

Do a clean of the port that failed (sudo port clean <portname>), and  
run your original port install command again.

Bryan


> Error: Status 1 encountered during processing.
> "
>
> I hope you can make sense of this or fix it
> .
> -- 
>
> "lalalalala! it's not broken because I can use it"
>
> http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703



More information about the macports-users mailing list