Drobo

Trouble with python install to xcompiling vm

I have fully set up my Cross Compiling VM as illustrated here http://www.droboports.com/setting-up-a-vm

I’m working on setting up Python 2.7.1 and I’m following the instructions.
http://www.droboports.com/app-repository/python-2-7-1

I get to this part . ~/crosscompile.sh wget .../configure.patch patch configure configure.patch wget .../Makefile.pre.in.patch patch Makefile.pre.in Makefile.pre.in.patch wget .../setup.py.patch patch setup.py setup.py.patch

and the wget parts don’t work, so I get the paths from the links below in the post and they install. Example

wget http://www.droboports.com/app-repository/python-2-7-1/configure.patch

The patch won’t work so I have to sude apt-get install patch. Moving on. Next part is

CFLAGS="$CFLAGS -I$ZLIB -I$OPENSSL/include -I$NCURSES/include -I$BZIP -I$SQLITE" LDFLAGS="$LDFLAGS -L$ZLIB -L$OPENSSL -L$NCURSES/lib -L$BZIP -L$SQLITE/.libs" LIBS="-lsqlite3 -lncurses -lssl -lcrypto -lz -ldl" ./configure --host=arm-none-linux-gnueabi --prefix=$DEST make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED="arm-none-linux-gnueabi-gcc -shared" CROSS_COMPILE=arm-none-linux-gnueabi- CROSS_COMPILE_TARGET=yes make install HOSTPYTHON=./hostpython BLDSHARED="arm-none-linux-gnueabi-gcc -shared" CROSS_COMPILE=arm-none-linux-gnueabi- CROSS_COMPILE_TARGET=yes

As I do that I get the following

