Opened 8 years ago
Last modified 8 years ago
#51695 new defect
could not use setup.py to install pyraf using the macports installation of python 2.7 — at Initial Version
Reported by: | SmritiM84 | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: |
Description
I have installed python 2.7 using macports and it seemed to work fine untill I had to install Pyraf. Amongst others the last bit of the installation code read:
warning: manifest_maker: standard file '-c' not found
The C compiler used to compile Python gcc-4.2, and which is normally used to compile C extensions, is not available. You can explicitly specify which compiler to use by setting the CC environment variable, for example:
CC=gcc python setup.py <command>
or if you are using MacOS X, you can try:
CC=clang python setup.py <command>
---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/zt/rfcx53ks5b7_1_773_2jwpp80000gn/T/pip-build-ImCNyh/astropy
Now I do have gcc installed, so I tried looking for setup.py and I think the one installed with Macports version of Python on my laptop is in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-entrypoints/files/
but when I try running python /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-entrypoints/files/setup.py install
I get
running install running build running build_py creating build error: could not create 'build': Permission denied
Not sure how to use setup.py to install Pyraf or for that matter other modules. I am using Python 2.7 on Mac OS X 10.9.5