Python?
started by: karlokarlo
on: 1190996025|%e %b %Y, %H:%M %Z|agohover
number of posts: 4
rss icon RSS: new posts
Python?
karlokarlo 1190996025|%e %b %Y, %H:%M %Z|agohover

Hi

Anyone tryed to compile python on a "standard" MBWE?

I'm dowloding the source code now to try to compile.

karlo

unfold Python? by karlokarlo, 1190996025|%e %b %Y, %H:%M %Z|agohover
Re: Python?
karlokarlo 1191933614|%e %b %Y, %H:%M %Z|agohover

Autorespond: Python compile without problem on my MBWE!

And work fine also!

karlo

unfold Re: Python? by karlokarlo, 1191933614|%e %b %Y, %H:%M %Z|agohover
Re: Python?
HaansHaans 1194713238|%e %b %Y, %H:%M %Z|agohover

Would be great if you made a quick howto… I'm trying this now, but I have no idea if it will work. I've seen a few errors when running make

Here's my recipe (provided you've already created /tmp/myfiles/ as explained in First Steps) :

# cd /tmp/myfiles
# wget http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz
# tar -zxvf Python-2.5.1.tgz
# cd Python-2.5.1
# ./configure
# make
# make install

make takes forever to finish it seems. One hour now, and still going strong… hopefully it will finish sometime tonight, so I can install it as well :P

Anyone know if this will work? Or why it won't? Yes, I'm fairly new to Linux.

unfold Re: Python? by HaansHaans, 1194713238|%e %b %Y, %H:%M %Z|agohover
Re: Python?
Frank_DEFrank_DE 1212363464|%e %b %Y, %H:%M %Z|agohover

Hi, i'am not an linux- or python-expert. But why you do not use Optware & ipkg ? I tried ….

Installation

# ipkg install python

I got these messages:
Installing python (2.4.4-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/python_2.4.4-3_arm.ipk
Installing python24 (2.4.5-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/python24_2.4.5-1_arm.ipk
Installing readline (5.2-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/readline_5.2-2_arm.ipk
Installing bzip2 (1.0.5-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/bzip2_1.0.5-1_arm.ipk
Installing openssl (0.9.7m-4) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/openssl_0.9.7m-4_arm.ipk
Installing libdb (4.2.52-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/libdb_4.2.52-3_arm.ipk
Installing zlib (1.2.3-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/zlib_1.2.3-2_arm.ipk
Installing libstdc++ (6.0.3-6) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/libstdc++_6.0.3-6_arm.ipk
Installing ncursesw (5.6-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/ncursesw_5.6-2_arm.ipk
Installing ncurses (5.6-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/ncurses_5.6-3_arm.ipk
Configuring bzip2
update-alternatives: Linking //opt/bin/bzip2 to /opt/bin/bzip2-bzip2
Configuring libdb
Configuring libstdc++
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring ncursesw
Configuring openssl
Configuring python
Configuring python24
Configuring readline
Configuring zlib
Successfully terminated.

Problems
I tried to start python and got an error:

# python
python: can't load library 'libpython2.4.so.1.0'

This was because i forgot to add this lib-export in the .bashrc form the Optware-Tutorial
export LD_LIBRARY_PATH=/opt/lib

First Test
I wrote a simple testfile with following content:

print "Hello World"
# python /shares/internal/DATA/testpython.py
Hello World

Success! Now hopefully i will not encounter other problems.
Greets Frank
last edited on 1212416890|%e %b %Y, %H:%M %Z|agohover by Frank_DE + show more
unfold Re: Python? by Frank_DEFrank_DE, 1212363464|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License