Hi Ali,

I have tried this approach and it didn't work. 

This is the code in SConstruct that looks for Python libs:

----------------------------------------------------------------------
for lib in py_libs:
    if not conf.CheckLib(lib):
        print "Error: can't find library %s required by python" % lib
        Exit(1)
----------------------------------------------------------------------
Console: Error: can't find library python2.7 required by python


I can get gem5 to build with 2.6 in my system, so if I can extract the 
information of how conf.CheckLib(lib) finds libpython2.6.a, I can probably set 
up the required information to find libpython2.7.a too. Any tips?

The other option I shall try is to make/build scons with Python2.7.

Thanks,
Uday



-----Original Message-----
From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On 
Behalf Of Ali Saidi
Sent: Monday, February 04, 2013 4:27 PM
To: gem5 users mailing list
Subject: Re: [gem5-users] C library for python 2.7

Hi Uday,

You nede to be certain that scons is being executed with your newly built 
python 2.7 that is used the shared library. Instead of calling scons directly 
you probably want to call python2.7 <path to scons> <rest of gem5 command line>.

Thanks,
Ali


On 2/2/13 11:11 PM, "Ranga, L Udaya" <udayara...@ti.com> wrote:

>Ali,
>
>I'm using Linux x86_64 - RHEL4 and have configured python2.7 with 
>--enable-shared option. My LD_LIBRARY_PATH points to libpython2.7.so.
>
>-----Original Message-----
>From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] 
>On Behalf Of Ali Saidi
>Sent: Saturday, February 02, 2013 8:27 PM
>To: gem5 users mailing list
>Subject: Re: [gem5-users] C library for python 2.7
>
>What OS are you using? In many cases there is a python-dev or similar 
>package you can install. Otherwise, you'd need to build python from 
>scratch and configure it with the shared-lib option.
>See http://www.gem5.org/Using_a_non-default_Python_installation  for 
>more information.
>Ali
>________________________________________
>From: gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] On 
>Behalf Of Ranga, L Udaya [udayara...@ti.com]
>Sent: Saturday, February 02, 2013 12:16 AM
>To: gem5 users mailing list
>Subject: [gem5-users] C library for python 2.7
>
>Hi all,
>
>I'm trying to build gem5 with Python 2.7.3 and gcc4.7.2.
>
>Below is the error message with which scons terminates.
>
>Can you please tell me how to build C library for Python2.7?
>
>Checking for C library pthread... (cached) yes Checking for C library 
>dl... (cached) yes Checking for C library util... (cached) yes Checking 
>for C library m... (cached) yes Checking for C library python2.7...
>(cached) no
>Error: can't find library python2.7 required by python
>
>
>Thanks,
>Uday
>
>-- IMPORTANT NOTICE: The contents of this email and any attachments are 
>confidential and may also be privileged. If you are not the intended 
>recipient, please notify the sender immediately and do not disclose the 
>contents to any other person, use it for any purpose, or store or copy 
>the information in any medium.  Thank you.
>
>_______________________________________________
>gem5-users mailing list
>gem5-users@gem5.org
>http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>_______________________________________________
>gem5-users mailing list
>gem5-users@gem5.org
>http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>


-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to