Do you have the right python-config in your PATH?

With this patch you can no longer rely on "python-x.y scons". Instead you
have to set your PATH appropriately such that python and python-config can
be found.

Andreas

On 28/06/2013 14:25, "Nilay Vaish" <[email protected]> wrote:

>On Fri, 28 Jun 2013, Andreas Hansson wrote:
>
>> Very good question. Thanks for giving it a bash.
>>
>> Could you have a look at what goes wrong in the sconslog? I've tested
>>it on quite a flavour of systems, but obviously that was not enough.
>>
>>
>
>Here is the log:
>
>scons: Configure: Checking for C library python2.7...
>build/.scons_config/conftest_6.c <-
>   |
>   |
>   |
>   |int
>   |main() {
>   |
>   |return 0;
>   |}
>   |
>^[(B^[[m [      CC]
>^[[33m.scons_config/conftest_6^[[33m^[[1m.c^[[34m^[[1m
>-> ^[[33m^[[1m.o^[(B^[[m
>^[(B^[[m [    LINK] ^[[33m^[[33m^[[1m^[[34m^[[1m ->
>^[[33m^[[1m.scons_config/conftest_6^[(B^[[m
>/usr/bin/ld: cannot find -lpython2.7
>collect2: error: ld returned 1 exit status
>scons: Configure: no
>
>--------------------------------------------------------------------------
>-----
>
>I am using python which is installed in a non-standard location. The
>problem is that no '-L' option is being added for the libraries for using
>python, which is required to access the library from the non-standard
>location. After restoring the following lines, things start working again.
>
>+from distutils import sysconfig
>+py_getvar = sysconfig.get_config_var
>+py_lib_path = [ py_getvar('LIBDIR') ]
>+main.Append(LIBPATH=py_lib_path)
>+
>
>--
>Nilay
>


-- 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-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to