You might want to try setting LIBRARY_PATH as well. Ali
On Feb 11, 2013, at 3:16 AM, "Ranga, L Udaya" <udayara...@ti.com> wrote: > Ok, the scons_config.log complains that /usr/bin/ld connot find -lpython2.7. > > I have <python2.7_lib_path> in my LD_LIBRARY_PATH and PYTHONLIB environment > variables. How can I force gem5's SConstruct to take this path while looking > for Python2.7? > > Thanks, > Uday > > -----Original Message----- > From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On > Behalf Of Ali Saidi > Sent: Wednesday, February 06, 2013 2:24 PM > To: gem5 users mailing list > Subject: Re: [gem5-users] C library for python 2.7 > > The easiest thing is to look in the build directory at the scons_config.log > and see what it was trying to do when it ran CheckLib and failed (It does so > by attempting to link a program with the library, so you should see > meaningful output about which library caused a problem.) > > Ali > > > On 2/5/13 12:39 PM, "Ranga, L Udaya" <udayara...@ti.com> wrote: > >> 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 >> > > > -- 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 > _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users