Changes between Version 34 and Version 35 of pyRAF


Ignore:
Timestamp:
05/01/06 15:39:59 (20 years ago)
Author:
cdelarcuz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyRAF

    v34 v35  
    346346=== Pyraf Installation (without stsci Python modules) ===
    347347
    348 '''Compiled the Python script:'''
    349 {{{
    350 cdelacruz@io:~/pyraf/pyraf-1.2.1$ python setup.py install
    351 
     348'''Compiled the Python Installer:'''
     349{{{
     350cdelacruz@io:~/pyraf/pyraf-1.2.1$ python setup.py install --local=/opt/pyraf/1.2.1/modules
     351}}}
    352352Following error occurs:
    353 
     353{{{
    354354src/sscanfmodule.c:79:20: error: Python.h: No such file or directory
    355 
     355}}}
     356'''Installed Python-Dev package:'''
     357{{{
    356358cdelacruz@io:~/pyraf/pyraf-1.2.1$ sudo apt-get install python2.4-dev
    357 
    358 cdelacruz@io:~/pyraf/pyraf-1.2.1$ python setup.py install
    359 running install
    360 running build
    361 running build_py
    362 running build_ext
    363 building 'pyraf/sscanfmodule' extension
    364 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -I/usr/X11R6/include -I/usr/include/python2.4 -c src/sscanfmodule.c -o build/temp.linux-i686-2.4/src/sscanfmodule.o
    365 src/sscanfmodule.c:103: warning: function declaration isn't a prototype
    366 src/sscanfmodule.c:411: warning: function declaration isn't a prototype
    367 gcc -pthread -shared build/temp.linux-i686-2.4/src/sscanfmodule.o -o build/lib.linux-i686-2.4/pyraf/sscanfmodule.so
    368 building 'pyraf/xutilmodule' extension
    369 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -I/usr/X11R6/include -I/usr/include/python2.4 -c src/xutil.c -o build/temp.linux-i686-2.4/src/xutil.o
    370 gcc -pthread -shared build/temp.linux-i686-2.4/src/xutil.o -L/usr/lib/python2.4 -L/usr/X11R6/lib64 -L/usr/X11R6/lib -lX11 -o build/lib.linux-i686-2.4/pyraf/xutilmodule.so
    371 running build_scripts
    372 creating build/scripts-2.4
    373 copying and adjusting lib/pyraf -> build/scripts-2.4
    374 changing mode of build/scripts-2.4/pyraf from 644 to 755
    375 running install_lib
    376 creating /usr/lib/python2.4/site-packages/pyraf
    377 error: could not create '/usr/lib/python2.4/site-packages/pyraf': Permission denied
    378 
    379 
    380 cdelacruz@io:~/pyraf/pyraf-1.2.1$ sudo python setup.py install
     359}}}
     360'''Compiled the Python Installer:'''
     361{{{
     362cdelacruz@io:~/pyraf/pyraf-1.2.1$ python setup.py install --local=/opt/pyraf/1.2.1/modules
    381363
    382364Compiled with no issues.
    383 
    384 The compiled modules are installed in the default python
    385 'site-packages' directory--in this case /usr/lib/python2.4/site-packages/pyraf
    386 
    387 The pyraf binary is installed in /usr/bin/pyraf by default, file was moved to /opt/pyraf/1.2.1 and a simlink was created in /usr/bin/local.
    388 
     365}}}
     366'''Created a simlink to the compiled binary under /usr/local/pyraf:'''
     367{{{
     368sudo ln -s /opt/pyraf/current/modules/pyraf/pyraf pyraf
    389369}}}
    390370