[code]okenizer.o
ar rc libpython2.7.a Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o
ar rc libpython2.7.a Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/dtoa.o Python/formatter_unicode.o Python/formatter_string.o Python/dynload_shlib.o Python/thread.o
ar rc libpython2.7.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o
ar rc libpython2.7.a Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o
ranlib libpython2.7.a
gcc -pthread -Xlinker -export-dynamic -o python
Modules/python.o
libpython2.7.a -lpthread -ldl -lutil -lm
libpython2.7.a(posixmodule.o): In function posix_tmpnam': /home/nick/code/Python-2.7.1/./Modules/posixmodule.c:7346: warning: the use oftmpnam_r’ is dangerous, better use mkstemp' libpython2.7.a(posixmodule.o): In functionposix_tempnam’:
/home/nick/code/Python-2.7.1/./Modules/posixmodule.c:7301: warning: the use of tempnam' is dangerous, better usemkstemp’
make: Parser/pgen' is up to date. nick@CrossCompile:~/code/Python-2.7.1$ mv python hostpython nick@CrossCompile:~/code/Python-2.7.1$ mv Parser/pgen Parser/hostpgen nick@CrossCompile:~/code/Python-2.7.1$ make distclean find . -name '*.py[co]' -exec rm -f {} ';' find . -name '*.[oa]' -exec rm -f {} ';' find . -name '*.s[ol]' -exec rm -f {} ';' find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' find build -name 'fficonfig.h' -exec rm -f {} ';' || true find:build’: No such file or directory
find build -name ‘fficonfig.py’ -exec rm -f {} ‘;’ || true
find: build': No such file or directory rm -f Lib/lib2to3/*Grammar*.pickle find . -name '*.gc??' -exec rm -f {} ';' rm -f python Parser/pgen libpython2.7.a libpython2.7.a \ tags TAGS \ config.cache config.log pyconfig.h Modules/config.c rm -rf build platform rm -rf no-framework for file in Lib/test/data/* ; do \ if test "$file" != "Lib/test/data/README"; then rm "$file"; fi; \ done rm -f core Makefile Makefile.pre config.status \ Modules/Setup Modules/Setup.local Modules/Setup.config \ Modules/ld_so_aix Misc/python.pc rm -f python*-gdb.py find . '(' -name '*.fdc' -o -name '*~' \ -o -name '[@,#]*' -o -name '*.old' \ -o -name '*.orig' -o -name '*.rej' \ -o -name '*.bak' ')' \ -exec rm -f {} ';' nick@CrossCompile:~/code/Python-2.7.1$ . ~/crosscompile.sh nick@CrossCompile:~/code/Python-2.7.1$ wget .../configure.patch --2012-03-22 16:35:23-- http://.../configure.patch Resolving ...... failed: Name or service not known. wget: unable to resolve host address…’
nick@CrossCompile:~/code/Python-2.7.1$ wget http://www.droboports.com/app-repository/python-2-7-1/configure.patch?attredirects=0&d=1
[1] 23430
nick@CrossCompile:~/code/Python-2.7.1$ --2012-03-22 16:37:07-- http://www.droboports.com/app-repository/python-2-7-1/configure.patch?attredirects=0
Resolving www.droboports.com… 72.14.204.121
Connecting to www.droboports.com|72.14.204.121|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7cq9d7MoPGU_cp4rsJTtM0FRlddapYCw8U3qa0o1UyCq254Nb-39-Llhz6vMRQUaK-t0YWNwxRo5w_PmOr3D5zmcAul64wnfysI5S75sqkLi-2-QnUOm2vuPD-CK81r14i--FhucbuZ9rkxLp3Q8S1giMZFSrHhxFeFqxS_FetfsHptIN6yVNd4wJ6knky9MHUmfMZh0e7kW2NDw2ORTI_z4SQhYmBUvc7Go6JBq_iP76dqfdWo%3D&attredirects=0 [following]
–2012-03-22 16:37:07-- http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7cq9d7MoPGU_cp4rsJTtM0FRlddapYCw8U3qa0o1UyCq254Nb-39-Llhz6vMRQUaK-t0YWNwxRo5w_PmOr3D5zmcAul64wnfysI5S75sqkLi-2-QnUOm2vuPD-CK81r14i--FhucbuZ9rkxLp3Q8S1giMZFSrHhxFeFqxS_FetfsHptIN6yVNd4wJ6knky9MHUmfMZh0e7kW2NDw2ORTI_z4SQhYmBUvc7Go6JBq_iP76dqfdWo%3D&attredirects=0
Resolving 869789182725854870-a-droboports-com-s-sites.googlegroups.com… 72.14.204.137
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7cq9d7MoPGU_cp4rsJTtM0FRlddapYCw8U3qa0o1UyCq254Nb-39-Llhz6vMRQUaK-t0YWNwxRo5w_PmOr3D5zmcAul64wnfysI5S75sqkLi-2-QnUOm2vuPD-CK81r14i--FhucbuZ9rkxLp3Q8S1giMZFSrHhxFeFqxS_FetfsHptIN6yVNd4wJ6knky9MHUmfMZh0e7kW2NDw2ORTI_z4SQhYmBUvc7Go6JBq_iP76dqfdWo%3D&attredirects=0 [following]
–2012-03-22 16:37:07-- https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7cq9d7MoPGU_cp4rsJTtM0FRlddapYCw8U3qa0o1UyCq254Nb-39-Llhz6vMRQUaK-t0YWNwxRo5w_PmOr3D5zmcAul64wnfysI5S75sqkLi-2-QnUOm2vuPD-CK81r14i--FhucbuZ9rkxLp3Q8S1giMZFSrHhxFeFqxS_FetfsHptIN6yVNd4wJ6knky9MHUmfMZh0e7kW2NDw2ORTI_z4SQhYmBUvc7Go6JBq_iP76dqfdWo%3D&attredirects=0
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 639 [application/octet-stream]
Saving to: `configure.patch?attredirects=0’

100%[===================================================================================================================================================================================================>] 639 --.-K/s in 0s

2012-03-22 16:37:08 (25.9 MB/s) - `configure.patch?attredirects=0’ saved [639/639]

ls
configure configure.patch?attredirects=0 Doc hostpython install-sh LICENSE Makefile.pre.in Modules Parser PCbuild Python RISCOS Tools
configure.in Demo Grammar Include Lib Mac Misc Objects PC pyconfig.h.in README setup.py
[1]+ Done wget http://www.droboports.com/app-repository/python-2-7-1/configure.patch?attredirects=0
nick@CrossCompile:~/code/Python-2.7.1$ wget http://www.droboports.com/app-repository/python-2-7-1/configure.patch
–2012-03-22 16:38:10-- http://www.droboports.com/app-repository/python-2-7-1/configure.patch
Resolving www.droboports.com… 72.14.204.121
Connecting to www.droboports.com|72.14.204.121|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://www.droboports.com/app-repository/python-2-7-1/configure.patch?attredirects=0 [following]
–2012-03-22 16:38:11-- http://www.droboports.com/app-repository/python-2-7-1/configure.patch?attredirects=0
Connecting to www.droboports.com|72.14.204.121|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7crPSOk2qJ8dkJ2KbCPe6CeI3crkxnRy-eejd38UsY9R5QwIOi_wqY-KcgmyAOBBLuHWFxXW_65O9eGEtcq2qDqEW4h2ftOJXXRs5oMOQP99M0vaB8GM8YLniipiOELGYtprcYlRtTNlI3IpeSRFADWof7NJ4mhBACsMKhEdBgVDyDUN4F4-vcrkwaYiXyboDR0GEko6VjGQ9DaX8rZ6rkD6w4gvN5e7t9vOJDTf9kWF76utd3o%3D&attredirects=0 [following]
–2012-03-22 16:38:11-- http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7crPSOk2qJ8dkJ2KbCPe6CeI3crkxnRy-eejd38UsY9R5QwIOi_wqY-KcgmyAOBBLuHWFxXW_65O9eGEtcq2qDqEW4h2ftOJXXRs5oMOQP99M0vaB8GM8YLniipiOELGYtprcYlRtTNlI3IpeSRFADWof7NJ4mhBACsMKhEdBgVDyDUN4F4-vcrkwaYiXyboDR0GEko6VjGQ9DaX8rZ6rkD6w4gvN5e7t9vOJDTf9kWF76utd3o%3D&attredirects=0
Resolving 869789182725854870-a-droboports-com-s-sites.googlegroups.com… 72.14.204.137
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7crPSOk2qJ8dkJ2KbCPe6CeI3crkxnRy-eejd38UsY9R5QwIOi_wqY-KcgmyAOBBLuHWFxXW_65O9eGEtcq2qDqEW4h2ftOJXXRs5oMOQP99M0vaB8GM8YLniipiOELGYtprcYlRtTNlI3IpeSRFADWof7NJ4mhBACsMKhEdBgVDyDUN4F4-vcrkwaYiXyboDR0GEko6VjGQ9DaX8rZ6rkD6w4gvN5e7t9vOJDTf9kWF76utd3o%3D&attredirects=0 [following]
–2012-03-22 16:38:11-- https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/configure.patch?attachauth=ANoY7crPSOk2qJ8dkJ2KbCPe6CeI3crkxnRy-eejd38UsY9R5QwIOi_wqY-KcgmyAOBBLuHWFxXW_65O9eGEtcq2qDqEW4h2ftOJXXRs5oMOQP99M0vaB8GM8YLniipiOELGYtprcYlRtTNlI3IpeSRFADWof7NJ4mhBACsMKhEdBgVDyDUN4F4-vcrkwaYiXyboDR0GEko6VjGQ9DaX8rZ6rkD6w4gvN5e7t9vOJDTf9kWF76utd3o%3D&attredirects=0
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 639 [application/octet-stream]
Saving to: `configure.patch’

100%[===================================================================================================================================================================================================>] 639 --.-K/s in 0s

2012-03-22 16:38:11 (24.2 MB/s) - `configure.patch’ saved [639/639]

nick@CrossCompile:~/code/Python-2.7.1$ patch configure configure.patch
The program ‘patch’ is currently not installed. You can install it by typing:
sudo apt-get install patch
nick@CrossCompile:~/code/Python-2.7.1$ sudo apt-get install patch
[sudo] password for nick:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
diffutils-doc
The following NEW packages will be installed:
patch
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 123kB of archives.
After this operation, 254kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ maverick/main patch i386 2.6-2ubuntu1 [123kB]
Fetched 123kB in 1s (121kB/s)
Selecting previously deselected package patch.
(Reading database … 45549 files and directories currently installed.)
Unpacking patch (from …/patch_2.6-2ubuntu1_i386.deb) …
Processing triggers for man-db …
Setting up patch (2.6-2ubuntu1) …
nick@CrossCompile:~/code/Python-2.7.1$ patch configure configure.patch
patching file configure
nick@CrossCompile:~/code/Python-2.7.1$ wget http://www.droboports.com/app-repository/python-2-7-1/Makefile.pre.in.patch
–2012-03-22 16:39:12-- http://www.droboports.com/app-repository/python-2-7-1/Makefile.pre.in.patch
Resolving www.droboports.com… 72.14.204.121
Connecting to www.droboports.com|72.14.204.121|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://www.droboports.com/app-repository/python-2-7-1/Makefile.pre.in.patch?attredirects=0 [following]
–2012-03-22 16:39:13-- http://www.droboports.com/app-repository/python-2-7-1/Makefile.pre.in.patch?attredirects=0
Connecting to www.droboports.com|72.14.204.121|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/Makefile.pre.in.patch?attachauth=ANoY7cqpId3k99p7zgazhNPunxTKIjWz07bOVaWCnwG0CZBZ16tqCmbJ3JgBD3X_fpuidKq3ZzUp4hMRr63u-Wd6EzrCBQfSRFHU7P09qGOwFuWoy9u__5vakV1NOmvWMKawyJbu7Bdm4oL31dXE72SXThrF64FW7G706bqRZBnoIBbaX_7YvwxQCjVp0k9_zjSAEn-bj_2mMGALp0T2YbTy1VatghyGrTo6DnEXJYLD7wrXWB1PzFY%3D&attredirects=0 [following]
–2012-03-22 16:39:13-- http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/Makefile.pre.in.patch?attachauth=ANoY7cqpId3k99p7zgazhNPunxTKIjWz07bOVaWCnwG0CZBZ16tqCmbJ3JgBD3X_fpuidKq3ZzUp4hMRr63u-Wd6EzrCBQfSRFHU7P09qGOwFuWoy9u__5vakV1NOmvWMKawyJbu7Bdm4oL31dXE72SXThrF64FW7G706bqRZBnoIBbaX_7YvwxQCjVp0k9_zjSAEn-bj_2mMGALp0T2YbTy1VatghyGrTo6DnEXJYLD7wrXWB1PzFY%3D&attredirects=0
Resolving 869789182725854870-a-droboports-com-s-sites.googlegroups.com… 72.14.204.137
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/Makefile.pre.in.patch?attachauth=ANoY7cqpId3k99p7zgazhNPunxTKIjWz07bOVaWCnwG0CZBZ16tqCmbJ3JgBD3X_fpuidKq3ZzUp4hMRr63u-Wd6EzrCBQfSRFHU7P09qGOwFuWoy9u__5vakV1NOmvWMKawyJbu7Bdm4oL31dXE72SXThrF64FW7G706bqRZBnoIBbaX_7YvwxQCjVp0k9_zjSAEn-bj_2mMGALp0T2YbTy1VatghyGrTo6DnEXJYLD7wrXWB1PzFY%3D&attredirects=0 [following]
–2012-03-22 16:39:13-- https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/Makefile.pre.in.patch?attachauth=ANoY7cqpId3k99p7zgazhNPunxTKIjWz07bOVaWCnwG0CZBZ16tqCmbJ3JgBD3X_fpuidKq3ZzUp4hMRr63u-Wd6EzrCBQfSRFHU7P09qGOwFuWoy9u__5vakV1NOmvWMKawyJbu7Bdm4oL31dXE72SXThrF64FW7G706bqRZBnoIBbaX_7YvwxQCjVp0k9_zjSAEn-bj_2mMGALp0T2YbTy1VatghyGrTo6DnEXJYLD7wrXWB1PzFY%3D&attredirects=0
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3609 (3.5K) [application/octet-stream]
Saving to: `Makefile.pre.in.patch’

100%[===================================================================================================================================================================================================>] 3,609 --.-K/s in 0s

2012-03-22 16:39:14 (9.32 MB/s) - `Makefile.pre.in.patch’ saved [3609/3609]

nick@CrossCompile:~/code/Python-2.7.1$ patch Makefile.pre.in Makefile.pre.in.patch
patching file Makefile.pre.in
nick@CrossCompile:~/code/Python-2.7.1$ wget http://www.droboports.com/app-repository/python-2-7-1/setup.py.patch
–2012-03-22 16:39:42-- http://www.droboports.com/app-repository/python-2-7-1/setup.py.patch
Resolving www.droboports.com… 72.14.204.121
Connecting to www.droboports.com|72.14.204.121|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://www.droboports.com/app-repository/python-2-7-1/setup.py.patch?attredirects=0 [following]
–2012-03-22 16:39:42-- http://www.droboports.com/app-repository/python-2-7-1/setup.py.patch?attredirects=0
Connecting to www.droboports.com|72.14.204.121|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/setup.py.patch?attachauth=ANoY7cpq5Wurs5Ysd62yPfEFOHxzG-WvMKGcyJKYE1YUYs15hfB1ea84meXi3_IW6Z7Ojb_iLF1z3MWoosN2rL5Qgyr1_tDT5YMekoin9uMfJmiBviyu0KT_1pIIZegimQlWvIiewEOE3GpAC-NgHdHwhq9kGXF8qKkxurSVp4o7JmmQThRAHjNZcPweIC-57q9Uw1hsmtNRzd4Mi56pImm7T9AnaEuVym2IGGHQT7myde3WOGZpuJ8%3D&attredirects=0 [following]
–2012-03-22 16:39:43-- http://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/setup.py.patch?attachauth=ANoY7cpq5Wurs5Ysd62yPfEFOHxzG-WvMKGcyJKYE1YUYs15hfB1ea84meXi3_IW6Z7Ojb_iLF1z3MWoosN2rL5Qgyr1_tDT5YMekoin9uMfJmiBviyu0KT_1pIIZegimQlWvIiewEOE3GpAC-NgHdHwhq9kGXF8qKkxurSVp4o7JmmQThRAHjNZcPweIC-57q9Uw1hsmtNRzd4Mi56pImm7T9AnaEuVym2IGGHQT7myde3WOGZpuJ8%3D&attredirects=0
Resolving 869789182725854870-a-droboports-com-s-sites.googlegroups.com… 72.14.204.137
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/setup.py.patch?attachauth=ANoY7cpq5Wurs5Ysd62yPfEFOHxzG-WvMKGcyJKYE1YUYs15hfB1ea84meXi3_IW6Z7Ojb_iLF1z3MWoosN2rL5Qgyr1_tDT5YMekoin9uMfJmiBviyu0KT_1pIIZegimQlWvIiewEOE3GpAC-NgHdHwhq9kGXF8qKkxurSVp4o7JmmQThRAHjNZcPweIC-57q9Uw1hsmtNRzd4Mi56pImm7T9AnaEuVym2IGGHQT7myde3WOGZpuJ8%3D&attredirects=0 [following]
–2012-03-22 16:39:43-- https://869789182725854870-a-droboports-com-s-sites.googlegroups.com/a/droboports.com/www/app-repository/python-2-7-1/setup.py.patch?attachauth=ANoY7cpq5Wurs5Ysd62yPfEFOHxzG-WvMKGcyJKYE1YUYs15hfB1ea84meXi3_IW6Z7Ojb_iLF1z3MWoosN2rL5Qgyr1_tDT5YMekoin9uMfJmiBviyu0KT_1pIIZegimQlWvIiewEOE3GpAC-NgHdHwhq9kGXF8qKkxurSVp4o7JmmQThRAHjNZcPweIC-57q9Uw1hsmtNRzd4Mi56pImm7T9AnaEuVym2IGGHQT7myde3WOGZpuJ8%3D&attredirects=0
Connecting to 869789182725854870-a-droboports-com-s-sites.googlegroups.com|72.14.204.137|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3032 (3.0K) [application/octet-stream]
Saving to: `setup.py.patch’

100%[===================================================================================================================================================================================================>] 3,032 --.-K/s in 0s

2012-03-22 16:39:43 (26.5 MB/s) - `setup.py.patch’ saved [3032/3032]

nick@CrossCompile:~/code/Python-2.7.1$ patch setup.py setup.py.patch
patching file setup.py
nick@CrossCompile:~/code/Python-2.7.1$ CFLAGS="$CFLAGS -I$ZLIB -I$OPENSSL/includ -lz -ldl" ./configure --host=arm-none-linux-gnueabi --prefix=$DEST
configure: WARNING: If you wanted to set the --build type, don’t use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for --enable-universalsdk… no
checking for --with-universal-archs… 32-bit
checking MACHDEP… linux2
checking EXTRAPLATDIR…
checking machine type as reported by uname -m… i686
checking for --without-gcc… no
checking for arm-none-linux-gnueabi-gcc… /usr/local/arm-2007q1/bin/arm-none-li
checking whether the C compiler works… no
configure: error: in /home/nick/code/Python-2.7.1': configure: error: C compiler cannot create executables Seeconfig.log’ for more details.
nick@CrossCompile:~/code/Python-2.7.1$ make HOSTPYTHON=./hostpython HOSTPGEN=./P
make: *** No targets specified and no makefile found. Stop.
nick@CrossCompile:~/code/Python-2.7.1$ make install HOSTPYTHON=./hostpython BLDS
make: *** No rule to make target `install’. Stop.
nick@CrossCompile:~/code/Python-2.7.1$ ls
config.log configure.in configure.patch?attredirects=0 Doc hostpython
configure configure.patch Demo Grammar Include
nick@CrossCompile:~/code/Python-2.7.1$ make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED=“arm-none-linux-gnueabi-gcc -shared” CROSS_COMPILE=arm-none-linux-gnueabi- CROSS_COMPILE_TARGET=yes
make: *** No targets specified and no makefile found. Stop.
nick@CrossCompile:~/code/Python-2.7.1$
[/code]

I’m not sure where I went wrong. I took snapshots of my vm along the way so I can easily revert to before I started the py stuff. Can anyone assist me? I’m a linux noob.

It seems to me that you are using the wrong compiler here. Are you trying to compile this for the DroboShare?

Yes. I’m trying to get python so I can run sickbeard, sabnzbd, and couchpotato from my droboFS

Wait a minute. Do you want to compile this for the DroboFS or for the DroboShare? The DroboShare uses the toolchain from 2007 and the FS uses the toolchain from 2009.

HA! Sorry I had a brain fart. It’s a DroboFS.

Ok, in that case you are using the wrong compiler. What you want is the 2009q1, not the 2007q1.[hr]
Btw, I just updated python to 2.7.2. You might want to compile that one instead. You can find it here: http://www.droboports.com/app-repository/python-2-7-2

OK. To do this I need to redo my vm right? Basically everywhere in the guide that it says 2007 change that to 2009 and I’ll be ok?

Edit: in reference to your guide here http://www.droboports.com/setting-up-a-vm

Oops. I just had a brain fart myself. You are right, the 2007q1 version is the right one to use. There is just a couple of apps that require the newer version, which is actually incompatible with the FS unless you statically link everything. TL;DR: forget everything I said about the compiler.

Now, back to your problem. Can you post the file config.log? That should contain the exact description of what went wrong.

Sure can. I just need you to tell me how :wink:

In the folder “~/code/Python-2.7.1” there’s a config.log file. Just copy the content of that in a “code” block here.

Oh. I already restored my VM back to before I started when you said I should try the 2.7.2 . I should have just waited. I have a new issue now with the 2.7.2 when i get to bzip. The following line

make libbz2.a CC=$CC AR=$AR RANLIB=$RANLIB CFLAGS="$CFLAGS -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64"

Yields these errors

[code]If compilation produces errors, or a large number of warnings,
please read README.COMPILATION.PROBLEMS – you might be able to
adjust the flags in this Makefile to improve matters.

Also in README.COMPILATION.PROBLEMS are some hints that may help
if your build produces an executable which is unable to correctly
handle so-called ‘large files’ – files of size 2GB or more.

Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c blocksort.c
make: Wall: Command not found
make: [blocksort.o] Error 127 (ignored)
Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c huffman.c
make: Wall: Command not found
make: [huffman.o] Error 127 (ignored)
Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c crctable.c
make: Wall: Command not found
make: [crctable.o] Error 127 (ignored)
Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c randtable.c
make: Wall: Command not found
make: [randtable.o] Error 127 (ignored)
Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c compress.c
make: Wall: Command not found
make: [compress.o] Error 127 (ignored)
Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c decompress.c
make: Wall: Command not found
make: [decompress.o] Error 127 (ignored)
Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c bzlib.c
make: Wall: Command not found
make: [bzlib.o] Error 127 (ignored)
rm -f libbz2.a
cq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o bzlib.o
make: cq: Command not found
make: *** [libbz2.a] Error 127
[/code]

So that says to check out readme.compilation.problems

[code]------------------------------------------------------------------
This file is part of bzip2/libbzip2, a program and library for
lossless, block-sorting data compression.

bzip2/libbzip2 version 1.0.6 of 6 September 2010
Copyright © 1996-2010 Julian Seward jseward@bzip.org

Please read the WARNING, DISCLAIMER and PATENTS sections in the
README file.

This program is released under the terms of the license contained
in the file LICENSE.

bzip2-1.0.6 should compile without problems on the vast majority of
platforms. Using the supplied Makefile, I’ve built and tested it
myself for x86-linux and amd64-linux. With makefile.msc, Visual C++
6.0 and nmake, you can build a native Win32 version too. Large file
support seems to work correctly on at least on amd64-linux.

When I say “large file” I mean a file of size 2,147,483,648 (2^31)
bytes or above. Many older OSs can’t handle files above this size,
but many newer ones can. Large files are pretty huge – most files
you’ll encounter are not Large Files.

Early versions of bzip2 (0.1, 0.9.0, 0.9.5) compiled on a wide variety
of platforms without difficulty, and I hope this version will continue
in that tradition. However, in order to support large files, I’ve had
to include the define -D_FILE_OFFSET_BITS=64 in the Makefile. This
can cause problems.

The technique of adding -D_FILE_OFFSET_BITS=64 to get large file
support is, as far as I know, the Recommended Way to get correct large
file support. For more details, see the Large File Support
Specification, published by the Large File Summit, at

http://ftp.sas.com/standards/large.file

As a general comment, if you get compilation errors which you think
are related to large file support, try removing the above define from
the Makefile, ie, delete the line

BIGFILES=-D_FILE_OFFSET_BITS=64

from the Makefile, and do ‘make clean ; make’. This will give you a
version of bzip2 without large file support, which, for most
applications, is probably not a problem.

Alternatively, try some of the platform-specific hints listed below.

You can use the spewG.c program to generate huge files to test bzip2’s
large file support, if you are feeling paranoid. Be aware though thatYou can use the spewG.c program to generate huge files to test bzip2’s
large file support, if you are feeling paranoid. Be aware though that
any compilation problems which affect bzip2 will also affect spewG.c,
alas.

AIX: I have reports that for large file support, you need to specify
-D_LARGE_FILES rather than -D_FILE_OFFSET_BITS=64. I have not tested
this myself.
[/code]

Also, Ricardo. Thank you very much for taking the time to try and help me out. I know it’s probably annoying to deal with windows people.

This error message is funny looking:

make: Wall: Command not found

This usually means that you did not enter the argument properly, i.e., you missed the “-” before Wall.

In any case, are you recompiling python just to get pyOpenSSL?

I’m just straight copy\pasting from your guide. I’m sure I put it in with the “-” in front.

I’m compiling it so I can run python based web apps from droboFS (ex. sabnzbd+), so I’m not really sure. I have to be completely honest man I really have no idea what I’m doing or how any of this works, i’m basically just following guides like an amateur.

Ok… don’t get this the wrong way, but you should have read the page until the end. :smiley:

[quote]
Installing

Download the TGZ file below and place it in you DroboApps share. If you do not have SSH access, reboot your Drobo. Otherwise, SSH in and type: (…)[/quote]

The whole compilation thing is just a reference for people that either: (1) do not trust the packages I provide, or (2) want to compile future releases of the software.

If you just want the package for your Drobo, then you just have to download the TGZ file at the bottom of the page. Here is the link: http://www.droboports.com/app-repository/python-2-7-2/python2.tgz

Just make sure to read the “Installing” and “Final remarks” sections. :wink:

(I give you an A+ for effort, though.)

[quote=“ricardo, post:15, topic:8586”]

Ok… don’t get this the wrong way, but you should have read the page until the end. :smiley:

I did read the whole thing, I though I had to do all that stuff for some reason in addition to adding your packages. I am shame. Thanks for all your help man.

You’re very welcome. Although I have to warn you that sabnzbd+ may be a tricky one. Have a look at this thread as well: http://www.drobospace.com/forums/showthread.php?tid=8882