主要有两个坑 1.XXXSLICE相关的opcode #define SLICE #define SLICE_1 #define SLICE_2 #define SLICE_3 #define STORE_SLICE #define STORE_SLICE_1 #define STORE_SLICE_2 #define STORE_SLICE_3 #define DELETE_SLICE #define DELETE_SLICE_1 #define DELETE_SLICE_2 #define…
查看当前系统中的 Python 版本 python --version 返回 Python 2.6.6 为正常. 检查 CentOS 版本 cat /etc/redhat-release 返回 CentOS release 6.8 (Final) 为正常. 安装所有的开发工具包 yum groupinstall -y "Development tools" 安装其它的必需包 yum install -y zlib-devel bzip2-devel openssl-devel ncur…
作者:彭东林 邮箱:pengdonglin137@163.com QQ: 405728433 环境 主机: ubuntu14.04 64bit 开发板: qemu + vexpress-a9 (参考: http://www.cnblogs.com/pengdonglin137/p/6442583.html) 工具链: arm-none-linux-gnueabi-gcc  (gcc version 4.8.3 20140320) Python版本: Python-2.7.13 概述 前面一篇博文…
作者:彭东林 邮箱:pengdonglin137@163.com QQ:405728433 环境 主机: ubuntu14.04 64bit 开发板: qemu + vexpress-a9 (参考: http://www.cnblogs.com/pengdonglin137/p/6442583.html) 工具链: arm-none-linux-gnueabi-gcc  (gcc version 4.8.3 20140320) Python版本: Python-2.7.13 参考 http://…
在云服务器下默认安装的python版本过低,所有我们要手动进行更新(不建议卸载老的版本,然后安装新的,这样会导致大量的异常错误)   为了防止在安装编译python时出错,需先更新gcc :yum -y install gcc 本机下,去python官网下载liunx下要更新安装的版本:我的是python2.7.13 (你可以根据自己的需要下载):https://www.python.org/downloads/release/python-2713 然后使用xftp(可以参考我写的另一篇htt…
查看当前系统中的 Python 版本 python --version 返回 Python 2.6.6 为正常. 检查 CentOS 版本 cat /etc/redhat-release 返回 CentOS release 6.9 (Final) 为正常. 安装所有的开发工具包 yum groupinstall -y "Development tools" 安装其它的必需包 yum install -y zlib-devel bzip2-devel openssl-devel ncur…
1. 安装python2.7.13 因为涉及到安装到服务器,所以可能不能直接在usr/bin及usr/local/bin下安装,所以本文详解安装在自定义目录下. 下载安装包: $ wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz 解压安装: $ tar zxvf Python-.tgz $ cd Python- $ ./configure --prefix=/home/wangq/Programs/Python-(你自…
方法跟交叉编译Python-2.7.13到ARM(aarch32)平台基本一样, 不同的地方只是把工具链换成编译aarch64的工具链,这里可以参考用qemu搭建aarch64学习环境. 创建目录: mkdir python2_7_13_for_aarch64 下面是配置.编译和安装的脚本: 1.配置: mk1_conf.sh #!/bin/bash export PATH=/home/pengdonglin/src/qemu/aarch64/.07_linux/bin:$PATH ../Pyt…
参考:https://www.jianshu.com/p/fad3942fc0ed 第一步:查看Centos版本及Python版本 • CentOS版本 [root@ tools_package]# cat /etc/centos-release CentOS Linux release (Core) • Python版本 [root@192 tools_package]# python -VPython 2.7.5[root@192 tools_package]# ll /usr/bin/py…
查看当前系统中的 Python 版本,可以看到实验室的这台服务器已经安装了 Python 2.6.6 python --version 检查 CentOS 版本,我们可以看到这台服务器的 CentOS的版本是 CentOS release 6.8 cat /etc/redhat-release 为了避免后续安装出错,我们先来安装开发工具包 先安装 Development Tools yum groupinstall -y "Development tools"   然后安装其它的工具包…