FAQ
Hello,

I've been working on an embedded ARM system which boots up quick (a
beagleboard running a skinnied down version of Angstrom). For this I need
to compile a lot of libraries from scratch. One of the things I need is
Python; I've cross compiled Python and it works OK when I try to run it on
an image on the same system which is more complete (the same hardware
running Lucid Ubuntu).

However when I try to run on the skinnied down image I get the following
feedback:

#
./python

-sh: ./python: not found

I'm guessing that Python is depending on some libraries which I don't have
but as my situation is unusual I'm not sure what I am missing. So, I'm
asking for help which is what libraries does python depend on on Linux?

Thanks in advance.

Cheers,

Neil

--
--

Neil Benn Msc
Director
Ziath Ltd
Phone :+44 (0)7508 107942
Website - http://www.ziath.com

IMPORTANT NOTICE: This message, including any attached documents, is
intended only for the use of the individual or entity to which it is
addressed, and may contain information that is privileged, confidential and
exempt from disclosure under applicable law. If the reader of this message
is not the intended recipient, or the employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify Ziath Ltd immediately by email at info at ziath.com. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100914/bf721a63/attachment.html>

Search Discussions

  • Thomas Jollans at Sep 14, 2010 at 7:19 pm

    On Tuesday 14 September 2010, it occurred to Neil Benn to exclaim:
    #
    ./python

    -sh: ./python: not found

    I'm guessing either there is no file ./python, or /bin/sh is fundamentally
    broken.
  • David Boddie at Sep 14, 2010 at 7:59 pm

    On Tuesday 14 September 2010 21:19, Thomas Jollans wrote:

    On Tuesday 14 September 2010, it occurred to Neil Benn to exclaim:
    #
    ./python

    -sh: ./python: not found

    I'm guessing either there is no file ./python, or /bin/sh is fundamentally
    broken.
    Yes, it may be instructive to use the file command to see what ./python
    actually is:

    file ./python

    David
  • Hans Mulder at Sep 15, 2010 at 6:54 pm

    Thomas Jollans wrote:
    On Tuesday 14 September 2010, it occurred to Neil Benn to exclaim:
    #
    ./python

    -sh: ./python: not found

    I'm guessing either there is no file ./python, or /bin/sh is fundamentally
    broken.
    .... or ./python is a symlink to a file that does not exist, or ./python
    is a script and the shebang line points to an interpreter that does not
    exist.

    The most popular way to get the latter problem is to write the script
    on a Windows box and then upload it to Unix box using FTP in binary
    mode (or some other transport that doesn't adjust the line endings).

    Try the command "file ./python". If it reports something like:

    ./python: a /usr/bin/python\015 script text executable

    , then the \015 tells you that you need to use dos2unix.

    It may be the case that /bin/sh is fundamentally broken if it reports
    "./python: file not found" if the problem is really the shebang line.
    Unfortunately, some shells are fundamentally broken this way.


    Hope this helps,

    -- HansM
  • Lawrence D'Oliveiro at Sep 19, 2010 at 11:26 am

    In message <4c911670$0$41115$e4fe514c at news.xs4all.nl>, Hans Mulder wrote:

    The most popular way to get the latter problem is to write the script
    on a Windows box and then upload it to Unix box using FTP in binary
    mode (or some other transport that doesn't adjust the line endings).
    I always thought it was a misfeature that the Linux kernel doesn?t recognize
    all the common conventions for ending the shebang line.

    All reading of text files should be similarly tolerant.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedSep 14, '10 at 6:36p
activeSep 19, '10 at 11:26a
posts5
users5
websitepython.org

People

Translate

site design / logo © 2022 Grokbase