install "python-dev"

// Naderan *Mahmood;



On Sat, Apr 23, 2011 at 2:02 AM, Ashish Venkat <[email protected]> wrote:

> Hi,
>
> I get this error while compiling M5:
>
> [asvenkat@unreal m5.git]$ scons build/MIPS_SE/m5.debug
> scons: Reading SConscript files ...
> .hg directory not found
> Checking for leading underscore in global variables...no
> Checking for C header file Python.h... no
> Error: can't find Python.h header in
> ['/home/asvenkat/programs/include/python2.6']
>
> Here is what I did:-
> 1. Compile Python 2.6
> /configure --enable-shared --prefix=/home/asvenkat/programs/
> make
> make install
>
> 2. Compile scons
> python setup.py install --prefix=/home/asvenkat/programs/
>
> 3. Compile swig
> ./configure --prefix=/home/asvenkat/programs/
> make
> make install
>
> At this stage,
> python -V gives-
> Python 2.6.2
>
> Environment variables are as follows:-
> [asvenkat@unreal ~]$ echo $PATH
>
> /home/asvenkat/programs/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/asvenkat/bin
> [asvenkat@unreal ~]$ echo $LD_LIBRARY_PATH
> /home/asvenkat/programs/lib
>
> I can see that python2.6 is installed in /home/asvenkat/programs/bin and
> libpython2.6.so.1.0 is installed in /home/asvenkat/programs/lib.
>
> I am using a system running on red hat linux and I don't have root
> permissions.  So, I am installing local copies of all the binaries.
>
> Please let me know if I am missing something here.
>
> Thanks,
> Ashish
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to