errors encountered while installing Python -- please advise
rrucker at mac.com
Fri Sep 19 14:34:59 PDT 2008
On Sep 19, 2008, at 4:36 PM, Bryan Blackburn wrote:
> On Fri, Sep 19, 2008 at 03:27:25PM -0400, Richard Rucker said:
>> Here's the installation command being executed:
>> <me>$ sudo port install py25-gtk py-serial py25-xml py25-hashlib
> Any particular reason why you're using py-serial instead of py25-
> py-* ports are usually python 2.4 (some may be 2.3, not sure).
I'm just following the instructions given for installing D-Rats on a
Mac. Here's a copy:
Go to http://www.macports.org/install.php and follow the directions
Once macports is installed, you can open a terminal and install the
% sudo port install py25-gtk py-serial py25-xml py25-hashlib
This will take a long time.
When it's done, you'll need to link the pyserial package into the
% sudo ln -s /opt/local/lib/python2.4/site-packages/serial /opt/local/
After that, you should be able to download the latest source release,
untar it, and run:
% /opt/local/bin/python2.5 d-rats.py
I'm a novice at this command line stuff. So what's the difference
py-serial and py25-serial? And what do they do?
>> Here's the relevant portion of the installing script's reports:
>> ---> Building py25-hashlib with target build
>> Error: Target org.macports.build returned: shell command " cd "/opt/
>> Modules" && /opt/local/bin/python2.5 setup.py build " returned
>> error 1
>> Command output: running build
>> running build_ext
>> building '_hashlib' extension
>> creating build
>> creating build/temp.macosx-10.3-i386-2.5
>> -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/
>> python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/
>> unable to execute -DNDEBUG: No such file or directory
>> error: command '-DNDEBUG' failed with exit status 1
> That's the Tcl environment bug:
> $ sudo port clean py25-hashlib
> then your original install should make it through.
>> Error: The following dependencies failed to build: py25-cairo py25-
>> numpy py25-hashlib py25-gobject libxslt
>> Error: Status 1 encountered during processing.
>> So should I do now?
> macports-users mailing list
> macports-users at lists.macosforge.org
More information about the macports-users