I am used to connetting my mining network to internet by RaspberryPi, which is running stratum mining_proxy and with EVDO modem. Yesterday, I remounted Rasbian ROM, and installed stratum_mining_proxy by using git, but it failed.
pi@raspberrypi ~/stratum-mining-proxy $ sudo python distribute_setup.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
Extracting in /tmp/tmpjcN4F_
Now working in /tmp/tmpjcN4F_/distribute-0.6.28
Installing Distribute
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing distribute.egg-info/PKG-INFO
writing top-level names to distribute.egg-info/top_level.txt
writing dependency_links to distribute.egg-info/dependency_links.txt
writing entry points to distribute.egg-info/entry_points.txt
reading manifest file 'distribute.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'distribute.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv6l-2.7
copying pkg_resources.py -> build/lib.linux-armv6l-2.7
copying easy_install.py -> build/lib.linux-armv6l-2.7
copying site.py -> build/lib.linux-armv6l-2.7
creating build/lib.linux-armv6l-2.7/setuptools
copying setuptools/archive_util.py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/script template.py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/dist.py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/script template (dev).py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/__init__.py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/package_index.py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/extension.py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/sandbox.py -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/depends.py -> build/lib.linux-armv6l-2.7/setuptools
creating build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/saveopts.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/__init__.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/egg_info.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/upload_docs.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/install_egg_info.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/install_scripts.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/easy_install.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/setopt.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/develop.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/install.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/test.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/install_lib.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/alias.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/build_ext.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/bdist_egg.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/bdist_rpm.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/sdist.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/upload.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/build_py.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/rotate.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/register.py -> build/lib.linux-armv6l-2.7/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/lib.linux-armv6l-2.7/setuptools/command
creating build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_dist_info.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/py26compat.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/doctest.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/__init__.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_resources.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_easy_install.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/server.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_sandbox.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_bdist_egg.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_packageindex.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_develop.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_upload_docs.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/tests/test_build_ext.py -> build/lib.linux-armv6l-2.7/setuptools/tests
copying setuptools/cli.exe -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/gui-32.exe -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/gui-64.exe -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/cli-64.exe -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/cli-32.exe -> build/lib.linux-armv6l-2.7/setuptools
copying setuptools/gui.exe -> build/lib.linux-armv6l-2.7/setuptools
creating build/bdist.linux-armv6l
creating build/bdist.linux-armv6l/egg
copying build/lib.linux-armv6l-2.7/easy_install.py -> build/bdist.linux-armv6l/egg
copying build/lib.linux-armv6l-2.7/site.py -> build/bdist.linux-armv6l/egg
creating build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/archive_util.py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/cli.exe -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/gui-32.exe -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/script template.py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/dist.py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/script template (dev).py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/__init__.py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/gui-64.exe -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/package_index.py -> build/bdist.linux-armv6l/egg/setuptools
creating build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/saveopts.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/__init__.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/egg_info.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/upload_docs.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/install_egg_info.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/install_scripts.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/easy_install.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/setopt.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/develop.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/install.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/test.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/install_lib.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/alias.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/build_ext.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/bdist_egg.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/bdist_rpm.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/sdist.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/upload.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/build_py.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/rotate.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/register.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/command/bdist_wininst.py -> build/bdist.linux-armv6l/egg/setuptools/command
copying build/lib.linux-armv6l-2.7/setuptools/extension.py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/sandbox.py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/cli-64.exe -> build/bdist.linux-armv6l/egg/setuptools
creating build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_dist_info.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/py26compat.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/doctest.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/__init__.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_resources.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_easy_install.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/server.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_sandbox.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_bdist_egg.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_packageindex.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_develop.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_upload_docs.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/tests/test_build_ext.py -> build/bdist.linux-armv6l/egg/setuptools/tests
copying build/lib.linux-armv6l-2.7/setuptools/cli-32.exe -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/depends.py -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/setuptools/gui.exe -> build/bdist.linux-armv6l/egg/setuptools
copying build/lib.linux-armv6l-2.7/pkg_resources.py -> build/bdist.linux-armv6l/egg
byte-compiling build/bdist.linux-armv6l/egg/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-armv6l/egg/site.py to site.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/archive_util.py to archive_util.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/script template.py to script template.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/dist.py to dist.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/script template (dev).py to script template (dev).pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/package_index.py to package_index.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/saveopts.py to saveopts.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/egg_info.py to egg_info.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/upload_docs.py to upload_docs.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/install_egg_info.py to install_egg_info.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/install_scripts.py to install_scripts.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/setopt.py to setopt.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/develop.py to develop.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/install.py to install.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/test.py to test.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/install_lib.py to install_lib.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/alias.py to alias.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/build_ext.py to build_ext.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/bdist_egg.py to bdist_egg.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/bdist_rpm.py to bdist_rpm.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/sdist.py to sdist.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/upload.py to upload.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/build_py.py to build_py.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/rotate.py to rotate.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/register.py to register.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/command/bdist_wininst.py to bdist_wininst.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/extension.py to extension.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/sandbox.py to sandbox.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_dist_info.py to test_dist_info.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/py26compat.py to py26compat.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/doctest.py to doctest.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_resources.py to test_resources.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_easy_install.py to test_easy_install.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/server.py to server.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_sandbox.py to test_sandbox.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_bdist_egg.py to test_bdist_egg.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_packageindex.py to test_packageindex.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_develop.py to test_develop.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_upload_docs.py to test_upload_docs.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/tests/test_build_ext.py to test_build_ext.pyc
byte-compiling build/bdist.linux-armv6l/egg/setuptools/depends.py to depends.pyc
byte-compiling build/bdist.linux-armv6l/egg/pkg_resources.py to pkg_resources.pyc
creating build/bdist.linux-armv6l/egg/EGG-INFO
copying distribute.egg-info/PKG-INFO -> build/bdist.linux-armv6l/egg/EGG-INFO
copying distribute.egg-info/SOURCES.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying distribute.egg-info/dependency_links.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying distribute.egg-info/entry_points.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying distribute.egg-info/top_level.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying distribute.egg-info/zip-safe -> build/bdist.linux-armv6l/egg/EGG-INFO
creating dist
creating 'dist/distribute-0.6.28-py2.7.egg' and adding 'build/bdist.linux-armv6l/egg' to it
removing 'build/bdist.linux-armv6l/egg' (and everything under it)
Processing distribute-0.6.28-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/distribute-0.6.28-py2.7.egg
Extracting distribute-0.6.28-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding distribute 0.6.28 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/distribute-0.6.28-py2.7.egg
Processing dependencies for distribute==0.6.28
Finished processing dependencies for distribute==0.6.28
After install bootstrap.
Don't have permissions to write /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info, skipping
Creating /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info
Creating /usr/local/lib/python2.7/dist-packages/setuptools.pth
pi@raspberrypi ~/stratum-mining-proxy $ sudo python setup.py develop
running develop
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running egg_info
creating stratum_mining_proxy.egg-info
writing requirements to stratum_mining_proxy.egg-info/requires.txt
writing stratum_mining_proxy.egg-info/PKG-INFO
writing top-level names to stratum_mining_proxy.egg-info/top_level.txt
writing dependency_links to stratum_mining_proxy.egg-info/dependency_links.txt
writing manifest file 'stratum_mining_proxy.egg-info/SOURCES.txt'
reading manifest file 'stratum_mining_proxy.egg-info/SOURCES.txt'
writing manifest file 'stratum_mining_proxy.egg-info/SOURCES.txt'
running build_ext
building 'midstate' extension
creating build
creating build/temp.linux-armv6l-2.7
creating build/temp.linux-armv6l-2.7/midstatec
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/include/python2.7 -c
midstatec/midstatemodule.c -o build/temp.linux-armv6l-2.7/midstatec/midstatemodule.o -march=native -Wall -funroll-all-loops -O3 -fstrict-aliasing -Wall -std=c99 -
fPIC -shared
cc1: error: bad value (native) for -march switch
error: command 'gcc' failed with exit status 1
Of course, I had did apt-get update and installed python-dev successfully. I find that stratum_mining_proxy has update to 1.57. Try to install it by TGZ file downloaded, also failed at python setup.py step. Try to run in a x86 debian system, it can work normally.
So who can help me?