Python problem

punit vara punitvara at gmail.com
Sat Feb 13 17:49:18 UTC 2016


On Sat, Feb 13, 2016 at 4:14 AM, Joel Sherrill <joel.sherrill at gmail.com> wrote:
> Jeff Mayes (here at OAR) has installed a fresh Ubuntu 15.10 to build the
> tools on. Normally it is quite simple and straightforward. I wanted to know
> if it was reproducible.
>
> I know on RPM distributions, you need to be careful when you mix 32 and 64
> bit packages. That is often a sign something is broken.
>
> --joel
>
> On Fri, Feb 12, 2016 at 4:22 PM, Jason Wong <jason.hcwong at gmail.com> wrote:
>>
>> Although I suspect that the reason you cannot install python2.7-dev is
>> that you have already installed python2.7-dev:i386 which is conflict with
>> python2.7-dev:amd64, you should show the error message when you are trying
>> to install python2.7-dev to make things clearer.
>>
>>
>> On 12 February 2016 at 22:38, punit vara <punitvara at gmail.com> wrote:
>>>
>>> On Fri, Feb 12, 2016 at 3:21 AM, Jason Wong <jason.hcwong at gmail.com>
>>> wrote:
>>> > I am using a docker image running Ubuntu 15.10, I have no problem
>>> > installing
>>> > both "python2.7-dev" and "libpython2.7-dev".
>>> > According to apt-cache, "python2.7-dev" depends on "python2.7".
>>> > If you install "python2.7-dev", then "python2.7" should be
>>> > automatically
>>> > installed.
>>> > Perhaps you should show us the message you got when you try to install
>>> > "python2.7-dev", and you should also report the problem to ubuntu
>>> > community
>>> > as well.
>>> >
>>> > root at c0e8f7d4cae3:/# apt-cache depends python2.7-dev
>>> > python2.7-dev
>>> >   Depends: python2.7
>>> >   Depends: libpython2.7-dev
>>> >   Depends: libpython2.7
>>> >   Depends: libexpat1-dev
>>> >  |Recommends: libc6-dev
>>> >   Recommends: <libc-dev>
>>> >     libc6-dev
>>> >   Replaces: python2.7
>>> >
>>> >
>>> > On 11 February 2016 at 19:44, punit vara <punitvara at gmail.com> wrote:
>>> >>
>>> >> On Wed, Feb 10, 2016 at 11:45 PM, Joel Sherrill <joel at rtems.org>
>>> >> wrote:
>>> >> > We need the config.log from the subdirectory where the failure
>>> >> > occurred.
>>> >> > This looks like one from the top directory,
>>> >> >
>>> >> > Look at the build log to see what directory the build failed in and
>>> >> > grab
>>> >> > that one.
>>> >> >
>>> >> > FWIW a quick google for this issue on Ubuntu showed someone
>>> >> > suggested:
>>> >> >
>>> >> > sudo apt-get install python-dev
>>> >> >
>>> >> > Have you done that?
>>> >> >
>>> >> > --joel
>>> >> >
>>> >> > On Wed, Feb 10, 2016 at 11:50 AM, punit vara <punitvara at gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> On Tue, Feb 9, 2016 at 8:21 PM, Joel Sherrill <joel at rtems.org>
>>> >> >> wrote:
>>> >> >> >
>>> >> >> >
>>> >> >> > On Tue, Feb 9, 2016 at 8:15 AM, punit vara <punitvara at gmail.com>
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> On Tue, Feb 9, 2016 at 6:56 PM, Aun-Ali Zaidi <admin at kodeit.net>
>>> >> >> >> wrote:
>>> >> >> >> > Hi,
>>> >> >> >> >
>>> >> >> >> > I was having the same problem yesterday and managed to find a
>>> >> >> >> > fix
>>> >> >> >> > by
>>> >> >> >> > installing libpython2.7-dev:
>>> >> >> >> >
>>> >> >> >> > sudo apt-get install libpython2.7-dev
>>> >> >> >> >
>>> >> >> >> > Aun-Ali Zaidi
>>> >> >> >> >
>>> >> >> >>
>>> >> >> >> Thanks Aun-Ali. I have tried but again I am getting same error.
>>> >> >> >> Because this package would get installed when you install
>>> >> >> >> python2.7-dev
>>> >> >> >
>>> >> >> >
>>> >> >> > Can you look in the config.log for gdb where the failure
>>> >> >> > occurred? Or
>>> >> >> > even
>>> >> >> > at the configure.in/ac script in its source. It is looking for a
>>> >> >> > very
>>> >> >> > specific
>>> >> >> > file to link against and failing.
>>> >> >> >
>>> >> >> > yum have a "provides" subcommand to search for which package
>>> >> >> > provides
>>> >> >> > a specific file. Apt must have a similar capability.
>>> >> >> >
>>> >> >> > So you can figure out the file gdb needs to link and the
>>> >> >> > corresponding
>>> >> >> > package which includes it.
>>> >> >> >
>>> >> >> > --joel
>>> >> >> >
>>> >> >> >>
>>> >> >> >> _______________________________________________
>>> >> >> >> devel mailing list
>>> >> >> >> devel at rtems.org
>>> >> >> >> http://lists.rtems.org/mailman/listinfo/devel
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >> Yes I agree with you Joel. From line 129 I found errors if you can
>>> >> >> help me out. Perhaps somebody can help me I am attaching config.log
>>> >> >> file from
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> /home/punit/development/rtems/src/rtems-source-builder/rtems/build/arm-rtems4.12-gdb-7.9-x86_64-linux-gnu-1/build
>>> >> >
>>> >> >
>>> >> Yes I tried that before but same error.  I am attaching log file I
>>> >> have sent config.log from failure subdirectory. I have provided
>>> >> location in previous mail which is the same as shown in this log file.
>>> >> If I am wrong let me.
>>> >>
>>> >> Thanks for support.
>>> >>
>>> >> _______________________________________________
>>> >> devel mailing list
>>> >> devel at rtems.org
>>> >> http://lists.rtems.org/mailman/listinfo/devel
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Regards,
>>> > Jason Wong
>>> root at punit-Compaq-420:~# apt-cache depends python2.7-dev
>>> python2.7-dev
>>>   Depends: python2.7
>>>   Depends: libpython2.7-dev
>>>   Depends: libpython2.7
>>>   Depends: libexpat1-dev
>>>  |Recommends: libc6-dev
>>>   Recommends: <libc-dev>
>>>     libc6-dev
>>>   Replaces: python2.7
>>>   Replaces: python2.7:i386
>>>   Conflicts: python2.7-dev:i386
>>>
>>> Thanks Jason this is really helpful. I am attaching log file as well .
>>> How did you solve python missing error. I have found some linking
>>> error and some header file error. Please look into it. I have already
>>> asked to ubuntu community but not yet got any answer.
>>
>>
>>
>>
>> --
>> Regards,
>> Jason Wong
>>
>> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>
>
While solving this issue today I crashed my system. I again installed
ubuntu 14.04 LTS .

I followed following step.

$ sudo apt-get update

I already has python so I didnt install intentionally. Then I did

$ sudo apt-get build-dep binutils gcc g++ gdb unzip git

I built rtems But got the same error "python missing or unusable ".
Then I just install $ sudo apt-get install python2.7-dev  This solved
my issue.I successfully built rtems. I guess issue was with i386
package and amd64. When I install python2.7-dev separetly it solved my
issue. Thanks for Jason and Joel to help me solve this issue.



More information about the devel mailing list