install on MacOS X 10.1?

xxxx xxxx at nisus.com
Wed Oct 3 23:23:26 EDT 2001


> xxxx wrote:
> I down-laoded 2.1.1
> In the Makefile I found this suggested sequence
> #       ./configure
> #       make
> #       make test
> #       make install

> In the README it says
> Mac OS X 10.0: Run configure with "OPT='-no-cpp-precomp' ./configure
>       --with-suffix=.exe --with-dyld".  This generates executable
>       file: 'python.exe' (it cannot be named 'python' on an HFS or
>       HFS+ disk as the file name clashes with directory 'Python').
>       The '-no-cpp-precomp' option prevents a large number of
>       compilation warnings.  One of the regular expression tests
>       fails with a SEGV due to the small stack size used by default
>       (how to change this?), and the test_largefile test is only
>       expected to work on a Unix UFS filesystem (how to check for
>       this on Mac OS X?).

> but taking that literally doesn't work at all, generating error messages
> about the OPt...
> Is OPT an environment variable?

I tried setenv OPT '...' and it seemed to accept that,
but now I'm getting complaints from the make

building 'fpectl' extension
skipping /Users/xxxx/Desktop/Python-2.1.1/Modules/fpectlmodule.c
(build/temp.darwin-1.4-Power Macintosh-2.1/fpectlmodule.o up-to-date)
cc -bundle -undefined suppress build/temp.darwin-1.4-Power
Macintosh-2.1/fpectlmodule.o -L/usr/local/lib -o build/lib.darwin-1.4-Power
Macintosh-2.1/fpectl.so
/usr/bin/ld: warning -L: directory name (/usr/local/lib) does not exist
/usr/bin/ld: -undefined error must be used when -twolevel_namespace is in
effect
WARNING: building of extension "fpectl" failed: command 'cc' failed with
exit status 1
running build_scripts
not copying /Users/xxxx/Desktop/Python-2.1.1/Tools/scripts/pydoc
(up-to-date)
./python.exe -c 'import sys ; from distutils.util import get_platform ;
print get_platform()+"-"+sys.version[0:3]' >platform
find ./Lib -name '*.py[co]' -print | xargs rm -f
PYTHONPATH= ./python.exe -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 39, in ?
    import random
  File "/Users/xxxx/Desktop/Python-2.1.1/Lib/random.py", line 76, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: No module named math
make: [test] Error 1 (ignored)
PYTHONPATH= ./python.exe -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 39, in ?
    import random
  File "/Users/xxxx/Desktop/Python-2.1.1/Lib/random.py", line 76, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: No module named math
make: *** [test] Error 1





More information about the Python-list mailing list